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 18.104.22.168/32 -j ACCEPT -A INPUT -s 22.214.171.124/32 -j ACCEPT -A INPUT -j DROP
This works in that it allows 126.96.36.199 and 188.8.131.52 (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?