我想让特定域的流量通过openvpn (tun0)
,其余的流量通过。eth0
如何配置 openvpn 以与 eth0 一起工作?
使用 ddclient 设置域名以更新动态 DNS。但我使用 tcpdump 检查后发现未从 tun0 捕获请求
tcpdump -vv -i tun0
tcpdump: listening on tun0, link-type RAW (Raw IP), capture size 65535 bytes
^C
0 packets captured
23 packets received by filter
0 packets dropped by kernel
我尝试过的:
ifconfig eth0:1 x.x.x.131 up
ifconfig tun0
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:x.x.x.131 P-t-P:x.x.x.131 Mask:255.255.255.128
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
openvpn 配置
client
dev tun
proto udp
remote ukm5-ovpn.domain.net 53
persist-key
persist-tun
ca ca.crt
tls-auth Wdc.key 1
cipher AES-256-CBC
comp-lzo
verb 1
mute 20
route-noexec
route-method exe
route-delay 2