Answers for "iptables permanent allow incoming outgoing port"

0

iptables block incoming port

iptables -A INPUT -p tcp --dport 8000 -s 1.2.3.4 -j ACCEPT
iptables -A INPUT -p tcp --dport 8000 -j DROP
Posted by: Guest on July-02-2020
0

iptables allow all outgoing

iptables -I OUTPUT -o eth0 -d 0.0.0.0/0 -j ACCEPT
iptables -I INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
Posted by: Guest on April-07-2021

Code answers related to "iptables permanent allow incoming outgoing port"

Browse Popular Code Answers by Language