Netgate SG-1000 microFirewall

Author Topic: Ubuntu as client to Openvpn on Pfsense  (Read 1208 times)

0 Members and 1 Guest are viewing this topic.

Offline kejianshi

  • Hero Member
  • *****
  • Posts: 4995
  • Karma: +199/-43
  • Debugging...
    • View Profile
Ubuntu as client to Openvpn on Pfsense
« on: September 21, 2013, 02:14:07 am »
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.
« Last Edit: September 21, 2013, 02:17:47 am by kejianshi »

Offline kejianshi

  • Hero Member
  • *****
  • Posts: 4995
  • Karma: +199/-43
  • Debugging...
    • View Profile
Re: Ubuntu as client to Openvpn on Pfsense
« Reply #1 on: September 21, 2013, 12:51:48 pm »
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