Взял конфиг с http://subnets.ru/blog/?p=192, чуть подправил (закоментил строчки про mppc и children, и поправил про консоль, где ругался mpd). Ну и интерфейс исправил.
Запускаю - ругается, но ждёт коннектов:
- Код: Выделить всё
[root@fbsd ~]# /usr/local/sbin/mpd5
Multi-link PPP daemon for FreeBSD
process 28705 started, version 5.0b1 (root@fbsd.my.domain 01:59 17-Mar-2008)
Usage: set console user <name> <password>
CONSOLE: listening on 127.0.0.1 5005
web: listening on 0.0.0.0 5006
[PPPoE] PPPoE: Skipping link "PPPoE" with undefined interface or session
[PPPoE] PPPoE: Skipping link "PPPoE" with undefined interface or session
[PPPoE] PPPoE: Skipping link "PPPoE" with undefined interface or session
[PPPoE] PPPoE: Skipping link "PPPoE" with undefined interface or session
[PPPoE] PPPoE: Skipping link "PPPoE" with undefined interface or session
[PPPoE] PPPoE: Skipping link "PPPoE" with undefined interface or session
[PPPoE] PPPoE: Skipping link "PPPoE" with undefined interface or session
PPPoE: waiting for connection on rl0:, service "service_name0"
Пробую с венды соединиться - не соединяется ("удалённый компьютер не отвечает"), в сети вижу только пакеты от венды:
- Код: Выделить всё
[root@fbsd ~]# tcpdump -nti rl0
PPPoE PADI [Service-Name] [Host-Uniq 0x0700000007000000]
PPPoE PADI [Service-Name] [Host-Uniq 0x0700000007000000]
...
Вот конфиг и ifconfig
- Код: Выделить всё
[root@fbsd ~]# ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
ether 00:15:e9:f0:70:27
inet 192.168.0.10 netmask 0xffffff00 broadcast 192.168.0.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 00:50:22:bb:05:b9
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
- Код: Выделить всё
[root@fbsd ~]# cat /usr/local/etc/mpd5/mpd.conf
startup:
#configure mpd users
set console user foo bar admin
set console user foo1 bar1
#configure the console
set console self 127.0.0.1 5005
set console open
#configure the web server
set web self 0.0.0.0 5006
set web open
default:
load def_conf
def_conf:
create bundle template B
set iface up-script /usr/local/etc/mpd5/vpn_up_mpd.pl
set iface down-script /usr/local/etc/mpd5/vpn_down_mpd.pl
set bundle enable compression
set bundle enable encryption
set iface idle 0
set iface disable proxy-arp
set iface enable tcpmssfix
set ipcp yes vjcomp
set ipcp ranges 10.0.0.1/32 10.0.0.0/24
# set ipcp dns xxx.yyy.zzz.ddd qqq.www.eee.rrr
set ccp yes mppc
# set mppc yes e40
# set mppc yes e56
# set mppc yes e128
# set mppc yes stateless
set ecp disable dese-bis dese-old
log -echo -ipv6cp -radius -rep
load common
common:
create link template PPPoE pppoe
set link enable no-orig-auth
# set link max-children 300
set auth max-logins 0
load pppoe
pppoe:
set link action bundle B
set link enable multilink
set link yes acfcomp protocomp
set link disable chap pap eap
set link enable chap chap-msv1 chap-msv2 chap-md5
set link keep-alive 10 60
#pppoe on bge1 with service name "service_name0"
create link template rl0_0 PPPoE
set pppoe iface rl0
set link enable incoming
set pppoe service service_name0
ЗЫЖ в начале строк конфига стоят пробелы где надо, просто форум их "съедает".