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
VPN not working near local network Wi-Fi
-
- OpenVpn Newbie
- Posts: 3
- Joined: Thu Jan 05, 2017 10:55 am
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
-
- OpenVpn Newbie
- Posts: 3
- Joined: Thu Jan 05, 2017 10:55 am
Re: VPN not working near local network Wi-Fi
Open vpn version: 2.1.20-1
oconf=SERVER
I can't find the Server log files, I've checked /var/log but nothing relates to OpenVPN.
oconf=CLIENT
I'm not sure where the Android Openvpn log files are either.
Let me know if you need any more information.
Ricky.
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"
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
Let me know if you need any more information.
Ricky.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: VPN not working near local network Wi-Fi
Are you sure ? check your log file.kear235 wrote:Open vpn version: 2.1.20-1
See --log & --verb in The Manual v23xkear235 wrote: can't find the Server log file
-
- OpenVpn Newbie
- Posts: 3
- Joined: Thu Jan 05, 2017 10:55 am
Re: VPN not working near local network Wi-Fi
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?
I changed to config file to generate a log file. What am I looking for in the logs?