OpenVPN Policy Based Routing

Started by davidsimpson78, June 18, 2020, 10:18:27 PM

Previous topic - Next topic
Hi All,

I am really sorry as i am sure this has been asked, i am new to OPNSense and new to building your own router, i have moved From an Asus router AC87u as i have ugraded my internet connection to gigabit fibre, ive built an OPNsense Router from a PC this goes to my 24port layer 2 switch and i have a couple AP's, i origionally started with PFSense, but i prefere OPNSense gui,

With Asus Merlin i could goto the OpenVPN Client page and i could set or select Mac addresses of what i wanted to go through my VPN, also tell it not to connect if the vpn goes down, I have googled and googled and there are so many guides but it just doesn't seem to be that simple,

Could someone point me in the direction of a guide/instructions to guide me thorough setting up openVPN so i can set specific IP's to go through my VPN and the rest of my traffic through WAN, i already have a VPN

My OPNSense setup works amazing im really impressed with it, i just really need to setup the last bit and im done.

Many thanks in advance.
Dave

Policy based routing will be done with firewall rules, but i dont know how to do with ovpn connections.
Otherwise you can direct the specific clients to use VPN as default gateway by adding redirect-gateway to the ovpn client config.
i am not an expert... just trying to help...