LoginSignup
3
6

More than 5 years have passed since last update.

xl2tpdでL2TP接続(IPSecなし)する設定メモ

Last updated at Posted at 2016-11-17

概要

Linux(Ubuntu)でL2TPサーバにL2TP接続する設定のメモ
ほとんど最下部の参考サイトの内容

環境

  • サーバ
    • SoftEther VPN
  • クライアント
    • Ubuntu 14.04
    • xl2tpd 1.3.6

設定

サーバ

  • SoftEtherの設定概要
    • 暗号化なしのL2TPサービスの起動
    • 仮想HUBのプロパティからユーザの作成
    • Secure NAT有効化

クライアント

xl2tpdの設定(各々の詳細な項目の意味は未確認。。)

xl2tpd.conf
# cat /etc/xl2tpd/xl2tpd.conf
[lac test]
lns = [IP Address]
require authentication = yes
pppoptfile = /etc/ppp/test.options.xl2tpd
require chap= yes
refuse pap = yes
ppp debug = yes
length bit = yes
test.options.xl2tpd
# cat /etc/ppp/test.options.xl2tpd
name kure
noauth
crtscts
mtu 1410
mru 1410
nodefaultroute
lock
proxyarp
logfile /var/log/xl2tpd.conn-1.log
chap-secrets
# cat /etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
"[username]" * "[password]" *

動作確認

# service xl2tpd start
 ★↓接続。このタイミングでPPPインターフェースが出来る
# echo "c test" > /var/run/xl2tpd/l2tp-control
 ★↓ルーティング設定。この時点で通信可能
# route add -net 192.168.30.0 netmask 255.255.255.0 dev ppp0
 ★↓これで切断
# echo "d test" > /var/run/xl2tpd/l2tp-control

雑感

L2TPつないだだけではVPNは呼ばないのだろうか

参考

EZ-NET: CentOS 6.0 で L2TP-VPN に接続する

3
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
6