diff --git a/test/test_masscanned.py b/test/test_masscanned.py index 08f58e7..2ed9b82 100755 --- a/test/test_masscanned.py +++ b/test/test_masscanned.py @@ -57,6 +57,9 @@ conf.iface = resolve_iface(IFACE) # set interface subprocess.check_call(["ip", "addr", "add", "dev", IFACE, "192.0.0.2"]) subprocess.check_call(["ip", "link", "set", IFACE, "up"]) +subprocess.check_call(["ip", "route", "add", "192.0.0.1/32", "dev", IFACE]) +subprocess.check_call(["ip", "route", "add", "1.2.3.4/32", "dev", IFACE]) +conf.route.resync() # start capture tcpdump = subprocess.Popen(