<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takuya_1st</author_name>
  <author_url>https://blog.hatena.ne.jp/takuya_1st/</author_url>
  <blog_title>それマグで！</blog_title>
  <blog_url>https://takuya-1st.hatenablog.jp/</blog_url>
  <categories>
    <anon>network</anon>
    <anon>linux</anon>
    <anon>nftables</anon>
    <anon>nft</anon>
    <anon>netns</anon>
  </categories>
  <description>linuxで単純なルータ機能を作る マスカレードやDNAT/SNATをして、ルータ機能を作ってみる。 先のiptablesと比較してnft でどうなるのかを見たいので、試した。 ネットワーク構成図 以下のようなネットワーク構成を作る 実際に作った構成 ipコマンドには netnsの機能があるので、これを利用して内部で名前空間（namespace）で分割して簡単にネットワーク構成を作ってみた。 作成用のコマンド ## コンテナ作成 lxc launch ubuntu:22.04 t01 lxc config set t01 security.nesting true lxc restart t0…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2023%2F06%2F23%2F021732&quot; title=&quot;linuxのnftables(nft)でルータ機能を作る - それマグで！&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/t/takuya_1st/20230623/20230623014327.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-06-23 02:17:32</published>
  <title>linuxのnftables(nft)でルータ機能を作る</title>
  <type>rich</type>
  <url>https://takuya-1st.hatenablog.jp/entry/2023/06/23/021732</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
