Answers for "how to add iptables to all traffic"

0

iptables allow port from anywhere

sudo iptables -A INPUT -p tcp --dport 443 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
sudo iptables -A OUTPUT -p tcp --sport 443 -m conntrack --ctstate ESTABLISHED -j ACCEPT
Posted by: Guest on January-02-2021
0

iptables allow port from anywhere

sudo iptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
sudo iptables -A OUTPUT -p tcp -m multiport --dports 80,443 -m conntrack --ctstate ESTABLISHED -j ACCEPT
Posted by: Guest on January-02-2021

Code answers related to "how to add iptables to all traffic"

Browse Popular Code Answers by Language