Changes between Version 1 and Version 2 of VPN


Ignore:
Timestamp:
02/28/21 09:51:01 (4 years ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • VPN

    v1 v2  
    11= VPN =
    22
    3 Set up pptp-client, we need to edit 2 files with content as following
     3== pptp-client ==
     41. Set up pptp-client, we need to edit 2 files with content as following
    45{{{
    56#!sh
     
    1920}}}
    2021
    21 Since we use name=tonic9, we need to add user tonic9 in '''/etc/ppp/chap-secrets''''
     222. Since we use name=tonic9, we need to add user tonic9 in '''/etc/ppp/chap-secrets''''
    2223{{{
    2324#!sh
     
    2627[root@mini peers]#
    2728}}}
     29
     30== xl2tp-server ==
     31On server, we need
     321. config xl2tp
     33{{{
     34#!sh
     35[root@Bluefin xl2tpd]# tail -15 /etc/xl2tpd/xl2tpd.conf
     36
     37[global]
     38port = 1701
     39access control = no
     40
     41[lns default]
     42;ip range = 10.90.100.240-10.90.100.250
     43;local ip = 10.90.100.254
     44ip range = 10.50.30.1-10.50.30.200
     45local ip = 10.50.30.254
     46require authentication = yes
     47name = LinuxVPN
     48pppoptfile = /etc/ppp/options.xl2tp
     49
     50[root@Bluefin xl2tpd]#
     51}}}
     52
     532. Put following content in '''/etc/ppp/options.xl2tp
     54{{{
     55#!sh
     56[root@Bluefin ppp]# pwd
     57/etc/ppp
     58[root@Bluefin ppp]# cat options.xl2tp
     59noccp
     60auth
     61mtu 1410
     62mru 1410
     63nodefaultroute
     64proxyarp
     65silent
     66debug
     67ms-dns 8.8.4.4
     68
     69[root@Bluefin ppp]#
     70}}}