linux:iptables
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:iptables [2023/04/01 01:04] – admin | linux:iptables [2025/10/21 00:48] (current) – [Edit] gsys | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== iptables ====== | ====== iptables ====== | ||
| - | List | + | ===== List ===== |
| < | < | ||
| - | sudo iptables -L | + | sudo iptables -L |
| - | sudo iptables -t nat -L -v | + | sudo iptables -t nat -L -v |
| </ | </ | ||
| - | Delete | + | ===== Edit ===== |
| < | < | ||
| - | sudo iptables -t nat -v -L -n --line-number | + | sudo iptables -A FORWARD -i wg0 -o wg0 -j ACCEPT |
| - | sudo iptables -t nat -D POSTROUTING 6 # delete rule from nat table in chain POSTROUTING number 6 | + | sudo iptables -I FORWARD -i wg0 -o wg0 -j ACCEPT |
| + | sudo iptables -I 4 FORWARD -i wg0 -o wg0 -j ACCEPT | ||
| + | </ | ||
| + | |||
| + | ===== Delete ===== | ||
| + | < | ||
| + | sudo iptables -t nat -v -L -n --line-number | ||
| + | sudo iptables -t nat -D POSTROUTING 6 # delete rule from nat table in chain POSTROUTING number 6 | ||
| </ | </ | ||
linux/iptables.1680303862.txt.gz · Last modified: (external edit)