I have installed the OpenVpn server in my Ubuntu 22.04. When i connect to my openvpn server then all traffic start going through it however, i don't want it.
My server.conf is following:
port 1194
;proto tcp
proto udp
dev tun
ca keys/ca.crt
cert keys/server.crt
key keys/server.key
dh none
topology subnet
ifconfig-pool-persist ipp.txt
server 10.8.0.0 255.255.255.0
crl-verify keys/crl.pem
;push "route 192.168.10.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
;tls-auth ta.key 0 # This file is secret
tls-crypt keys/ta.key
cipher BF-CBC # Blowfish (default)
;cipher DES-EDE3-CBC # Triple-DES
;cipher AES-256-GCM # AES 256 - for openvpn version 2.4+
auth SHA256
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /tmp/openvpn-status.log 3
verb 3
tun-mtu 1500
mssfix 1300
.OVPN
dev tun_apxsr
proto udp
client
remote demo5.apxst.com 1194
cipher BF-CBC
auth SHA256
resolv-retry infinite
persist-key
persist-tun
#ns-cert-type server
comp-lzo
keepalive 9 30
verb 3
nobind
tun-mtu 1500
mssfix 1300
mute 20
redirect-gateway autolocal
key-direction 1
status /var/log/tun_apxsr.status