我已经在 Ubuntu 22.04 中安装了 OpenVpn 服务器。当我连接到我的 openvpn 服务器时,所有流量都会开始通过它,但是我不想要它。
我的 server.conf 如下:
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