I'm trying to set-up iptables so it will only allow incoming connections on ports I specify.
I managed to get it working however it seems I somehow managed to break outgoing connections in the process.
Both NS look-ups and pings seem to fail, and probably everything else too.
Chain INPUT (policy DROP) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:ssh Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
So how can I make this work, while still allowing outgoing connections?