Welcome 微信登录

首页 / 操作系统 / Linux / Fedora 17 使用l2tpd VPN上网

1.安装l2tpdsudo yum install l2tpd2.配置文件/etc/xl2tpd/xl2tpd.confport = 1701                                                     ; * Bind to port 1701access control = yes                                    ; * Refuse connections without IP matchrand source = dev                     ; Source for entropy for random[lac zju]lns = 10.5.1.9                                  ; * Who is our LNS?redial = yes                                                    ; * Redial if disconnected?redial timeout = 3                                      ; * Wait n seconds between redialsmax redials = 999                                               ; * Give up after n consecutive failuresrequire chap = yes                                      ; * Require CHAP auth. by peerrefuse pap = yes                                                ; * Refuse PAP authenticationrequire authentication = yes                    ; * Require peer to authenticateppp debug = no                                          ; * Turn on PPP debuggingpppoptfile = /etc/xl2tpd/options        ; * ppp options file for this lacname = USERNAME@SERVICE_TYPE[img]http://common.cnblogs.com/images/copycode.gif[/img]/etc/ppp/chap-secretsUSERNAME@SERVICE_TYPE  *  PASSWORD  *3.启动xl2tpdsudo service start xl2tpd或者sudo /etc/rc.d/init.d/xl2tpd start4.连接sudo echo "d zju">/var/run/xl2tpd/l2tp-control#这里的zju要和配置文件中的的lac 后面的字节一样5.查看是否连接ip addr show | grep "inet.*ppp"有输出就是连接上了6.设置路由ip route add default dev ppp06.断开sudo echo "d zju">/var/run/xl2tpd/l2tp-control解说Linux启动流程Fedora 17 设置 grub2 背景图片相关资讯      Fedora 17 
  • Fedora 17中systemd系统和服务管理  (01/18/2014 21:49:00)
  • Fedora 17安装Qt5.0.0遇到/usr/bin  (03/01/2013 21:26:37)
  • Fedora 15,16, 17, 18好用的gnome  (01/17/2013 20:03:57)
  • Fedora 17-x86编译linux-4.5.4内核  (04/05/2013 12:46:06)
  • Fedora 17 中安装libperl-dev  (01/25/2013 18:48:43)
  • Fedora 17 x64 连接wpa加密的无线  (01/11/2013 09:23:10)
本文评论 查看全部评论 (0)
表情: 姓名: 字数