I have iptables set up on a server to only allow whitelisted ips to access it:
:INPUT ACCEPT [1695:323274]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [987:756890]
:xxx - [0:0]
-A INPUT -s 12.34.56.78/32 -j ACCEPT
-A INPUT -s 98.76.54.32/32 -j ACCEPT
-A INPUT -j DROP
This works in that it allows 12.34.56.78 and 98.76.54.32 (example IPs, obviously) to access the server. However, the server can't access the Internet itself. EG I can't access google using the lynx browser.
I don't mind this behaviour, but there are a few websites that I need the server to be able to talk to, specifically update sites.
What can I add to the rules to allow my server to talk to whitelisted servers?