<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Nftables on HiDa</title><link>https://www.0niu.cn/tags/nftables/</link><description>Recent content in Nftables on HiDa</description><generator>Hugo -- gohugo.io</generator><language>zh</language><lastBuildDate>Thu, 24 Feb 2022 08:37:41 +0800</lastBuildDate><atom:link href="https://www.0niu.cn/tags/nftables/index.xml" rel="self" type="application/rss+xml"/><item><title>Ubuntu nftables 配置zerotier SNAT</title><link>https://www.0niu.cn/posts/ubuntu_nftables_zerotier_snat_configuration/</link><pubDate>Thu, 24 Feb 2022 08:37:41 +0800</pubDate><guid>https://www.0niu.cn/posts/ubuntu_nftables_zerotier_snat_configuration/</guid><description>&lt;p>zerotier的网段为10.234.0.0/24&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>sudo nft add rule nat POSTROUTING ip saddr 10.234.0.0/24 oif eth0 masquerade
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>sudo nft add rule filter FORWARD ip saddr 10.234.0.0/24 oif eth0 accept
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description><content>&lt;p>zerotier的网段为10.234.0.0/24&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>sudo nft add rule nat POSTROUTING ip saddr 10.234.0.0/24 oif eth0 masquerade
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>sudo nft add rule filter FORWARD ip saddr 10.234.0.0/24 oif eth0 accept
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></content></item></channel></rss>