Split Tunneling on AWS hosted OpenVPN
Posted: Mon Apr 15, 2019 12:32 pm
Hello,
I've configured an EC2 machine as my OpenVPN server and now I need to force only one IP through the VPN and the rest needs to go over a clients regular WAN connection.
It seems no matter what I do the traffic meter keeps increasing on the OpenVPN status window and everything seems to be going over the tunnel, instead of just the IP from the push route line in the server.conf
Server.conf
Client.ovpn
Any ideas what I can do to just allow all traffic to this single IP over VPN and force everything else over the clients regular internet connection?
Thank you.
I've configured an EC2 machine as my OpenVPN server and now I need to force only one IP through the VPN and the rest needs to go over a clients regular WAN connection.
It seems no matter what I do the traffic meter keeps increasing on the OpenVPN status window and everything seems to be going over the tunnel, instead of just the IP from the push route line in the server.conf
Server.conf
Code: Select all
port 1194
proto udp
dev tun
user nobody
group nogroup
persist-key
persist-tun
keepalive 10 120
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 1.0.0.1"
push "dhcp-option DNS 1.1.1.1"
push "route 66.66.25.47 255.255.255.255 vpn_gateway"
dh none
ecdh-curve prime256v1
tls-crypt tls-crypt.key 0
crl-verify crl.pem
ca ca.crt
cert server_SXZdPP6MLjDeLGNl.crt
key server_SXZdPP6MLjDeLGNl.key
auth SHA256
cipher AES-128-GCM
ncp-ciphers AES-128-GCM
tls-server
tls-version-min 1.2
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
status /var/log/openvpn/status.log
verb 3
Code: Select all
client
proto udp
remote 178.15.21.16 1194
dev tun
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
verify-x509-name server_SXZdPP6MLjDeLGNl name
auth SHA256
auth-nocache
cipher AES-128-GCM
tls-client
tls-version-min 1.2
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
setenv opt block-outside-dns # Prevent Windows 10 DNS leak
verb 3
<ca>
Thank you.