1
ooxxcc 2014-06-16 21:56:46 +08:00
# If enabled, this directive will configure
# all clients to redirect their default # network gateway through the VPN, causing # all IP traffic such as web browsing and # and DNS lookups to go through the VPN # (The OpenVPN server machine may need to NAT # or bridge the TUN/TAP interface to the internet # in order for this to work properly). push "redirect-gateway def1 bypass-dhcp" 服务端配置 另外现在openvpn封得差不多了,别试了 |
2
czyhd OP |
4
czyhd OP @ooxxcc
dev tun ifconfig 10.8.0.1 10.8.0.2 secret /root/static.key port 42 #push "redirect-gateway" push "redirect-gateway def1 bypass-dhcp" push "dhcp-option DNS 8.8.8.8" push "dhcp-option DNS 8.8.4.4" keepalive 10 120 #ping-timer-rem comp-lzo #persist-key #persist-tun status openvpn-status.log log-append openvpn.log 感谢! |