Home | 簡體中文 | 繁體中文 | 雜文 | 知乎專欄 | Github | OSChina 博客 | 雲社區 | 雲棲社區 | Facebook | Linkedin | 視頻教程 | 打賞(Donations) | About
知乎專欄多維度架構 微信號 netkiller-ebook | QQ群:128659835 請註明“讀者”

43.3. l2tpd - dummy package for l2tpd to xl2tpd transition

過程 43.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