Network 板


LINE

在 arch linux 上使用 openvpn 透过 ultravpn 上网 但是我设好 openvpn 後 连线还是走 ppp0 而不是 tun0 耶 好像应该改 route table ? 我应该怎麽做? virtue@virtue ~ $ ifconfig eth0 Link encap:Ethernet HWaddr 00:23:54:94:0F:EB inet6 addr: fe80::223:54ff:fe94:feb/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9226 errors:0 dropped:0 overruns:0 frame:0 TX packets:11432 errors:0 dropped:0 overruns:0 carrier:6 collisions:0 txqueuelen:1000 RX bytes:5324076 (5.0 Mb) TX bytes:1728273 (1.6 Mb) Interrupt:27 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:73 errors:0 dropped:0 overruns:0 frame:0 TX packets:73 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:8307 (8.1 Kb) TX bytes:8307 (8.1 Kb) ppp0 Link encap:Point-to-Point Protocol inet addr:114.27.21.104 P-t-P:114.39.224.254 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1 RX packets:8814 errors:0 dropped:0 overruns:0 frame:0 TX packets:11128 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:5101916 (4.8 Mb) TX bytes:1464989 (1.3 Mb) tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.8.112.242 P-t-P:10.8.112.241 Mask:255.255.255.255 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) virtue@virtue ~ $ route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.8.0.1 10.8.112.241 255.255.255.255 UGH 0 0 0 tun0 114-39-224-254. * 255.255.255.255 UH 0 0 0 ppp0 10.8.112.241 * 255.255.255.255 UH 0 0 0 tun0 default * 0.0.0.0 U 0 0 0 ppp0 --



※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.27.3.244
1F:→ wst2080:你要所有流量都走 tun0 这个介面吗??? 11/08 17:59
2F:→ virtuemood:至少像firefox pcmanx 这种要。 11/08 18:38
3F:→ wst2080:所以所有网路都须经过 tun0 是 吗??? 11/08 19:18
4F:→ virtuemood:嗯,但是不会设。 11/08 20:51
5F:→ wst2080:route add -net 0.0.0.0 netmask 0.0.0.0 dev tun0 11/08 20:51
6F:→ wst2080:加看看这行...应该就OK了... 11/08 20:52
7F:→ virtuemood:加了以後所有的连线都出不去耶 11/08 21:16
8F:→ wst2080:route del -net 0.0.0.0 netmask 0.0.0.0 dev tun0 11/08 21:19
9F:→ wst2080:ifconfig <--- 看一下 tun0 的 gateway 在哪... 11/08 21:20
10F:→ wst2080:route add -net 0.0.0.0 netmask 0.0.0.0 gw [tun0的gwIP] 11/08 21:21
11F:→ virtuemood:也是完全出不去。 11/08 21:50
12F:→ wst2080:你ifconfig看一下组态吧! 会不会是tun0的网路是无法出去.. 11/08 22:16
※ 编辑: virtuemood 来自: 114.27.21.104 (11/08 22:18)
13F:→ wst2080:刚刚我用vm测试,是OK的阿... 11/08 22:18
14F:→ wst2080:route 指令看一下路由表吧... 11/08 22:18
15F:→ virtuemood:怎麽查tun0有没有通啊? 11/08 22:21
16F:→ wst2080:ping 一下 tun0 这个介面的 gateway ip 搂... 11/08 22:22
17F:→ virtuemood:果然ping不到耶!! 11/08 22:24
18F:→ wst2080:那就是tun0的网段没有gateway...或者指派错的gateway IP 11/08 22:26
19F:→ wst2080:去确认一下 openvpn 所处的网段,是否能够对外连线... 11/08 22:27







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:Soft_Job站内搜寻

TOP