How to make OpenVpn server route all client traffic (disable local LAN)



  • I'm running pfsense (currently 2.0.3) as my internet router with an openvpn server. When I connect from outside (from a hotel or my work) I get access to my internal network but I can't connect to internet that way.

    At work we have Cisco AnyConnect and when I connect to it (from a hotel or my home) the connection disables my local LAN and everything is routed thru the AnyConnect network. That is quite handy when I'm abroad and want to have I swedish IP address.

    I would like to do the same with my openvpn server, is this possible?

    Do you need info on how my setup looks?

    /Peter



  • did you notice the "Redirect Gateway' checkbox in your server config ?

    Force all client generated traffic through the tunnel.



  • Thank you very much. I'm not much of a networking tech ;)

    Problem solved.

    /Peter

    @heper:

    did you notice the "Redirect Gateway' checkbox in your server config ?

    Force all client generated traffic through the tunnel.


Log in to reply