I want to block all IPs except for my own home IP from doing anything on my server.
How can I do this with iptables? For the example lets say my home IP is 220.127.116.11
My server still needs to be able to connect to various IPs. Also by doing this will this cause any general problems?
Something like this? (doesn't work)
/sbin/iptables -A INPUT -s 18.104.22.168 -j ACCEPT iptables -A INPUT -s 0.0.0.0/0 -j DROP iptables -A OUTPUT -d 0.0.0.0/0 -j DROP