| 29 | |
| 30 | == xl2tp-server == |
| 31 | On server, we need |
| 32 | 1. config xl2tp |
| 33 | {{{ |
| 34 | #!sh |
| 35 | [root@Bluefin xl2tpd]# tail -15 /etc/xl2tpd/xl2tpd.conf |
| 36 | |
| 37 | [global] |
| 38 | port = 1701 |
| 39 | access control = no |
| 40 | |
| 41 | [lns default] |
| 42 | ;ip range = 10.90.100.240-10.90.100.250 |
| 43 | ;local ip = 10.90.100.254 |
| 44 | ip range = 10.50.30.1-10.50.30.200 |
| 45 | local ip = 10.50.30.254 |
| 46 | require authentication = yes |
| 47 | name = LinuxVPN |
| 48 | pppoptfile = /etc/ppp/options.xl2tp |
| 49 | |
| 50 | [root@Bluefin xl2tpd]# |
| 51 | }}} |
| 52 | |
| 53 | 2. 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 |
| 59 | noccp |
| 60 | auth |
| 61 | mtu 1410 |
| 62 | mru 1410 |
| 63 | nodefaultroute |
| 64 | proxyarp |
| 65 | silent |
| 66 | debug |
| 67 | ms-dns 8.8.4.4 |
| 68 | |
| 69 | [root@Bluefin ppp]# |
| 70 | }}} |