Connected to the vpn but still can enter in the local router settings

Scripts to manage certificates or generate config files

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
Aldo_97
OpenVpn Newbie
Posts: 1
Joined: Thu Oct 18, 2018 8:23 pm

Connected to the vpn but still can enter in the local router settings

Post by Aldo_97 » Thu Oct 18, 2018 8:44 pm

Hi guys,
I configured a openvpn server in my vps (Ubuntu 18.04 server). If I connect to the vpn on my android device I have no problem, all the traffic goes via the vpn and I cannot enter my local user unless I disable the vpn(what I want).
If I connect the vpn on my laptop (windows, ubuntu and macos) I can still connect to my local router's IP (that I don't want to), the client config is the same... I really don't know what to do to fix this.
I hope you can help. Here my server.conf and my client.conf files.
Thanks
Server.conf

Code: Select all

port 1401
proto tcp
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 block-local"
push "dhcp-option DNS 1.1.1.1"
push "dhcp-option DNS 1.0.0.1"
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
Client.conf

Code: Select all

client
dev tun
proto tcp
sndbuf 0
rcvbuf 0
remote x.x.x.x 1401
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
setenv opt block-outside-dns
key-direction 1
verb 3

Post Reply