<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Protocols on ./Sam_Stelfox.sh</title><link>https://stelfox.net/notes/protocols/</link><description>Recent content in Protocols on ./Sam_Stelfox.sh</description><generator>Hugo</generator><language>en-US</language><copyright>Copyright © 2008, Sam Stelfox, all rights reserved.</copyright><atom:link href="https://stelfox.net/notes/protocols/atom.xml" rel="self" type="application/rss+xml"/><item><title>GRE Tunnel</title><link>https://stelfox.net/notes/protocols/gre-tunnel/</link><pubDate>Mon, 09 Oct 2017 22:14:23 +0000</pubDate><guid>https://stelfox.net/notes/protocols/gre-tunnel/</guid><description>&lt;p&gt;GRE (Generic Routing Encapsulation) wraps layer 3 traffic inside IP protocol 47 packets, creating a simple point-to-point tunnel between two hosts. The tunnel itself is unencrypted, so pair it with IPSec or WireGuard if you need confidentiality.&lt;/p&gt;
&lt;h2 id="quick-setup"&gt;Quick Setup&lt;/h2&gt;&lt;p&gt;Two hosts connecting their private networks through a GRE tunnel. Use a dedicated /30 for the inner tunnel addresses that does not overlap with anything else on either side.&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;&lt;/th&gt;
 &lt;th&gt;Host 1&lt;/th&gt;
 &lt;th&gt;Host 2&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;Public IP&lt;/td&gt;
 &lt;td&gt;1.2.3.4&lt;/td&gt;
 &lt;td&gt;4.3.2.1&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Tunnel IP&lt;/td&gt;
 &lt;td&gt;172.16.10.1&lt;/td&gt;
 &lt;td&gt;172.16.10.2&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Private network&lt;/td&gt;
 &lt;td&gt;10.0.0.0/24&lt;/td&gt;
 &lt;td&gt;10.16.0.0/24&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;On Host 1:&lt;/p&gt;</description></item></channel></rss>