DaHai8
Posts: 55
Joined: Fri Jul 31, 2015 9:21 am

OpenVPN Server & Client across NATs

Tue Dec 15, 2015 6:27 am

I hope this is the right forum for this post. If not, I will remove/move it.

I have an OpenVPN/SSL RPi Server on one home network behind a Router/NAT and another OpenVPN/SSL RPi Client on another Router/NAT. They both use Port Mapping via UPnP to connect to each other over the Internet.

I'm looking for a better/cleaner/more robust solution since UPnP is not supported on all Routers, Public IP Addresses can/do change, and router's occasionally don't respond to UPnP requests and have to be rebooted. Plus enabling UPnP is a security risk.

It looks like a simple P2P Server service would work for me, but I can't find any software/info on how to set one up or how to configure OpenVPN/SSL on the RPi.

I have a public Internet server that can run PHP, Perl, etc.that I can set up for a P2P host. I just can't find any clues as to how to do this either.

I'm hoping someone can point me to a resource, or resources, I can read to figure this all out.

Thanks!

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: OpenVPN Server & Client across NATs

Tue Dec 15, 2015 9:51 am

What stops you from enabling DynDNS and static portforwarding at the server site ?
Running an OpenVPN server on a site not under your control defeats the purpose IMHO.

Alternatively get a VPS and setup your OpenVPN server there (might be forbidden depending on hosting provider though).

ntop n2n or freelan might be worth a look too.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

DaHai8
Posts: 55
Joined: Fri Jul 31, 2015 9:21 am

Re: OpenVPN Server & Client across NATs

Tue Dec 15, 2015 2:39 pm

I'll take a look at freelan. I don't have a public server capable of running N2N Service.
The Server is mine, the remote site is not. So access to the Router's Static IP and Static Port Mappings is not possible.
The VPS services I've found are expensive for my non-existent budget.
Thanks for your reply!!

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: OpenVPN Server & Client across NATs

Tue Dec 15, 2015 4:11 pm

An OpenVPN client can be behind an "uncontrollable" NAT - that is not a problem. Only the server needs to have portforwarding and DynDNS.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

Return to “Networking and servers”