B
B
beduin012018-04-30 09:02:42
openvpn
beduin01, 2018-04-30 09:02:42

Why does the Internet stop working after connecting to OpenVPN?

After connecting to OpenVPN, the Internet stops working. I can't figure out what could be the reason. I connect accordingly with Windows 10.
Local config:

client
dev tun
proto udp
sndbuf 0
rcvbuf 0
remote <ip_removed> 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
comp-lzo
setenv opt block-outside-dns
key-direction 1
verb 3
auth SHA512

Server config:
port 1194
proto udp
dev tun
sndbuf 0
rcvbuf 0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
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 "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
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

Without VPN connection:
>nslookup
Address: 192.168.3.1
After:
>nslookup
Address: 8.8.8.8
After connecting, ping also does not work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pcdesign, 2018-04-30
@pcdesign

The logs should be written what is the reason.
And so on the skid, apparently the exit to the outside on the server is not registered.
Something like that:
Where xxxx is the IP of the server where the traffic should go outside.
And packet forward must be enabled: AND in /etc/sysctl.conf
net.ipv4.ip_forward = 1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question