Hi, I have a little problem. A few days ago, the VPN works fine, but the server was rebooted and it no works. My VPN server are situated inside my local network.
I attached my server.conf to see if anyone can help me.
local 192.168.0.MYIP
port 1194
proto tcp
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig 10.8.0.1 10.8.0.2
push "route 10.8.0.1 255.255.255.255"
push "route 10.8.0.0 255.255.255.0"
push "route 192.168.0.0 255.255.255.255"
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 192.168.0.MYIP"
keepalive 10 120
tls-auth ta.key 0 # This file is secret
key-direction 0
cipher AES-128-CBC # AES
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
I ayyached my iptables.
# Allow traffic initiated from VPN to access LAN
iptables -I FORWARD -i tun0 -o ens192 \
-s 10.8.0.0/24 -d 192.168.0.0/24 \
-m conntrack --ctstate NEW -j ACCEPT
# Allow established traffic to pass back and forth
iptables -I FORWARD -m conntrack --ctstate RELATED,ESTABLISHED \
-j ACCEPT
I have acces to VPN, but no connection to my network.
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Thu Sep 07, 2017 9:50 am
-
- OpenVpn Newbie
- Posts: 2
- Joined: Thu Sep 07, 2017 9:50 am
-
- OpenVPN User
- Posts: 26
- Joined: Sun Jan 24, 2016 9:22 pm
Re: I have acces to VPN, but no connection to my network.
> no connection to my network
I assume you tried traceroute/ping with success. Server/client logs may show some more details on what is going on..
I assume you tried traceroute/ping with success. Server/client logs may show some more details on what is going on..
-
- OpenVpn Newbie
- Posts: 13
- Joined: Mon Sep 04, 2017 9:00 am
Re: I have acces to VPN, but no connection to my network.
Yup, did you check the server/client logs? quite crucial