<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>daichi703n</author_name>
  <author_url>https://blog.hatena.ne.jp/daichi703n/</author_url>
  <blog_title>designetwork </blog_title>
  <blog_url>https://designetwork.daichi703n.com/</blog_url>
  <categories>
    <anon>OS</anon>
    <anon>OS-Linux</anon>
    <anon>プラットフォーム</anon>
    <anon>プラットフォーム-Docker</anon>
  </categories>
  <description>運用NICを持つLinuxサーバなどでは、非対称ルーティングを回避するためにPBR(Policy-Based Routing: ポリシーベースルーティング)を設定する場合がある。Dockerコンテナ宛通信もPBR対象とするためには、単純なソースIFでのPBRだけでは制御できないため、fwmarkにより通信を識別し、応答IFを固定する。 OS：CentOS7 NIC構成 eth0が通常NICで、こちらをデフォルトGWに設定している。eth1は運用用として、特定宛先との通信に使用する。運用セグメントからはeth0, eth1ともにアクセスするが、通常ルーティングでは応答パケットはeth0から送信さ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdesignetwork.daichi703n.com%2Fentry%2F2021%2F12%2F26%2Flinux-pbr-for-docker&quot; title=&quot;Docker対応PBRで複数NICのLinuxで必ず受信IFから応答(非対称ルーティング回避)するよう設定する - designetwork &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/d/daichi703n/20211226/20211226192542.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-12-26 19:31:50</published>
  <title>Docker対応PBRで複数NICのLinuxで必ず受信IFから応答(非対称ルーティング回避)するよう設定する</title>
  <type>rich</type>
  <url>https://designetwork.daichi703n.com/entry/2021/12/26/linux-pbr-for-docker</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
