Will this block access to all but the specified IP address?
Will this restrict all access to the linode to the one IP address?
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -d 127.0.0.0/8 -j REJECT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -j ACCEPT
iptables -A INPUT -s 173.255.192.138 -j ACCEPT
iptables -A INPUT -j DROP
iptables -A FORWARD -j DROP
2 Replies
Run "iptables -L -n" to get a complete dump of all chains and post the result here.
Oh, and you should always test using "nmap