Skip to content

-source-ip is ignored #990

@amarao

Description

@amarao

Naabu version:

2.2.1

Current Behavior:

naabu is using primary Ipv4 address even if the secondary ip is specified as -source-ip {secondary_ip}.

Expected Behavior:

  • source ip for packets using specified source IP.

Steps To Reproduce:

Configure secondary IP (example for eth0 interface):

  1. ip address add 30.0.0.1/32 dev eth0
  2. Run ./naabu -host 188.42.216.83 -source-ip 30.0.0.1
  3. Run tcpdump in other tab

Example of capture for the command from above:

18:08:34.192803 IP 23.109.117.124.45775 > 188.42.216.83.80: Flags [S], seq 0, win 1024, options [mss 1460], length 0
18:08:34.192848 IP 23.109.117.124.45775 > 188.42.216.83.443: Flags [S], seq 1, win 1024, options [mss 1460], length 0
18:08:34.192867 IP 23.109.117.124.45775 > 188.42.216.83.80: Flags [.], ack 0, win 1024, options [mss 1460], length 0
18:08:34.192881 IP 23.109.117.124.45775 > 188.42.216.83.443: Flags [.], ack 0, win 1024, options [mss 1460], length 0
18:08:34.192929 IP 23.109.117.124 > 188.42.216.83: ICMP echo request, id 18964, seq 1, length 8
18:08:34.192946 IP 23.109.117.124 > 188.42.216.83: ICMP time stamp query id 18964 seq 0, length 20

(23.109.117.124 is primary ip on the server),

Metadata

Metadata

Assignees

Labels

Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.Type: QuestionA query or seeking clarification on parts of the spec. Probably doesn't need the attention of all.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions