6

How to write iptables rule for a machine that only accept telnet from a specific IP?

view full story
linux-howto

http://serverfault.com – I know how to reject a specific ip(s), but how about reject all except one ip? Reject only 1: iptables -A FORWARD -s 1.2.3.4 -d 2.2.2.2 -i eth0 -p tcp -m tcp --dport 23 -j REJECT. in this case i reject 1.2.3.4 from telneting to 2.2.2.2 (HowTos)