客户端的配置文件在这里.
http://www.everbox.com/f/W8WpqLm27tSxVnwa1lV1o1Y9hu
服务器的配置文件在这里.
openvpn.conf
http://www.everbox.com/f/QeTPZcDqvcX1Ne7FG1X16CpYEk
On 5月29日, 上午11时03分, Meteor <liuxingm...@gmail.com> wrote:
> 但是ping 内网 10.8.0.1 却是成功的.
> 是不是访问外网的设置不正确?
还有iptables呢。
$ ip route show |grep defaultdefault via 192.0.2.1 dev venet0
在 2011年5月29日 下午6:16,Meteor <liuxi...@gmail.com> 写道:
> 这个现在已经开了.
--
无能者无所求,饱食而遨游,泛若不系之舟
blog: http://shell909090.com/blog/
twitter: http://twitter.com/shell909090
在 2011年5月29日 下午6:21,Meteor <liuxi...@gmail.com> 写道:
> iptable现在没问题.
> 因为我已经全部清空了.
> 没有任何规则.
--
/etc/rc.local
在里面写iptable的.
但是里面的
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o venet0 -j SNAT --to 202.248.185.66
这句话写成了我的另外1个VPS的地址了.
所以出问题了.
现在再搞一次.
谢谢你了.
希望今天可以搞定这个问题.
好的.
另外Ping的问题过了那几天就好了.很诡异.
之后用SSH一直没什么问题.
好像这几天断线次数也减少了,是不是GFW减少干预次数了?
WARNING: potential route subnet conflict between local LAN [10.8.0.4/255.255.255.252] and remote VPN [10.8.0.0/255.255.255.0]
--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com。
要查看更多选项,请访问https://groups.google.com/d/optout。
00100 nat 1 ip from 192.168.3.0/24 to any out via epair0b
00200 nat 1 ip from any to any in via epair0b
65535 allow ip from any to any
port 10011 proto tcp dev tun ca /mnt/openvpn/keys/pki/ca.crt cert /mnt/openvpn/keys/pki/issued/server.crt #key /mnt/openvpn/keys/pki/private/ca.key key /mnt/openvpn/keys/pki/private/server.key dh /mnt/openvpn/keys/pki/dh.pem server 192.168.3.0 255.255.255.0 #Purple network ifconfig-pool-persist ipp.txt push "route 192.168.2.0 255.255.255.0" #Yellow network #push "redirect-gateway def1" route 192.168.2.20 255.255.255.0 192.168.3.1 #Routes traffic from the Yellow net work side (192.168.2.0/24) #to the Purple network side (192.168. 3.0/24) #tls-auth /mnt/openvpn/keys/auth.key 0 #crl-verify /mnt/openvpn/keys/crl.pem keepalive 10 120 group nobody user nobody comp-lzo persist-key
ort 10011
proto tcp
dev tun
ca /mnt/openvpn/keys/pki/ca.crt
cert /mnt/openvpn/keys/pki/issued/server.crt
#key /mnt/openvpn/keys/pki/private/ca.key
key /mnt/openvpn/keys/pki/private/server.key
dh /mnt/openvpn/keys/pki/dh.pem
server 192.168.3.0 255.255.255.0 #Purple network
ifconfig-pool-persist ipp.txt
push "route 192.168.2.0 255.255.255.0" #Yellow network
#push "redirect-gateway def1"
route 192.168.2.20 255.255.255.0 192.168.3.1 #Routes traffic from the Yellow net
work side (192.168.2.0/24)
#to the Purple network side (192.168.
3.0/24)
#tls-auth /mnt/openvpn/keys/auth.key 0
#crl-verify /mnt/openvpn/keys/crl.pem
keepalive 10 120
group nobody
user nobody
comp-lzo
persist-key
persist-tun verb 3
port 10011 proto tcp dev tun ca /mnt/openvpn/keys/pki/ca.crt cert /mnt/openvpn/keys/pki/issued/server.crt #key /mnt/openvpn/keys/pki/private/ca.key key /mnt/openvpn/keys/pki/private/server.key dh /mnt/openvpn/keys/pki/dh.pem server 192.168.3.0 255.255.255.0 #Purple network i
fconfig-pool-persist ipp.txt
push "route 192.168.2.0 255.255.255.0" #Yellow network
#push "redirect-gateway def1 bypass-dhcp"
#push "dhcp-option DNS 8.8.8.8"
#push "dhcp-option DNS 8.8.4.4"
route 192.168.2.20 255.255.255.0 192.168.3.1 #Routes traffic from the Yellow net
work side (192.168.2.0/24)
#to the Purple network side (192.168.
3.0/24)
#tls-auth /mnt/openvpn/keys/auth.key 0
#crl-verify /mnt/openvpn/keys/crl.pem
keepalive 10 120
group nobody
user nobody
你在server端推送路由了么?
在 2016年8月9日 下午1:51, <water...@gmail.com>写道:
请问你的NAT是怎么配置的?网关的问题解决没?我遇到和你一样的问题,google也找不到解决方法
On Monday, June 13, 2011 at 5:53:17 PM UTC+8, Meteor wrote:NAT做错了.现在好了.
但是网关的问题还是没有解决.WARNING: potential route subnet conflict between local LAN [10.8.0.4/255.255.255.252] and remote VPN [10.8.0.0/255.255.255.0]
--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com。
要查看更多选项,请访问https://groups.google.com/d/optout。
--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com。
要查看更多选项,请访问https://groups.google.com/d/optout。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com。
要查看更多选项,请访问https://groups.google.com/d/optout。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com。
要查看更多选项,请访问https://groups.google.com/d/optout。
--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com。
要查看更多选项,请访问https://groups.google.com/d/optout。
root@OpenVPN:/ # ipfw list
00100 nat 1 ip from 192.168.3.0/24 to any out via epair0b
00200 nat 1 ip from any to any in via epair0b
65535 allow ip from any to any
--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com。
要查看更多选项,请访问https://groups.google.com/d/optout。
--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN