view · edit · sidebar · attach · print · history

Iptables

<< Security | Index | Netstat >>

Show iptables rules

  • iptables --line-numbers -vnL

Delete a rule

  • iptables -D INPUT 1

Input a rule at a certain position

Trace a PID and show the port it uses

  • strace -p 30456 -f -e trace=network -s 10000

Save the new rules

  • /etc/init.d/iptables save
view · edit · sidebar · attach · print · history
Page last modified on March 10, 2018, at 07:20 PM