The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  ВХОД  слежка  RSS
"Настройка PPTP client под freebsd"
Вариант для распечатки Архивированная нить - только для чтения! 
Пред. тема | След. тема 
Форумы OpenNET: Виртуальная конференция (Public)
Изначальное сообщение [Проследить за развитием треда]

"Настройка PPTP client под freebsd"
Сообщение от Nikos emailИскать по авторуВ закладки on 24-Окт-03, 22:45  (MSK)
Имеем локальную сетку 192.168.55/24
требуется поднять vpn client до 10.0.0.1 и организовать доступ в интернет через поднятый vpn пользователям локальной сети

gateway в локалке 192.168.55.1
комп пользователя 192.168.55.7
интерфейс во внешний мир: 10.1.42.18/24
default gateway: 10.1.42.1
vpn server: 10.0.0.1

su-2.05b# ifconfig
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.55.1 netmask 0xffffff00 broadcast 192.168.55.255
        ether 00:80:48:23:d0:59
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
rl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.1.42.12 netmask 0xffffff00 broadcast 10.1.42.255
        ether 00:80:48:1a:22:24
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000
tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500

ipfw add allow all from any to any временно

затем
su-2.05b# cat /etc/ppp/ppp.conf
default:
set log Phase Chat LCP IPCP CCP tun command
pptp:
set authname *****
set authkey *****
set timeout 0
set ifaddr 0 0
add! 10.0.0.1/24 10.1.42.1
dial
add! default 10.0.0.1

стартуем pptp 10.0.0.1 pptp

в /var/log/ppp.log видим:
Oct 24 22:30:27 gateway ppp[582]: Phase: Using interface: tun0
Oct 24 22:30:27 gateway ppp[582]: Phase: deflink: Created in closed state
Oct 24 22:30:27 gateway ppp[582]: tun0: Command: pptp: set authname pptp0012958@home
Oct 24 22:30:27 gateway ppp[582]: tun0: Command: pptp: set authkey ********
Oct 24 22:30:27 gateway ppp[582]: tun0: Command: pptp: set timeout 0
Oct 24 22:30:27 gateway ppp[582]: tun0: Command: pptp: set ifaddr 0 0
Oct 24 22:30:27 gateway ppp[582]: tun0: Command: pptp: add! 10.0.0.1/24 10.1.42.1
Oct 24 22:30:27 gateway ppp[582]: tun0: Command: pptp: dial
Oct 24 22:30:27 gateway ppp[582]: tun0: Warning: Manual dial is only available for auto and interactive links
Oct 24 22:30:27 gateway ppp[582]: tun0: Warning: dial: Failed 1
Oct 24 22:30:27 gateway ppp[582]: tun0: Command: pptp: add! default 10.0.0.1
Oct 24 22:30:27 gateway ppp[582]: tun0: Phase: PPP Started (direct mode).
Oct 24 22:30:27 gateway ppp[582]: tun0: Phase: bundle: Establish
Oct 24 22:30:27 gateway ppp[582]: tun0: Phase: deflink: closed -> opening
Oct 24 22:30:27 gateway ppp[582]: tun0: Phase: deflink: Connected!
Oct 24 22:30:27 gateway ppp[582]: tun0: Phase: deflink: opening -> carrier
Oct 24 22:30:28 gateway ppp[582]: tun0: Phase: deflink: carrier -> lcp
Oct 24 22:30:28 gateway ppp[582]: tun0: LCP: FSM: Using "deflink" as a transport
Oct 24 22:30:28 gateway ppp[582]: tun0: LCP: deflink: State change Initial --> Closed
Oct 24 22:30:28 gateway ppp[582]: tun0: LCP: deflink: State change Closed --> Stopped
Oct 24 22:30:29 gateway ppp[582]: tun0: LCP: deflink: LayerStart
Oct 24 22:30:29 gateway ppp[582]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped
Oct 24 22:30:29 gateway ppp[582]: tun0: LCP:  ACFCOMP[2]
Oct 24 22:30:29 gateway ppp[582]: tun0: LCP:  PROTOCOMP[2]
Oct 24 22:30:29 gateway ppp[582]: tun0: LCP:  ACCMAP[6] 0x00000000
Oct 24 22:30:29 gateway ppp[582]: tun0: LCP:  MRU[4] 1500
Oct 24 22:30:29 gateway ppp[582]: tun0: LCP:  MAGICNUM[6] 0x9cac07b2
Oct 24 22:30:29 gateway ppp[582]: tun0: LCP: deflink: State change Stopped --> Req-Sent
Oct 24 22:30:29 gateway ppp[582]: tun0: LCP: deflink: RecvConfigAck(1) state = Req-Sent
Oct 24 22:30:29 gateway ppp[582]: tun0: LCP:  ACFCOMP[2]
Oct 24 22:30:29 gateway ppp[582]: tun0: LCP:  PROTOCOMP[2]
Oct 24 22:30:29 gateway ppp[582]: tun0: LCP:  ACCMAP[6] 0x00000000
Oct 24 22:30:29 gateway ppp[582]: tun0: LCP:  MRU[4] 1500
Oct 24 22:30:29 gateway ppp[582]: tun0: LCP:  MAGICNUM[6] 0x9cac07b2
Oct 24 22:30:29 gateway ppp[582]: tun0: LCP: deflink: State change Req-Sent --> Ack-Rcvd
Oct 24 22:30:31 gateway ppp[582]: tun0: LCP: deflink: RecvConfigReq(2) state = Ack-Rcvd
Oct 24 22:30:31 gateway ppp[582]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x80)
Oct 24 22:30:31 gateway ppp[582]: tun0: LCP:  MAGICNUM[6] 0x752a710e
Oct 24 22:30:31 gateway ppp[582]: tun0: LCP: deflink: SendConfigAck(2) state = Ack-Rcvd
Oct 24 22:30:31 gateway ppp[582]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x80)
Oct 24 22:30:31 gateway ppp[582]: tun0: LCP:  MAGICNUM[6] 0x752a710e
Oct 24 22:30:31 gateway ppp[582]: tun0: LCP: deflink: State change Ack-Rcvd --> Opened
Oct 24 22:30:31 gateway ppp[582]: tun0: LCP: deflink: LayerUp
Oct 24 22:30:31 gateway ppp[582]: tun0: Phase: bundle: Authenticate
Oct 24 22:30:31 gateway ppp[582]: tun0: Phase: deflink: his = CHAP 0x80, mine = none
Oct 24 22:30:31 gateway ppp[582]: tun0: Phase: Chap Input: CHALLENGE (8 bytes from pptp-1  )
Oct 24 22:30:31 gateway ppp[582]: tun0: Phase: Chap Output: RESPONSE (pptp0012958@home)
Oct 24 22:30:31 gateway ppp[582]: tun0: Phase: Chap Input: SUCCESS
Oct 24 22:30:31 gateway ppp[582]: tun0: CCP: FSM: Using "deflink" as a transport
Oct 24 22:30:31 gateway ppp[582]: tun0: CCP: deflink: State change Initial --> Closed
Oct 24 22:30:31 gateway ppp[582]: tun0: CCP: deflink: LayerStart.
Oct 24 22:30:31 gateway ppp[582]: tun0: CCP: MPPE: Not usable without CHAP81
Oct 24 22:30:31 gateway ppp[582]: tun0: CCP: deflink: SendConfigReq(1) state = Closed
Oct 24 22:30:31 gateway ppp[582]: tun0: CCP:  DEFLATE[4] win 15
Oct 24 22:30:31 gateway ppp[582]: tun0: CCP:  PRED1[2]  
Oct 24 22:30:31 gateway ppp[582]: tun0: CCP: deflink: State change Closed --> Req-Sent
Oct 24 22:30:31 gateway ppp[582]: tun0: Phase: deflink: lcp -> open
Oct 24 22:30:31 gateway ppp[582]: tun0: Phase: bundle: Network
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP: FSM: Using "deflink" as a transport
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP: deflink: State change Initial --> Closed
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP: deflink: LayerStart.
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP: deflink: SendConfigReq(1) state = Closed
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP:  IPADDR[6] 0.0.0.0
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP:  COMPPROTO[6] 16 VJ slots with slot compression
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP: deflink: State change Closed --> Req-Sent
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP: deflink: RecvConfigReq(1) state = Req-Sent
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP:  IPADDR[6] 10.0.0.1
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP: deflink: SendConfigAck(1) state = Req-Sent
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP:  IPADDR[6] 10.0.0.1
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP: deflink: State change Req-Sent --> Ack-Sent
Oct 24 22:30:31 gateway ppp[582]: tun0: LCP: deflink: RecvProtocolRej(3) state = Opened
Oct 24 22:30:31 gateway ppp[582]: tun0: LCP: deflink: -- Protocol 0x80fd (Compression Control Protocol) was rejected!
Oct 24 22:30:31 gateway ppp[582]: tun0: CCP: deflink: State change Req-Sent --> Stopped
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP: deflink: RecvConfigRej(1) state = Ack-Sent
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP:  COMPPROTO[6] 16 VJ slots with slot compression
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP: deflink: SendConfigReq(2) state = Ack-Sent
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP:  IPADDR[6] 0.0.0.0
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP: deflink: RecvConfigNak(2) state = Ack-Sent
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP:  IPADDR[6] 81.195.232.242
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP:  IPADDR[6] changing address: 0.0.0.0  --> 81.195.232.242
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP: deflink: SendConfigReq(3) state = Ack-Sent
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP:  IPADDR[6] 81.195.232.242
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP: deflink: RecvConfigAck(3) state = Ack-Sent
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP:  IPADDR[6] 81.195.232.242
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP: deflink: State change Ack-Sent --> Opened
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP: deflink: LayerUp.
Oct 24 22:30:31 gateway ppp[582]: tun0: IPCP: myaddr 81.195.232.242 hisaddr = 10.0.0.1
Oct 24 22:30:32 gateway ppp[582]: tun0: LCP: deflink: RecvEchoRequest(1) state = Opened
Oct 24 22:30:32 gateway ppp[582]: tun0: LCP: deflink: SendEchoReply(1) state = Opened
Oct 24 22:31:50 gateway ppp[582]: tun0: Phase: Signal 15, terminate.
Oct 24 22:31:50 gateway ppp[582]: tun0: IPCP: deflink: LayerDown: 81.195.232.242
Oct 24 22:31:50 gateway ppp[582]: tun0: IPCP: deflink: SendTerminateReq(4) state = Opened
Oct 24 22:31:50 gateway ppp[582]: tun0: IPCP: deflink: State change Opened --> Closing
Oct 24 22:31:50 gateway ppp[582]: tun0: Phase: Signal 15, terminate.
Oct 24 22:31:50 gateway ppp[582]: tun0: Phase: deflink: read (0): Got zero bytes
Oct 24 22:31:50 gateway ppp[582]: tun0: CCP: deflink: State change Stopped --> Close
Oct 24 22:31:50 gateway ppp[582]: tun0: CCP: deflink: State change Closed --> Initial
Oct 24 22:31:50 gateway ppp[582]: tun0: LCP: deflink: LayerDown
Oct 24 22:31:50 gateway ppp[582]: tun0: LCP: deflink: State change Opened --> Starting
Oct 24 22:31:50 gateway ppp[582]: tun0: Phase: deflink: open -> lcp
Oct 24 22:31:50 gateway ppp[582]: tun0: IPCP: deflink: LayerFinish.
Oct 24 22:31:50 gateway ppp[582]: tun0: IPCP: Connect time: 79 secs: 2800 octets in, 3040 octets out
Oct 24 22:31:50 gateway ppp[582]: tun0: IPCP: 37 packets in, 44 packets out
Oct 24 22:31:50 gateway ppp[582]: tun0: IPCP:  total 73 bytes/sec, peak 286 bytes/sec on Fri Oct 24 22:31:44 2003
Oct 24 22:31:50 gateway ppp[582]: tun0: IPCP: deflink: State change Closing --> Initial
Oct 24 22:31:50 gateway ppp[582]: tun0: Phase: bundle: Terminate
Oct 24 22:31:50 gateway ppp[582]: tun0: LCP: deflink: LayerFinish
Oct 24 22:31:50 gateway ppp[582]: tun0: LCP: deflink: State change Starting --> Initial
Oct 24 22:31:50 gateway ppp[582]: tun0: Phase: deflink: Disconnected!
Oct 24 22:31:50 gateway ppp[582]: tun0: Phase: deflink: Connect time: 83 secs: 4475 octets in, 5334 octets out
Oct 24 22:31:50 gateway ppp[582]: tun0: Phase: deflink: 46 packets in, 54 packets out
Oct 24 22:31:50 gateway ppp[582]: tun0: Phase:  total 118 bytes/sec, peak 442 bytes/sec on Fri Oct 24 22:31:45 2003
Oct 24 22:31:50 gateway ppp[582]: tun0: Phase: deflink: lcp -> closed
Oct 24 22:31:50 gateway ppp[582]: tun0: Phase: bundle: Dead
Oct 24 22:31:50 gateway ppp[582]: tun0: Phase: PPP Terminated (normal).

играя с route change default 10.0.0.1
получаем инет
работает около 90 секунд
далее отваливается

в mpd было видно, что ответы на lcp не приходят, вот он и рвет коннект
играя с mpd в один момент как-то добился, что приходили, но не помню

сейчас работаю с ppptp


plz help

  Рекомендовать в FAQ | Cообщить модератору | Наверх


Удалить

Индекс форумов | Темы | Пред. тема | След. тема
Пожалуйста, прежде чем написать сообщение, ознакомьтесь с данными рекомендациями.



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру