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 188.8.131.52
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 184.108.40.206 -j ACCEPT iptables -A INPUT -s 0.0.0.0/0 -j DROP iptables -A OUTPUT -d 0.0.0.0/0 -j DROP