OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: ang3l12 on February 21, 2018, 05:40:55 pm

Title: VPS Installation with VPN Tunnel
Post by: ang3l12 on February 21, 2018, 05:40:55 pm
I currently have opnsense installed on one of my VPS machines, installed by using the opnsense-bootstrap on top of FreeBSD 11.1

My goal is to be able to have a VPN tunnel from my VPS back to my homelab's LAN, to be able to use the VPS' WAN IP as an IP for services inside my homelab. Theoretically, this should work, as there are other people that have similar setups, mostly with pfSense and an OpenVPN client setup to connect to an OpenVPN server in their local LAN.

My problem comes when I configure the OpenVPN client on my VPS to connect to my homelab opnSense OpenVPN server, after about 30 seconds I lose connection to the VPS via the WAN IP. I can access the VPS via my provider's console, and running ping tests verifies internet access, but no connection to my homelab subnet, even though it looks like my homelab's opnsense is reporting the VPN as connected. Any ideas?

My VPS only has one NIC, which is set as the WAN interface.
Title: Re: VPS Installation with VPN Tunnel
Post by: Oxygen61 on February 24, 2018, 02:36:10 am
For more details about your OpenVPN connection you can always check the log file using SSH or by using the GUI itself. In case there is a problem originating from your OPNsense you will definitely catch some hints there to troubleshoot. :)
Title: Re: VPS Installation with VPN Tunnel
Post by: steverino on March 09, 2018, 04:53:00 am
I currently have opnsense installed on one of my VPS machines, installed by using the opnsense-bootstrap on top of FreeBSD 11.1

Just curious, what VPS are you using?

I've been thinking of trying this (running OPNsense in a VPS), but am more interested in trying IPSec because I think the throughput will be faster than OpenVPN.

Here's a tutorial I have been meaning to try: https://www.youtube.com/watch?v=2IdV4CgHo3w&feature=share