fachinformatiker-wiki

it's easy when it's here

User Tools

Site Tools


linux:iptables

Table of Contents

iptables

List

sudo iptables -L                                       # list
sudo iptables -t nat -L -v                             # list nat table

Edit

sudo iptables -A FORWARD -i wg0 -o wg0 -j ACCEPT       # ans Ende der chain (append)
sudo iptables -I FORWARD -i wg0 -o wg0 -j ACCEPT       # an den Anfand der Chain
sudo iptables -I 4 FORWARD -i wg0 -o wg0 -j ACCEPT     # an 4. Stelle der Chain

Delete

sudo iptables -t nat -v -L -n --line-number            # list nat table rules numbered
sudo iptables -t nat -D POSTROUTING 6                  # delete rule from nat table in chain POSTROUTING number 6
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.  More information about cookies 
linux/iptables.txt · Last modified: 2024/02/17 19:03 by 127.0.0.1