Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Email

42.3. l2tpd - dummy package for l2tpd to xl2tpd transition

过程 42.13. install l2tpd

  1. install

    # apt-get install l2tpd
    			
  2. /etc/xl2tpd/xl2tpd.conf

    			
    # cp /etc/xl2tpd/xl2tpd.conf /etc/xl2tpd/xl2tpd.conf.original
    # vim /etc/xl2tpd/xl2tpd.conf
    
    [global]
    port = 1701
    auth file = /etc/xl2tpd/l2tp-secrets
    
    [lns default]
    ip range = 192.168.3.200-192.168.3.250
    local ip = 192.168.3.9
    require chap = yes
    refuse pap = yes
    require authentication = yes
    name = vpn.example.com
    pppoptfile = /etc/ppp/options.l2tpd.lns
    			
    			
  3. /etc/ppp/options.l2tpd.lns

    			
    vim /etc/ppp/options.l2tpd.lns
    
    ipcp-accept-local
    ipcp-accept-remote
    ms-dns 208.67.222.222
    ms-dns 208.67.220.220
    ms-wins 192.168.3.4
    noccp
    auth
    crtscts
    idle 1800
    mtu 1410
    mru 1410
    nodefaultroute
    debug
    lock
    proxyarp
    connect-delay 5000
    			
    			
  4. /etc/xl2tpd/l2tp-secrets

    			
    vim /etc/xl2tpd/l2tp-secrets
    
    neo     *       chen    *
    			
    			
  5. start

    			
    /etc/init.d/xl2tpd start
    			
    			
comments powered by Disqus