Help with VPN and DHCP

Started by oldgargamel, June 02, 2021, 08:49:42 AM

Previous topic - Next topic
Hi, so im sorry if i ask some stupid questions :) Trying to learn OPNsense from scratch so yes im a n00b with opnsense

This is what i want to do,

I got my VPN client up and running, its assinged with OPT1

I want my use my VPN with in my local ip range of 192.168.1.50 - 192.168.1.99 (using static ip on the devices that going to use the VPN)

but i want all devices that using DHCP to using my none VPN ISP and WAN.

I have been trying for some days now with no luck, i have hard time to find guides for it
so i come here and see if someone can help me :)

Hi Olgargamel,
You wrote:
QuoteI got my VPN client up and running, its assinged with OPT1
Do you have assigned OPT1 to an external connection (WAN) or do you want to set up an internal VPN connection?
Usually VPN is assigned to WAN to offer a VPN connection from the outside.
Your VPN connection uses its own IP range:  VPN: OpenVPN: Servers /  IPv4 Tunnel Network in case you are using OpenVPN.
Offering access to the local network(s) to your VPN clients is done by firewall rules.


Quote from: gdur on June 02, 2021, 10:52:18 AM
Do you have assigned OPT1 to an external connection (WAN) or do you want to set up an internal VPN connection?

I have set up with external connection (https://www.ovpn.com/)

I got it running, i have set up a rule so the vpn working when im in the ip range 192.168.1.50-192.168.1.99
with an aliases, but if im outside that ip range i cant connext to internet, i tested with a new alias and rule but no luck.

I share some screens with settings


It's absolutely unclear what you are trying to achieve.
QuoteI have set up with external connection (https://www.ovpn.com/)
What is this suppose to mean???