I have a problem with my VPN interface which blocks internet access.
I use the following configuration files:
-
CLIENT:
client
dev tun
proto udp
sndbuf 0
rcvbuf 0
remote 54.229.64.59 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
<ca>
-----BEGIN CERTIFICATE-----
[....]
-
SERVER
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 "dhcp-option DNS 172.31.0.2"
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
The problem is that if I launch the openVPN command, I still see the wifi connection through ifconfig, but I am not able to connect to internet.
ps. Note that the VPN connection is not used to access to internet, but it is just used as a bridge between two devices, passing through a remote server.