<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.skytech.dk/index.php?action=history&amp;feed=atom&amp;title=Ipsec_-_routing_private_subnet_public</id>
	<title>Ipsec - routing private subnet public - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.skytech.dk/index.php?action=history&amp;feed=atom&amp;title=Ipsec_-_routing_private_subnet_public"/>
	<link rel="alternate" type="text/html" href="https://wiki.skytech.dk/index.php?title=Ipsec_-_routing_private_subnet_public&amp;action=history"/>
	<updated>2026-05-01T04:28:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.skytech.dk/index.php?title=Ipsec_-_routing_private_subnet_public&amp;diff=2353&amp;oldid=prev</id>
		<title>Martin: Created page with &quot;Category:Linux  = Ipsec = While setting up ipsec - and findout that you can reach one network but not the other by seeing the working network (on both routes) routes via t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.skytech.dk/index.php?title=Ipsec_-_routing_private_subnet_public&amp;diff=2353&amp;oldid=prev"/>
		<updated>2018-04-21T19:09:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Category:Linux&quot; title=&quot;Category:Linux&quot;&gt;Category:Linux&lt;/a&gt;  = Ipsec = While setting up ipsec - and findout that you can reach one network but not the other by seeing the working network (on both routes) routes via t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Linux]]&lt;br /&gt;
&lt;br /&gt;
= Ipsec =&lt;br /&gt;
While setting up ipsec - and findout that you can reach one network but not the other by seeing the working network (on both routes) routes via the ipsec tunnel from private &amp;lt;==&amp;gt; private net.&lt;br /&gt;
&lt;br /&gt;
On the other network you see the router (usually multihomed) trying to route traffic to that network from the public interface &amp;lt;==&amp;gt; private net.&lt;br /&gt;
&lt;br /&gt;
One has to tell the router to SNAT to the private net:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
## Assuming:&lt;br /&gt;
### Destination network: 10.8.139.14/31&lt;br /&gt;
### Source network: 192.168.0.0/23&lt;br /&gt;
### Routing via private network router/gw: 192.168.0.250&lt;br /&gt;
&lt;br /&gt;
$IPT -t nat -A POSTROUTING -d 10.8.139.14/31 -s 192.168.0.0/23 -j SNAT --to-source 192.168.0.250 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Martin</name></author>
	</entry>
</feed>