PPPoE(PPP) --> L2TP(PPP) 로 이어지는 방법은?
Reg. Date: April 09, 2003 By 황석원
Terminal LAC LNS
eth0 ----------------> eth1 eth0------ (Hub)---------eth0
Goal: 아래의 Protocol Flow와 같이 Terminal에서 LNS까지 한번의
접속 시도로 이어지도록 한다.
ppp --> pppoe/ppp --------> l2tp/PPP(same) --> ppp
현재 Setting한 환경은 다음과 같다.
[Terminal]
Windows2000
eth0: 192.168.1.99
PPPoE Emulation Application
[LAC]
Linux
eth0: 192.168.1.130
eth1: 10.0.0.2
pppd, pppoe-server, pppoe are in Linux
l2tpd from rp-l2tp-0.3
/etc/ppp/pppoe-server-option
-------------------------------------------------------
# PPP options for the PPPoE server
noauth
lcp-echo-interval 10
lcp-echo-failure 2
/etc/ppp/pap-scret
-------------------------------------------------------
# Secrets for authentication using PAP
# client server secret IP addresses
dooly lotto happyday *
/etc/l2tp/l2tp.conf
-------------------------------------------------------
# comment
# Global section (by default, we start in global mode)
global
# Load handlers
load-handler "sync-pppd.so"
load-handler "cmd.so"
# Bind address
listen-port 1701
# Configure the sync-pppd handler. You MUST have a "section sync-pppd" line
# even if you don't set any options.
section sync-pppd
lns-pppd-opts "noauth 10.0.0.1:10.0.0.2 lcp-echo-interval 30 lcp-echo-failure 6"
lac-pppd-opts "user hwangsw name lotto noipdefault ipcp-accept-local ipcp-accept-remote
lcp-echo-interval 30 lcp-echo-failure 6 debug noauth"
# Peer section
section peer
peer 192.168.1.1
port 1701
lac-handler sync-pppd
lns-handler sync-pppd
hide-avps no
# Configure the cmd handler. You MUST have a "section cmd" line
# even if you don't set any options.
section cmd
[LNS]
Linux
eth0: 192.168.1.130
eth1: 10.0.0.2
pppd, pppoe-server, pppoe are in Linux
l2tpd from rp-l2tp-0.3
conf files are same with LAC's (But, Only Peer IP is differrent)
[Done]
Establish PPPoE Connection (PPP Session) from Terminal to LAC,
using WinPoET (user: dooly passwd: happyday) => OK!
Establish L2TP Tunnel and PPP Sessions from LAC to LNS,
using l2tp-control "start-session 192.168.1.1" command line => OK!
[TODO]
WinPoET logging를 통해 pppoe(ppp)가 LAC에서 벗겨진 후 LAC에서 LNS까지
L2TP로 전달된 PPP를 그대로 넘겨줄 수 있는 방법이 없을까요?
아니면 위의 환경에서 특별히 신경써야 하는 일의 순서가 있을까요?
Please, reply to me if anybody have some idea..
Notice: All Network configued by Ethernet.. (LAN to LAN)