I tried to block all ports except 22(ssh), 80(http), 443(https). My current INPUT rules are these.
> iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:ssh ACCEPT tcp -- anywhere anywhere tcp dpt:https ACCEPT tcp -- anywhere anywhere tcp dpt:http DROP all -- anywhere anywhere it should accept http and https port and then block everything else. but It's blocking everything. for example when I try to visit facebook which uses port 80 & 443, it doesn't work. I can't visit facebook. what should I do now?
I also tried like this. Allowed mentioned ports and made the policy DROP, though I'm not sure. the same happens.
> iptables -L Chain INPUT (policy DROP) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:ssh ACCEPT tcp -- anywhere anywhere tcp dpt:https ACCEPT tcp -- anywhere anywhere tcp dpt:http
ifconfigcat /etc/network/interfacescat /etc/resolv.confservice network-manager status