Recent Changes - Search:

Проекты

Брошенные проекты

SourceForge

edit SideBar

Xl2ptd

/etc/xl2tpd/xl2tpd.conf

[global]
access control = yes

[lac beeline]
name = 0890454281@internet.beeline.ru
lns = tp.internet.beeline.ru
require pap = no
require chap = yes
require authentication = no
redial = yes
redial timeout = 30
max redials = 1000
pppoptfile = /etc/ppp/options.l2tp
autodial = yes
ppp debug = yes

/etc/ppp/options.l2tp

debug

# Authentication
# We don't need the tunnel server to authenticate itself
noauth

name 0890454281@internet.beeline.ru
remotename L2TP

# Assumes that your IP address is allocated dynamically
# by your DSL provider...
noipdefault
# Try to get the name server addresses from the ISP.
# usepeerdns
# Use this connection as the default route.
# Comment out if you already have the correct default route installed.
defaultroute
replacedefaultroute

ipparam beeline-l2tp

# Override any connect script that may have been set in /etc/ppp/options.
connect /bin/true

mtu 1460
mru 1460

# Compression
# Turn off compression protocols we know won't be used
nobsdcomp
nodeflate

nopcomp
noaccomp

Следует обратить внимание на строку "ipparam beeline-l2tp". ToDo: объяснить, почему.

/etc/ppp/ip-up.d/0000beline-l2tp

#!/bin/sh -e

ip route del $5 dev $1
ip route add $5 via 10.160.96.1

ToDo: объяснить, что за адрес 10.160.96.1 и как его получить.

Edit - History - Print - Recent Changes - Search
Page last modified on August 25, 2013, at 12:13 AM