<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>turgenev</author_name>
  <author_url>https://blog.hatena.ne.jp/turgenev/</author_url>
  <blog_title>turgenev’s blog</blog_title>
  <blog_url>https://turgenev.hatenablog.com/</blog_url>
  <categories>
    <anon>ネットワーク</anon>
    <anon>Linux</anon>
  </categories>
  <description>TCPでは、自分から接続を切断する際に、外向きのFIN（+ACK）→内向きのFIN+ACK→最後の外向きのACK、という順でパケットがやりとりされます。この外向きのACKを送ったあとしばらくはソケットを使い回さないようにTIME_WAITという状態が設定されます（理由は他のサイトを見てください）。 Linuxのnetfilter（conntrack）によるNATでも、（自端末あるいは他端末からの）TCP接続を管理するにあたってこのTIME_WAITの状態が発生します。TIME_WAIT状態になっているポートはその間はNATのために使用されることはなくなります。 例えば192.168.1.1:2…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fturgenev.hatenablog.com%2Fentry%2F2024%2F04%2F14%2F162509&quot; title=&quot;Linux 6.5のnetfilter（iptables, nftables）のNATはTCPのTIME_WAIT状態のポートを使いまわす - turgenev’s blog&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-04-14 16:25:09</published>
  <title>Linux 6.5のnetfilter（iptables, nftables）のNATはTCPのTIME_WAIT状態のポートを使いまわす</title>
  <type>rich</type>
  <url>https://turgenev.hatenablog.com/entry/2024/04/14/162509</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
