Nftables Router Tutorial: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
This tutorial is meant to show how to use <span class="code">nftables</span> to build a router suitable for a home or boat. | This tutorial is meant to show how to use <span class="code">nftables</span> to build a router suitable for a home or boat. | ||
= Setup = | |||
Make sure that <span class="code">ip_forward</span> is enabled in the kernel. | |||
<syntaxhighlight lang="bash"> | |||
cat /proc/sys/net/ipv4/ip_forward | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="text"> | |||
0 | |||
</syntaxhighlight> | |||
This shows that it's disabled. To enable it, write "<span class="code">1</span>" to that virtual file | |||
<syntaxhighlight lang="bash"> | |||
echo 1 > /proc/sys/net/ipv4/ip_forward | |||
cat /proc/sys/net/ipv4/ip_forward | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="text"> | |||
1 | |||
</syntaxhighlight> | |||
= References = | = References = | ||
*[https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_firewalls_and_packet_filters/getting-started-with-nftables_firewall-packet-filters Getting started with nftables] - (*May required a Red Hat account). | * [https://wiki.nftables.org/wiki-nftables/index.php/Simple_ruleset_for_a_home_router Simple ruleset for a home router] - nftables Wiki | ||
* [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_firewalls_and_packet_filters/getting-started-with-nftables_firewall-packet-filters Getting started with nftables] - (*May required a Red Hat account). | |||
<span class="code"></span> | <span class="code"></span> | ||
<syntaxhighlight lang="bash"> | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="text"> | |||
</syntaxhighlight> | |||
{{footer}} | {{footer}} |
Revision as of 01:05, 28 March 2024
Alteeve Wiki :: How To :: Nftables Router Tutorial |
![]() |
Warning: This is incomplete and untrustworthy! Do not expect anything to be useful or accurate before this warning is removed. |
This tutorial is meant to show how to use nftables to build a router suitable for a home or boat.
Setup
Make sure that ip_forward is enabled in the kernel.
cat /proc/sys/net/ipv4/ip_forward
0
This shows that it's disabled. To enable it, write "1" to that virtual file
echo 1 > /proc/sys/net/ipv4/ip_forward
cat /proc/sys/net/ipv4/ip_forward
1
References
- Simple ruleset for a home router - nftables Wiki
- Getting started with nftables - (*May required a Red Hat account).
Any questions, feedback, advice, complaints or meanderings are welcome. | |||
Alteeve's Niche! | Alteeve Enterprise Support | Community Support | |
© 2025 Alteeve. Intelligent Availability® is a registered trademark of Alteeve's Niche! Inc. 1997-2025 | |||
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions. |