由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
EmergingNetworking版 - 问个route table的问题
相关主题
为什么在家上了公司的VPN后就不能用家里的网络硬盘了?求助
问个MPLS lab的问题请问我有一条无线上网、一条有线上网,能否同时使用加快网速?
一个pc只有一个NIC,能跟2个不同的subnet connect 吗?大家可否推荐下vpn solution
现在ipv4 address里面的热门问题是什么Router-router VPN on dynamic IP possible??
VPN 代理服务器设置VPN ,不懂一个词 Peer
L2VPN VS VLANAWS VPC VPN gateway implementation
VPC networking 问题Inter-AS VPN
是不是这个意思?VPN question: without router it connects, with route it's n (转载)
相关话题的讨论汇总
话题: link话题: 276话题: 306话题: vpn话题: route
进入EmergingNetworking版参与讨论
1 (共1页)
r***o
发帖数: 1526
1
架了个OpenVPN,在client端route table出了点问题,
Windows IP configuration:
Local LAN Adapter
IPv4 Address. . . . . . . . . . . : 10.40.104.11
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.40.104.1
VPN Adapter
IPv4 Address. . . . . . . . . . . : 192.168.66.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
VPN断开时的route table:
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.40.104.1 10.40.104.11 20
10.40.104.0 255.255.255.0 On-link 10.40.104.11 276
10.40.104.11 255.255.255.255 On-link 10.40.104.11 276
10.40.104.255 255.255.255.255 On-link 10.40.104.11 276
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 10.40.104.11 276
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 10.40.104.11 276
===========================================================================
VPN连上以后的route table:
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.40.104.1 10.40.104.11 20
0.0.0.0 128.0.0.0 192.168.66.1 192.168.66.2 30
10.40.104.0 255.255.255.0 On-link 10.40.104.11 276
10.40.104.11 255.255.255.255 On-link 10.40.104.11 276
10.40.104.255 255.255.255.255 On-link 10.40.104.11 276
108.15.11.229 255.255.255.255 10.40.104.1 10.40.104.11 20
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
128.0.0.0 128.0.0.0 192.168.66.1 192.168.66.2 30
192.168.66.0 255.255.255.0 On-link 192.168.66.2 286
192.168.66.2 255.255.255.255 On-link 192.168.66.2 286
192.168.66.255 255.255.255.255 On-link 192.168.66.2 286
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 10.40.104.11 276
224.0.0.0 240.0.0.0 On-link 192.168.66.2 286
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 10.40.104.11 276
255.255.255.255 255.255.255.255 On-link 192.168.66.2 286
===========================================================================
VPN连上以后Internet就断开了,只能连VPN server端的IP, 把下面一行从routing
table里删了,所有都正常了
0.0.0.0 128.0.0.0 192.168.66.1 192.168.66.2 30
请问这是什么道理,除了手工删route table entry有什么好的解决办法?
n**********l
发帖数: 271
2
if you want all traffic to go through VPN server, enable IP routing,
configure iptables, (NAT)
Why is 0.0.0.0/128.0.0.0 192.168.66.1 there in first place? Check your
openvpn config file for static route injection. If you dont want Internet
traffic to go through VPN, comment all route injections
r***o
发帖数: 1526
3
谢谢,OpenVPN是用DD-WRT的GUI设置的,自动加了redirect-gateway def1
改成手工设置,去掉redirect-gateway就不会在client加那一条了

【在 n**********l 的大作中提到】
: if you want all traffic to go through VPN server, enable IP routing,
: configure iptables, (NAT)
: Why is 0.0.0.0/128.0.0.0 192.168.66.1 there in first place? Check your
: openvpn config file for static route injection. If you dont want Internet
: traffic to go through VPN, comment all route injections

1 (共1页)
进入EmergingNetworking版参与讨论
相关主题
VPN question: without router it connects, with route it's n (转载)VPN 代理服务器
再请问大侠一个PE router的问题。L2VPN VS VLAN
问个MPLS-VPN的问题VPC networking 问题
请教个静态路由命令的区别,谢谢是不是这个意思?
为什么在家上了公司的VPN后就不能用家里的网络硬盘了?求助
问个MPLS lab的问题请问我有一条无线上网、一条有线上网,能否同时使用加快网速?
一个pc只有一个NIC,能跟2个不同的subnet connect 吗?大家可否推荐下vpn solution
现在ipv4 address里面的热门问题是什么Router-router VPN on dynamic IP possible??
相关话题的讨论汇总
话题: link话题: 276话题: 306话题: vpn话题: route