Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Ubuntu as client to Openvpn on Pfsense

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 1 Posters 1.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kejianshi
      last edited by

      I always see strange behaviour from Ubuntu when using it as client to pfsense/openvpn.

      So, I'm using the exact same server and client config for windows, android and ubuntu.

      I have a server behind pfsense.

      If I broadcast phone wifi and connect with windows and then openvpn, I can see the LAN just fine.  If I check my ip on one of the many what is my IP sites, it shows the public IP of my pfsense WAN.  If I connect to my internal server, the IP of pfsense LAN shows up.  All good.

      Same is true of android.

      But with ubuntu, I can't reach the LAN and if I connect to my internal server using my dyndns domain name, it shows the IP of the cell phone but then if I connect to any external server or a what is my ip server it shows the IP of pfsense WAN.

      Its really really weird.

      So, I guess I'll be SSHing into my pfsense to see the gui if I'm using ubuntu away from home.

      This is one of those rare things windows really does much better.

      1 Reply Last reply Reply Quote 0
      • K
        kejianshi
        last edited by

        Solved my own issue with a little accidental help from marvosa

        In the client file on ubuntu, near bottom placed:

        route 10.0.0.0 255.255.255.0  (substituted my LAN Subnet)

        I haven't ever seen a good fix for this anywhere, but this is so simple.  Why didn't I do earlier (pfsense needs a facepalm icon) :-[

        keywords added for web searches:

        ubuntu linux mint pfsense openvpn can't access LAN TUN client

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.