I'm configuring iptables on a new web dedicated server. The rules are really simple :
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:4567
ACCEPT tcp -- anywhere anywhere tcp dpt:https
ACCEPT tcp -- anywhere anywhere tcp dpt:http
Chain FORWARD (policy ACCEPT)
Chain OUTPUT (policy ACCEPT)
The port 4567 is for SSH. The first INPUT line is for localhost with loopback interface. I cannot use apt-get install, update or anything related.
I tried every rule I could find on google to solve this, but none of them worked, I tried to accept port 53, FTP, I messed with ESTABLISHED RELATED and stuff, I cannot seem to make it works.
If you have any idea on what rules to apply...