OpenVPN: Internet traffic not bypassing VPN connection

  • Hi OpenVPN Pros!

    On my pfSense 2.4.4 release 1 server, I configured OpenVPN server. Despite OpenVPN's documentation at saying

    By default, when an OpenVPN client is active, only network traffic to and from the OpenVPN server site will pass over the VPN. General web browsing, for example, will be accomplished with direct connections that bypass the VPN.

    the clients' Internet traffic is not being bypassed.

    We want to have this standard behaviour.

    This is the clients' OVPN file:

    dev tun
    cipher AES-256-CBC
    ncp-ciphers AES-256-CBC
    auth SHA256
    resolv-retry infinite
    remote 5293 udp
    ca myCompanys-ca.crt
    tls-auth myCompanys-tls.key 1
    remote-cert-tls server
    comp-lzo no

    This is the server's configuration:

    			<authmode>LDAP Server</authmode>
    			<description><![CDATA[Employee VPN]]></description>
    			<custom_options>mssfix 1440;

    On the server's configuration the following three option are not enabled:

    Redirect IPv4 Gateway
    Force all client-generated IPv4 traffic through the tunnel.
    Block Outside DNS
    Make Windows 10 Clients Block access to DNS servers except across OpenVPN while connected, forcing clients to use only VPN DNS servers. Requires Windows 10 and OpenVPN 2.3.9 or later. Only Windows 10 is prone to DNS leakage in this way, other clients will ignore the option as they are not affected.
    Force DNS cache update
    Run "net stop dnscache", "net start dnscache", "ipconfig /flushdns" and "ipconfig /registerdns" on connection initiation. This is known to kick Windows into recognizing pushed DNS servers.

    Thanks for your time and help.

  • @reschi1 said in OpenVPN: Internet traffic not bypassing VPN connection:

    the clients' Internet traffic is not being bypassed.

    Why do you think so?
    How did you determine that? Traceroute, public IP check?

    Post the routing table of the client computer, while the vpn is connected.

  • Hi viragomann,

    thank you for your reply.

    You're right, the internet traffic is bypassing the VPN connection.

    My user reported otherwise.

    The real issue seems to be recurring DNS latency in around 20% of the WWW queries (i.e. using the web browser when the VPN connection is established.)

Log in to reply