Bugs item #2569, was opened at 2011-07-15 06:24
Status: Open
Priority: 3
Submitted By: Vo Danh (vodanh)
Assigned to: Nobody (None)
Summary: -S option to openvassd does not work as expected 
Architecture: 64 Bit
Resolution: None
Severity: major
Version: v3.0.2
Component: openvas-libraries
Operating System: Linux
Product: OpenVAS
Hardware: All
URL: 


Initial Comment:
In a machine with multiple NICs and multiple IP, using -S option to set source 
ip in openvassd does not work.

openvas-lib 4.0.5
openvas-scanner 3.2.4

My Debian machine has 2 ips 192.168.134.199 (default route in eth1) and 
10.1.1.199 (internal use - eth0). When i instruct openvassd to scan 
10.1.1.0/24, packets are sent to eth0 correctly, but with source address set to 
192.168.134.199.

Checking the source code, when having -S option, the function call flow is

main() -> socket_source_init() -> _socket_get_next_source_v4_addr()

However, returned struct addr in _socket_get_next_source_v4_addr() is ignored 
in socket_source_init()

I believe the correct behavior should pass correct params to 
set_socket_source_addr() after struct addrs is returned from 
_socket_get_next_source_v4_addr()


----------------------------------------------------------------------

You can respond by visiting: 
http://wald.intevation.org/tracker/?func=detail&atid=220&aid=2569&group_id=29
_______________________________________________
Openvas-devel mailing list
Openvas-devel@wald.intevation.org
http://lists.wald.intevation.org/mailman/listinfo/openvas-devel

Reply via email to