SoftEther 1:1 NAT to branch offices overlapping ip's

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
engineer69
Posts: 2
Joined: Fri Jan 15, 2016 10:43 am

SoftEther 1:1 NAT to branch offices overlapping ip's

Post by engineer69 » Fri Jan 15, 2016 11:00 am

Following scenario I'm able to get working with OpenVPN. But for the various reasons I would like to get it also working with SoftEtherVPN. Could you help me with configuration to get routing working.

[attachment=0]Softether_scenario.jpg[/attachment]

I should be able to connect for each device in branch offices from the application server by using 10.10.x.x IP addresses. In routers I have set iptables rules to enable 1:1 NAT.

iptables -t nat -D PREROUTING -d '10.10.10.0/24' -i tun0 -j NETMAP --to '192.168.1.0/24'
iptables -t nat -I PREROUTING -d '10.10.10.0/24' -i tun0 -j NETMAP --to '192.168.1.0/24'
iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o tun0 -j NETMAP --to '10.10.10.0/24'
iptables -t nat -I POSTROUTING -s '192.168.1.0/24' -o tun0 -j NETMAP --to '10.10.10.0/24'

But how I should set routing and interfaces on SoftEther server to get it working?

I have tried to add push route 10.10.10.0/255.255.255.0/192.168.30.10 to the VirtualNAT, but without success. Also tried to add same routing rule to the L3 switch routing table where VirtualHUB belongs to.

Additionally I have road warrior which uses 192.168.30.x address. This should also be able to connect branch offices, but I have same problem. In practice, I can't get 10.10.x.x addressing working over tunnels.
You do not have the required permissions to view the files attached to this post.

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: SoftEther 1:1 NAT to branch offices overlapping ip's

Post by thisjun » Thu Jan 28, 2016 7:36 am

Please try to use tap mode localbridge.

engineer69
Posts: 2
Joined: Fri Jan 15, 2016 10:43 am

Re: SoftEther 1:1 NAT to branch offices overlapping ip's

Post by engineer69 » Tue Feb 02, 2016 8:01 am

Do you mean that I should bridge VPN connections and then do routing on the server OS instead of SoftEther?
Maybe short example would help me most.

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: SoftEther 1:1 NAT to branch offices overlapping ip's

Post by thisjun » Tue Feb 16, 2016 7:37 am


Post Reply