<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>IT notes - portforward</title>
    <subtitle>DBRE, AWS platform engineering, PostgreSQL, Linux, FreeBSD, and Rust reference notes.</subtitle>
    <link rel="self" type="application/atom+xml" href="https://nbari.com/tags/portforward/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://nbari.com"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2020-05-11T13:43:01+02:00</updated>
    <id>https://nbari.com/tags/portforward/atom.xml</id>
    <entry xml:lang="en">
        <title>Bypass AllowTcpForwarding</title>
        <published>2020-05-11T13:43:01+02:00</published>
        <updated>2020-05-11T13:43:01+02:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://nbari.com/bypass-allowtcpforwarding/"/>
        <id>https://nbari.com/bypass-allowtcpforwarding/</id>
        
        <content type="html" xml:base="https://nbari.com/bypass-allowtcpforwarding/">&lt;p&gt;To bypass &lt;code&gt;AllowTcpForwarding no&lt;/code&gt; try using &lt;code&gt;socat&lt;/code&gt; and &lt;code&gt;nc&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo z-code&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;socat TCP-LISTEN:&amp;lt;local port&amp;gt;,reuseaddr,fork &amp;quot;EXEC:ssh &amp;lt;server&amp;gt; nc localhost &amp;lt;remote port&amp;gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For example from your desktop run:&lt;/p&gt;
&lt;pre class=&quot;giallo z-code&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;socat TCP-LISTEN:8080,reuseaddr,fork &amp;quot;EXEC:ssh 1.2.3.4 nc 10.0.0.1 3000&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will listen on local port &lt;code&gt;8080&lt;/code&gt; connect via ssh to &lt;code&gt;1.2.3.4&lt;/code&gt; and use &lt;code&gt;nc&lt;/code&gt;
to connect &lt;code&gt;10.0.1.1:3000&lt;/code&gt;&lt;/p&gt;
</content>
        
    </entry>
</feed>
