DanMcInerney/LANs.py

Enabled IP forwarding

dankt opened this issue · 3 comments

Hey, thanks for your great tool.

But I have a problem and I don't know how to fix it.

[*] Enabled IP forwarding
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.

Iptables and everything else is working correct but I'm not able to use your tool.

Thanks for the help

What distro are you using?

Here are the iptables commands it runs:
/sbin/iptables -F
/sbin/iptables -X
/sbin/iptables -t nat -F
/sbin/iptables -t nat -X
/sbin/iptables -A FORWARD -p tcp -s 192.168.2.10 -m multiport --dports 21,26,80,110,143,6667 -j NFQUEUE
/sbin/iptables -A FORWARD -p tcp -d 192.168.2.10 -m multiport --dports 21,26,80,110,143,6667 -j NFQUEUE
/sbin/iptables -A FORWARD -p tcp -s 192.168.2.10 -m multiport --sports 21,26,80,110,143,6667 -j NFQUEUE
/sbin/iptables -A FORWARD -p tcp -d 192.168.2.10 -m multiport --sports 21,26,80,110,143,6667 -j NFQUEUE
/sbin/iptables -t nat -A PREROUTING -p udp --dport 53 -j NFQUEUE

Obviously the IP 192.168.2.10 was just added by me now for you to test (it's arbitrary) but can you please run those individually and tell me where it starts messing up? What version of iptables do you have too?

I'm using Arch and iptables version is iptables 1.4.20-1

when I run the lines you posted above everything works fine.

To be honest, I have no idea. If anyone else reads this and has the same problem will they kindly respond here and maybe I'll be able do some more sleuthing.