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

view full story

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 -d -i eth0 -p tcp -m tcp --dport 23 -j REJECT. in this case i reject from telneting to (HowTos)