LINUX.ORG.RU

Настройка mpd


0

0

Помогите плз в настройке. В общем надо организовать "локалку" по инету посредством промежуточного сервера в инете, к которому юзеры "локалки " будут подключаться посредством VPN (PPTP). IP юзерам должен выдаваться 10.20.30.40, 41, 42 и т.д. На удаленном сервере стоит FreeBSD и mpd. Подскажите плз, что прописать в конфиги мпд чтоб получить такое? Я пробовал по факам, не получилось, не коннектило


[kuzmich@mail /usr/local/etc/mpd]$ cat mpd.conf
default:
    load pptp0
    load pptp1
...
    load pptpN

pptp0:
    new -i ng0 pptp0 pptp0
    set ipcp ranges 10.20.30.30/8 10.20.30.40/8
    load pptp_standart

pptp1:
    new -i ng1 pptp1 pptp1
    set ipcp ranges 10.20.30.31/8 10.20.30.41/8
    load pptp_standart
...

pptpN:
    new -i ngN pptpN pptpN
    set ipcp ranges 10.20.30.32/8 10.20.30.42/8
    load pptp_standart

pptp_standart:
    set iface disable on-demand
    set iface enable tcpmssfix
    set bundle disable multilink
    set link yes acfcomp protocomp
    set link no pap
    set link yes chap
    set link enable chap
    set link mtu 1460
    set link keep-alive 60 180
    set ipcp yes vjcomp
    set ipcp dns 10.20.30.1
    set ipcp nbns 10.20.30.3
    set iface enable proxy-arp
    set bundle enable compression
    set ccp yes mppc
    set ccp yes mpp-e40
    set ccp yes mpp-e56
    set ccp yes mpp-e128
    set ccp yes mpp-stateless
    set bundle yes crypt-reqd
    set pptp self 195.33.22.11 - внешний ип, на котором висим
    set pptp enable incoming
    set pptp disable originate
    set bundle max-logins 1
open

[kuzmich@mail /usr/local/etc/mpd]$ cat mpd.links
pptp0:
    set link type pptp

pptp1:
    set link type pptp

pptp2:
    set link type pptp

...
pptpN:
    set link type pptp

mpd.secret сам напишешь :)

Kuzmich ★★
()
Ответ на: комментарий от Ygor

Настроил как ты сказал. Пробую соединяться

root@olenin:/root# mpd Multi-link PPP for FreeBSD, by Archie L. Cobbs. Based on iij-ppp, by Toshiharu OHNO. mpd: pid 12399, version 3.18 (root@olenin.firstvds.ru 09:38 10-Jan-2007) [pptp0] can't create socket node: Operation not permitted [pptp0] using interface Usage: set pptp self ip [port] mpd: local IP address for PPTP is 0.0.0.0 mpd: warning: line too long, truncated [pptp1] can't create socket node: Operation not permitted mpd: warning: line too long, truncated [pptp1] using interface Usage: set pptp self ip [port] mpd: warning: line too long, truncated [pptp1:pptp1] mpd: PPTP connection from 85.140.201.90:2096 pptp0: attached to connection with 85.140.201.90:2096 [pptp0] IFACE: Open event [pptp0] IPCP: Open event [pptp0] IPCP: state change Initial --> Starting [pptp0] IPCP: LayerStart [pptp0] IPCP: Open event [pptp0] bundle: OPEN event in state CLOSED [pptp0] opening link "pptp0"... [pptp0] link: OPEN event [pptp0] LCP: Open event [pptp0] LCP: state change Initial --> Starting [pptp0] LCP: LayerStart [pptp0] device: OPEN event in state DOWN [pptp0] attaching to peer's outgoing call [pptp0] can't attach pptpgre node: Bad file descriptor pptp0-0: killing channel [pptp0] PPTP call cancelled in state CONNECTING pptp0: closing connection with 85.140.201.90:2096 [pptp0] can't shutdown "bypass.link0": Bad file descriptor [pptp0] IFACE: Close event [pptp0] IPCP: Close event [pptp0] IPCP: state change Starting --> Initial [pptp0] IPCP: LayerFinish [pptp0] device is now in state OPENING [pptp0] bundle: CLOSE event in state OPENED [pptp0] closing link "pptp0"... [pptp0] device: DOWN event in state OPENING [pptp0] device is now in state DOWN [pptp0] link: CLOSE event [pptp0] LCP: Close event [pptp0] LCP: state change Starting --> Initial [pptp0] LCP: LayerFinish [pptp0] device: DOWN event in state DOWN [pptp0] device is now in state DOWN [pptp0] link: DOWN event [pptp0] LCP: Down event [pptp0] can't get stats, link=0: Bad file descriptor [pptp0] device: CLOSE event in state DOWN [pptp0] device is now in state DOWN [pptp0] link: DOWN event [pptp0] LCP: Down event [pptp0] can't get stats, link=0: Bad file descriptor [pptp0] device: OPEN event in state DOWN [pptp0] pausing 7 seconds before open [pptp0] device is now in state DOWN pptp0: killing connection with 85.140.201.90:2096 [pptp0] device: OPEN event in state DOWN [pptp0] pausing 2 seconds before open [pptp0] device is now in state DOWN [pptp0] device: OPEN event in state DOWN [pptp0] pptp originate option is not enabled [pptp0] device is now in state OPENING [pptp0] device: DOWN event in state OPENING [pptp0] device is now in state DOWN [pptp0] link: DOWN event [pptp0] LCP: Down event [pptp0] can't get stats, link=0: Bad file descriptor

olenin
() автор топика
Ответ на: комментарий от olenin

ЗЫ, забыл сказать. В винде при попытке коннекта "Модем или другое устройство связи сообщило об ошибке"

olenin
() автор топика
Ответ на: комментарий от olenin

a) глюк модема

б) Это не я сказал, это лиса сказал, вот и спроси у него на том форуме :)

Ygor ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.