What's new

Connect two locations via "transparent vpn"?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

pppp12

New Around Here
Hello,

Sorry for the title, couldn't find better one...
Problem description:

1. Two locations
2. Both have asuswrt-merlin with public ip
3. Both locations should have same LAN (each PC should see other five PCs)
4. Location_2 does not need access to "outside internet", only to Location_1 and Location_2
5. Preferably IPs in Location_2 should be served by DHCP on Router1


Code:
Location_1                                                                Location_2

PC1 (192.168.1.2)---\                                                    /---PC4 (192.168.1.11)
                     \                                                  /
PC2 (192.168.1.3)----- Router1 (PublicIP_1) ------ (PublicIP_2) Router2 -----PC5 (192.168.1.12)
                     /                                                  \
PC3 (192.168.1.4)---/                                                    \---PC6 (192.168.1.13)


I assume I need OpenVPN server on Router1 and Client on Router2.
Since this is my approach to VPN, all suggestions would be helpful.
Thanks in advance.

pepesz
 
Don't do what you have pictured. Change the network on one of the sides so you can build routing tables that tell the client when to send packets outside of the local network.

You could make one network 192.168.1.x and one 192.168.2.x for example.
 
Thanks, I will change the Location_2 LAN to 192.168.2.x
Could you or someone experienced give example of that routing table?
Much appreciated.
Thank you again!
 
If you want to do this the industry standard way, you use enterprise IPsec vpn routers and build IPsec tunnels. Used enterprise routers are cheaper than anything consumer and 10x as powerful. Use the consumer routers as access points.
 
Similar threads

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top