If you need to open up ports 80
and 443
, on file /etc/iptables/rules.v4
just add
-A INPUT -p tcp -m state --state NEW -m multiport --dports 80,443 -j ACCEPT
directly below
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
And reboot OR run bellow
sudo /sbin/iptables-restore < /etc/iptables/rules.v4
Thanks for the suggestion @11k
See that some lines of the rules.v4
file are commented with # at the beginning
this doesn't to work for me at all, can you help me out? i am checking these via a portchecker.co website
doesn't seem to take any effect
this is my config file changes
my ingress rules
![image](https://user-images.githubusercontent.com/71078441/212450831-1a8b7962-c852-48fd-8b16-b8ee40959aec.png)
![image](https://user-images.githubusercontent.com/71078441/212450757-937fa4c8-de59-4541-8ca6-b5fa786bb863.png)
my egress rules
i'm trying for a wireguard connection too :(, but can't seem to get any ports open at all