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.
block-outside-dns
I guess that your client is on Windows. You might try to remove that directive. I remark that ping may work in spite of DNS problems, because ping on Windows uses the DNS Client service while the browser opens a connection on the DNS port and issues a DNS query. You could try and stop this service and see whether this makes a difference. nslookup is a better test for DNS than ping because it doesn't use the service.block-outside-dns
from the client config and I still face the same issue. I am unsure if there is a firewall, however the fact that I am able to ping after being connected to the VPN should indicate that there is no firewall.