Page 1 of 1

OpenVPN Profile

Posted: Sat Sep 16, 2017 9:32 pm
by paperakis
Hello Sirs,

client
dev tun
proto tcp-client
remote
port 51194
nobind
persist-key
#persist-tun
tls-client
remote-cert-tls server
ca cert_export_CA-ITN.crt
cert cert_export_.crt
key cert_export_.key
verb 4
mute 10

cipher AES-256-CBC
auth-user-pass auth.cfg
auth SHA1

auth-nocache
redirect-gateway def1

I use this commands for my openvpn profile. The problem is everything i do goes to the vpn gateway that i'm connected to and i dont want that. Any ideas?

Re: OpenVPN Profile  [SOLVED]

Posted: Mon Sep 18, 2017 8:02 am
by az1984
Hi,

just comment out or delete this line in your config:
redirect-gateway def1
It tells your client to send all the traffic via the VPN-Gateway. Depending on the IP-subnets your network an your clients are working, you have to add a route to your network into your ovpn-config.

Re: OpenVPN Profile

Posted: Mon Sep 18, 2017 7:14 pm
by paperakis
Hi,

just comment out or delete this line in your config:
redirect-gateway def1
It tells your client to send all the traffic via the VPN-Gateway. Depending on the IP-subnets your network an your clients are working, you have to add a route to your network into your ovpn-config.
Thanks mate!

Re: OpenVPN Profile

Posted: Fri Dec 01, 2017 8:42 pm
by paperakis
Hi,

just comment out or delete this line in your config:
redirect-gateway def1
It tells your client to send all the traffic via the VPN-Gateway. Depending on the IP-subnets your network an your clients are working, you have to add a route to your network into your ovpn-config.
Do you know how to add routes on the clients vpn config?