I have acces to VPN, but no connection to my network.

This forum is for admins who are looking to build or expand their OpenVPN setup.

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.
Post Reply
polloperro
OpenVpn Newbie
Posts: 2
Joined: Thu Sep 07, 2017 9:50 am

I have acces to VPN, but no connection to my network.

Post by polloperro » Thu Sep 07, 2017 10:00 am

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

polloperro
OpenVpn Newbie
Posts: 2
Joined: Thu Sep 07, 2017 9:50 am

Re: I have acces to VPN, but no connection to my network.

Post by polloperro » Wed Sep 13, 2017 7:17 am

:roll: :roll: :roll: :roll: :roll: anything?

postcd
OpenVPN User
Posts: 26
Joined: Sun Jan 24, 2016 9:22 pm

Re: I have acces to VPN, but no connection to my network.

Post by postcd » Fri Sep 15, 2017 5:17 pm

> 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..

klanimantsi
OpenVpn Newbie
Posts: 13
Joined: Mon Sep 04, 2017 9:00 am

Re: I have acces to VPN, but no connection to my network.

Post by klanimantsi » Tue Sep 19, 2017 9:39 am

Yup, did you check the server/client logs? quite crucial

Post Reply