Routing all traffic via VPN?



  • Hello,
    I have OpenVPN working PfSense server, my problem is how to direct all the traffic after successful OVPN connection to go throughout the VPN. I think I need a static rout to direct all VPN private IP to go through the tunnel.
    Cheers,
    ![Screen Shot 2017-03-24 at 7.56.52 AM.png](/public/imported_attachments/1/Screen Shot 2017-03-24 at 7.56.52 AM.png)
    ![Screen Shot 2017-03-24 at 7.56.52 AM.png_thumb](/public/imported_attachments/1/Screen Shot 2017-03-24 at 7.56.52 AM.png_thumb)



  • Yes, you need a route on the client, but not static.
    The OpenVPN server can push the route to the client after the connection is established, when connection is closed the route is deleted again.

    To set this up go to the server settings and check "Redirect gateway".

    Ensure that there is an outbound NAT rule for the vpn tunnel subnet in place on pfSense with NAT address = WAN address.