<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kazuhira</author_name>
  <author_url>https://blog.hatena.ne.jp/Kazuhira/</author_url>
  <blog_title>CLOVER🍀</blog_title>
  <blog_url>https://kazuhira-r.hatenablog.com/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>Python</anon>
  </categories>
  <description>これは、なにをしたくて書いたもの？ 時々、TCPでの通信をローカルポートから別の宛先に転送したくなることがあります。いわゆるプロキシです。 個人的に、こういう時にはsocatをよく使っているのですが。 socatでTCPプロキシサーバーを立てる - CLOVER🍀 転送先が増えてくると、これを複数書くのが面倒になってきます。そして、シェルスクリプトだとちょっと苦しい感じがします。 なので、スクリプトでも書こうかなと。 お題 今回は、以下のお題で書いてみようかなと思います。 作成のスクリプト内で、複数の宛先に対するTCP通信の転送定義を書けるようにする TCPプロキシの機能は、socatをプロセ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazuhira-r.hatenablog.com%2Fentry%2F2023%2F01%2F15%2F154127&quot; title=&quot;複数の宛先に対する簡単なTCPプロキシサーバーをsocat＋Pythonで書く - CLOVER🍀&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>2023-01-15 15:41:27</published>
  <title>複数の宛先に対する簡単なTCPプロキシサーバーをsocat＋Pythonで書く</title>
  <type>rich</type>
  <url>https://kazuhira-r.hatenablog.com/entry/2023/01/15/154127</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
