Pagina 1 di 1

VPN pptp

Inviato: gio 5 mar 2009, 16:58
da g4b0
Ciao a tutti,
Ho scaricato il pacchetto pptp-1.7.2-i486-2ga da linuxpackages :oops: , perche su slacky non l'ho trovato.
Anyway, ora ho dei problemi nel farlo funzionare.

Aggiunto la riga relativa al server:

Codice: Seleziona tutto

root@slack:/etc/ppp# more chap-secrets
# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
username    pptp     password             *
Ho creato il file /etc/ppp/peers/nomepeer:

Codice: Seleziona tutto

root@slack:/etc/ppp# more peers/nomepeer
pty "pptp 213.45.33.54 --nolaunchpppd"
name username
remotename PPTP
#require-mppe-128
file /etc/ppp/options.pptp
ipparam nomepeer
Mi collego con il comando

Codice: Seleziona tutto

pppd call nomepeer
I log dicono:

Codice: Seleziona tutto

Mar  5 16:57:07 slack pppd[5308]: pppd 2.4.4 started by root, uid 0
Mar  5 16:57:07 slack pppd[5308]: Using interface ppp0
Mar  5 16:57:07 slack pppd[5308]: Connect: ppp0 <--> /dev/pts/7
Mar  5 16:57:07 slack pptp[5309]: anon log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Mar  5 16:57:07 slack pptp[5314]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Mar  5 16:57:07 slack pptp[5314]: anon log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Mar  5 16:57:07 slack pptp[5314]: anon log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Mar  5 16:57:08 slack pptp[5314]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Mar  5 16:57:08 slack pptp[5314]: anon log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Mar  5 16:57:08 slack pptp[5314]: anon log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 1137).
Mar  5 16:57:09 slack pptp[5314]: anon log[ctrlp_disp:pptp_ctrl.c:912]: Received Call Clear Request.
Ma se interrogo ifconfig non ottengo nessuna nuova interfaccia :(
E dopo circa 30 secondi:

Codice: Seleziona tutto

Mar  5 16:57:40 slack pptp[5314]: anon log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
Mar  5 16:57:40 slack pptp[5314]: anon log[callmgr_main:pptp_callmgr.c:258]: Closing connection (shutdown)
Mar  5 16:57:40 slack pptp[5314]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Mar  5 16:57:40 slack pptp[5314]: anon log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
Mar  5 16:57:40 slack pptp[5314]: anon log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Mar  5 16:57:40 slack pppd[5308]: Modem hangup
Mar  5 16:57:40 slack pppd[5308]: Connection terminated.
Mar  5 16:57:40 slack pppd[5308]: Exit.
Come posso stabilire la mia connessione PPTP?

Grazie a tutti