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
my egress rules
i'm trying for a wireguard connection too :(, but can't seem to get any ports open at all