微软官方MSDN原版Win10系统下载

现在位置: 首页  > 系统教程  > Linux教程

Fedora通过l2tp vpn联网的方法

时间:2024-04-25 13:11:57   

大家好,今天Win10系统之家小编给大家分享「Fedora通过l2tp vpn联网的方法」的知识,如果能碰巧解决你现在面临的问题,记得收藏本站或分享给你的好友们哟~,现在开始吧!

广电联网报警pro官方版系列软件最新版本下载

  l2tp是中Internet隧道协议,通过对l2tp的设置能够实现系统的联网,那么在Fedora 17系统下,要如何通过l2tp vpn来实现上网呢?其实很简单,随小编一起来学习下吧。

  1.安装l2tpd

  sudo yum install l2tpd

  2.配置文件

  /etc/xl2tpd/xl2tpd.conf

  port = 1701 ; * Bind to port 1701

  access control = yes ; * Refuse connections without IP match

  rand 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 redials

  max redials = 999 ; * Give up after n consecutive failures

  require chap = yes ; * Require CHAP auth. by peer

  refuse pap = yes ; * Refuse PAP authentication

  require authentication = yes ; * Require peer to authenticate

  ppp debug = no ; * Turn on PPP debugging

  pppoptfile = /etc/xl2tpd/options ; * ppp options file for this lac

  name = USERNAME@SERVICE_TYPE

  [img]http://common.cnblogs.com/images/copycode.gif[/img]

  /etc/ppp/chap-secrets

  USERNAME@SERVICE_TYPE * PASSWORD *

  3.启动xl2tpd

  sudo service start xl2tpd

  或者

  sudo /etc/rc.d/init.d/xl2tpd start

  4.连接

  sudo echo “d zju”》/var/run/xl2tpd/l2tp-control

  #这里的zju要和配置文件中的的lac 后面的字节一样

  5.查看是否连接

  ip addr show | grep ‘inet.*ppp’

  有输出就是连接上了

  6.设置路由

  ip route add default dev ppp0

  7.断开

  sudo echo “d zju”》/var/run/xl2tpd/l2tp-control

  上面就是Fedora通过l2tp vpn联网的方法介绍了,因为l2tp不是系统自带的,需要自己下载安装,在进行相关配置使用。

以上就是关于「Fedora通过l2tp vpn联网的方法」的全部内容,本文讲解到这里啦,希望对大家有所帮助。如果你还想了解更多这方面的信息,记得收藏关注本站~

*此文为Win10系统之家www.ghost580.net文♂章,转载请联系网站管理人员!

上一篇:返回列表 下一篇:返回列表

相关文章

  • Fedora通过l2tp vpn联网的方法

    Fedora通过l2tp vpn联网的方法


      l2tp是中Internet隧道协议,通过对l2tp的设置能够实现系统的联网,那么在Fedora17系统下,要如何通过l2tpvpn来实现上网呢?其实很简单,随小编一起来学习下吧。
      1.安装l2tpd
      sudoyuminstalll2tpd
      2.配置文件
      /etc/xl2tpd/xl2tpd.conf
      port=1701;*...
  • Linux通过BFO安装Fedora的步骤

    Linux通过BFO安装Fedora的步骤


      Linux系统中,使用传统的方法安装Fedora非常浪费时间,还会占用空间,那么有什么简单的方法来安装Fedora呢?其实使用BFO就能快速安装Fedora,下面小编就给大家介绍下Linux使用BFO安装Fedora的方法。
      什么是BFO?
      BFO即boot.fedoraproject.org,是一种能够引导主机,通过网络进行安装或运行其它介质的方式。它与px...
  • RHEL6通过udev更改asm磁盘名称的方法

    RHEL6通过udev更改asm磁盘名称的方法


      在RHEL6系统中,有些操作会导致asm磁盘名称发生变化,这时就需要将asm磁盘名修改过来,而更改asm磁盘名称的方法有很多种,今天小编要给大家介绍的是RHEL6使用udev修改asm磁盘名称的方法。
      为了规范asm磁盘的使用,需要使用udev固定磁盘名。具体步骤如下,rac下可以一个节点,一个节点的方式修改
      1、关闭Oracle数据库
      2、ASM...
  • Fedora开机启动进入文本模式的方法

    Fedora开机启动进入文本模式的方法


      为了加快Fedora的启动速度,有些会把Fedora的启动默认进行修改,将启动进入图形模式改为文本模式,且不会占用过多资源,下面小编就给大家介绍下Fedora启动进入文本模式的方法。
      修改/etc/inittab文件:
      vi/etc/inittab
      Findoutentrythatreadasfollows:
      id:5:initdefa...