arachn1d wrote:
So at the beginning I have to do something like:
iptables -A INPUT -i eth1 -s 10.50.0.0/16 -j ACCEPT
Ok.
#1 how do I know what goes after -i (the eth1 part). How do I know if it's eth1 or eth0?
-s can be a straight ip without subnet?
That's all I need?
If you look at the
iptables manual you will find -i and -s in the PARAMETERS section. It should explain how these two options work in detail.
You can use "ip link" to list the interfaces on your server and find out which one should be added after -i.