Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux_router:nftables [2023-09-19 Tue wk38 20:05] – [Sample NFTables configuration] baumkp | linux_router:nftables [2024-09-21 Sat wk38 20:29] (current) – [iptables] baumkp | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
=====NFTables Configuration===== | =====NFTables Configuration===== | ||
- | |||
The best reference for nftables is at the dedicated wiki [[https:// | The best reference for nftables is at the dedicated wiki [[https:// | ||
Line 7: | Line 6: | ||
Dont forget to ensure the router is allowed to forward packets: | Dont forget to ensure the router is allowed to forward packets: | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
* '' | * '' | ||
+ | ====iptables==== | ||
+ | It is not a good idea to have both iptables and nftables rules setup at the same time. | ||
+ | *To check existing iptables rules: '' | ||
+ | <code text>-P INPUT ACCEPT | ||
+ | -P FORWARD ACCEPT | ||
+ | -P OUTPUT ACCEPT</ | ||
+ | *The iptables rules can be flushed with '' | ||
+ | |||
====Sample NFTables configuration==== | ====Sample NFTables configuration==== | ||