#StackBounty: #ubuntu #vpn #openvpn VPN connects from home but not from work or mobile data

Bounty: 100

I have OpenVPN configured on an Ubuntu 16.04 server. I am able to use this VPN service from one network but not from others and would appreciate any help.

Home Network
Everything works fine. I am able to connect to the VPN and browse webpages from different devices (macbook and android phone).

Work Network
VPN client connects but I am unable to browse webpages on any device.
Pinging hostname works so it may not be a DNS issue.
Browser pages get stuck on connecting till they timeout.
Slack client does not connect however the Dropbox client does report being connected.

Mobile Data
Same as work network.

Server Config

port 443
proto udp
dev tun
sndbuf 0
rcvbuf 0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
tls-auth ta.key 0
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
cipher AES-256-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem

Client Config

client
dev tun
proto udp
sndbuf 0
rcvbuf 0
remote x.x.x.x 443  #My Server's IPAddress
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
comp-lzo
setenv opt block-outside-dns
key-direction 1
verb 3

Although this config uses port 443 I had the same problem while using the default port 1194.
I have also experimented by changing the DNS push configuration and using Google DNS servers but this does not make any difference.

Hoping someone can help.


Get this bounty!!!