Tag : iptables

Editing iptables on a Centos machine? Firstly you can check your rules like so – iptables -L cd /home/richard iptables-save > 08-05-2015.rules vi 08-05-2015.rules (add your rules) iptables-restore < 08-05-2015.rules services iptables save iptables -L – You should now see your ..

Read more

I had problems setting iptables on ubuntu so used a script to get it working and modified it for my specific ports I needed to be open. #!/bin/sh IPT=”/sbin/iptables” # Flush old rules, old custom tables $IPT –flush $IPT –delete-chain # Set default policies for all three default chains $IPT -P INPUT DROP $IPT -P ..

Read more