iptables -I INPUT 3 -s 10.0.0.0/8 -p tcp --dport 6600 -j ACCEPT

sudo iptables -n -L -v --line-numbers
sudo iptables -I INPUT -s 10.0.0.0/8 -p tcp --dport 6600 -j ACCEPT

-m : extended match ???

Allow postgresql connections:
sudo iptables -A INPUT -p tcp --dport 5432 -j ACCEPT

To delete a rule: replace -A with -D
Go to index of articles.

Share on