VPN not working near local network Wi-Fi

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
kear235
OpenVpn Newbie
Posts: 3
Joined: Thu Jan 05, 2017 10:55 am

VPN not working near local network Wi-Fi

Post by kear235 » Thu Jan 05, 2017 11:43 am

Hi,

I setup an openVPN server on my clearOS box with just routing local traffic so I could watch CCTV cameras outside the network without opening ports.
The connection is fairly stable when I am in a different town working off either mobile data or wifi. however when I am within range of the local wifi network (but wifi disabled. connected to 4G mobile data) the VPN connects (even to the local cameras) but doesn't load the video stream.

At first I thought it was the mobile data speed but a speed test shows 30 mbps and we have had no problems loading the cameras with ports open.
I would like to stay away from routing all traffic through the server.

ClearOS: 7
HTC One OpenVPN Connect Android

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: VPN not working near local network Wi-Fi

Post by TinCanTech » Thu Jan 05, 2017 12:45 pm


kear235
OpenVpn Newbie
Posts: 3
Joined: Thu Jan 05, 2017 10:55 am

Re: VPN not working near local network Wi-Fi

Post by kear235 » Fri Jan 06, 2017 9:58 am

Open vpn version: 2.1.20-1

oconf=SERVER

Code: Select all

port 1194
proto udp
dev tun
ca /etc/pki/CA/ca-cert.pem
cert /etc/pki/CA/sys-0-cert.pem
key /etc/pki/CA/private/sys-0-key.pem
dh /etc/openvpn/ssl/dh1024.pem
server 10.8.0.0 255.255.255.0
keepalive 10 120
comp-lzo
user nobody
group nobody
multihome
persist-key
persist-tun
ifconfig-pool-persist /var/lib/openvpn/ipp.txt 120
status /var/lib/openvpn/openvpn-status.log
plugin /usr/lib64/openvpn/plugins/openvpn-plugin-auth-pam.so openvpn
verb 3
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DOMAIN XXX"
push "route 192.168.1.0 255.255.255.0"
push "dhcp-option WINS 192.168.1.1"
I can't find the Server log files, I've checked /var/log but nothing relates to OpenVPN.


oconf=CLIENT

Code: Select all

client
remote XXX 1194
dev tun
proto udp
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca-cert.pem
cert client-XXX-cert.pem
key client-XXX-key.pem
ns-cert-type server
comp-lzo
verb 3
auth-user-pass
I'm not sure where the Android Openvpn log files are either.
Let me know if you need any more information.

Ricky.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: VPN not working near local network Wi-Fi

Post by TinCanTech » Fri Jan 06, 2017 12:37 pm

kear235 wrote:Open vpn version: 2.1.20-1
Are you sure ? check your log file.
kear235 wrote: can't find the Server log file
See --log & --verb in The Manual v23x

kear235
OpenVpn Newbie
Posts: 3
Joined: Thu Jan 05, 2017 10:55 am

Re: VPN not working near local network Wi-Fi

Post by kear235 » Fri Jan 06, 2017 3:35 pm

Good spot that was the version ClearOS reported but the logs say OpenVPN 2.3.13 x86_64 redhat-linux-gnu.

I changed to config file to generate a log file. What am I looking for in the logs?

Post Reply