赞助连接

赞助连接

阅 读 文 章

openvpn求助!急

[来源:网上转载 (http://bbs.chinaunix.net) | 作者:网友(网络转载) | 时间:2008-07-23 | 浏览: 人次 ]

找了好久都没有找到组织 看见这里大家都很热心,终于看到了希望,,

现在的网络状况是:有一组linux服务器,网络段为10.0.1.0/24,现在用其中一台做vpn服务器 (vpn服务器不是其它服务器的网关), 其eth0: inet addr:10.0.1.4  Bcast:10.0.1.255  Mask:255.255.255.0,         eth1: inet addr:221.10.24.214  Bcast:221.10.24.215  Mask:255.255.255.248,要实现在外部vpn拨入能访问整个服务器组。


server.conf配置如下:

local 221.10.24.214
port 1194
proto udp
dev tun
ca /usr/local/etc/vpnkeys/ca.crt
cert /usr/local/etc/vpnkeys/vpn_server.crt
key /usr/local/etc/vpnkeys/vpn_server.key
dh /usr/local/etc/vpnkeys/dh1024.pem
server 10.0.0.0 255.255.255.0
ifconfig-pool-persist /usr/local/etc/ipp.txt
push "route 10.0.1.0 255.255.255.0"
client-to-client
keepalive 10 120
comp-lzo
max-clients 100
persist-key
persist-tun
status /tmp/openvpn-status.log
verb 3



客户机配置文件:
client
dev  tun
proto udp
remote 221.10.24.214 1194   
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client01.crt
key client01.key
ns-cert-type server
comp-lzo
verb 3

客户端未拨号前路由表信息
Active Routes:
Network Destination        Netmask          Gateway       Inte *** ce  Metric
          0.0.0.0          0.0.0.0      192.168.2.2     192.168.2.4       25
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
      192.168.2.0    255.255.255.0      192.168.2.4     192.168.2.4       25
      192.168.2.4  255.255.255.255        127.0.0.1       127.0.0.1       25
    192.168.2.255  255.255.255.255      192.168.2.4     192.168.2.4       25
        224.0.0.0        240.0.0.0      192.168.2.4     192.168.2.4       25
  255.255.255.255  255.255.255.255      192.168.2.4     192.168.2.4       1
  255.255.255.255  255.255.255.255      192.168.2.4               3       1
TAG标签 : 求助 192.168.2.4 10.0.0.6 服务器 127.0.0.1 /sbin/iptables

最新评论 共有0位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表
网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.newhtm.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.