News:

The Latest electronic and computer Tips that work!

Main Menu

Iptables open ports

Started by branx86, November 02, 2016, 09:44:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

branx86

List Rules with Line Numbers
iptables -L --line-numbers

Deletes Rule with line Number
iptables -D INPUT 3

Add port accessible to wan
iptables -A INPUT -p tcp -m tcp --dport 8040 -j ACCEPT