OPNsense Forum

English Forums => Virtual private networks => Topic started by: hpm65 on June 06, 2021, 04:22:13 pm

Title: OpenVPN to access mi Home Network from Internet
Post by: hpm65 on June 06, 2021, 04:22:13 pm
Hi, I'm trying to access my LAN through a VPN from the Internet.
I have configured OpenVPN correctly, and I can connect locally, however from the Internet I cannot.
The firewall has 2 interfaces, one LAN and the other WAN. The WAN connects with the Movistar Router. Now, how should I redirect ports on the router so that I can access my LAN from outside my house?
Title: Re: OpenVPN to access mi Home Network from Internet
Post by: Greelan on June 07, 2021, 11:48:20 am
I haven’t set up OpenVPN on OPNsense (I used to run it on another server), but you don’t need to forward ports, just push routes to your LAN. In understand on OPNsense that is through the Local Networks option. Have you checked out the docs? https://wiki.opnsense.org/manual/how-tos/sslvpn_client.html

You will also need firewall rules on the OpenVPN interface to allow access to the LAN
Title: Re: OpenVPN to access mi Home Network from Internet
Post by: liceo on June 08, 2021, 09:32:36 pm
I don't know the Movistar Box, but if this is a router and not just a modem you DO need to add a port forwarding rule

Under NAT/Port forwarding: add Port 1194 UDP and TCP > forward to your opensene WAN IP address
Title: Re: OpenVPN to access mi Home Network from Internet
Post by: RamSense on June 10, 2021, 09:44:14 pm
maybe those instructions help you (they helped me back than :-) )

https://forum.opnsense.org/index.php?topic=13465.0 (https://forum.opnsense.org/index.php?topic=13465.0)

https://homenetworkguy.com/how-to/configure-openvpn-opnsense/ (https://homenetworkguy.com/how-to/configure-openvpn-opnsense/)