Προς το περιεχόμενο

στήσιμο vpn server (debian)


antonis_wrx

Προτεινόμενες αναρτήσεις

Δημοσ.

Καλησπέρα.

 

Προσπαθώ να στήσω vpn server σε debian testing έτσι ώστε να έχω ελληνική ip όταν βρίσκομαι Αγγλία για πρόσβαση σε κάποια site. Βρήκα τον παρακάτω οδηγό: http://www.initcron.org/how-tos/howto-setup-vpn-server-on-debian-50-lenny/ και ακολούθησα τις οδηγίες.

 

Το /etc/pptp.conf μου είναι:

 

>localip 192.168.1.2
remoteip 192.168.1.20-29

 

και στο /etc/ppp/pptpd-options άλλαξα τα ms-dns και έβαλα τους dns της forthnet

 

>ms-dns 194.219.227.2
ms-dns 193.92.150.3

 

το /etc/ppp/chap-secrets μου είναι:

 

># Secrets for authentication using CHAP
# client        server  secret                  IP addresses
antonis pptpd   *       *

user    pptpd   pass

 

προσπαθώ να συνδεθώ από το laptop (που έτσι και αλλιώς βρίσκεται στο lan, δεν ξέρω αν αυτό παίζει να δημιουργεί πρόβλημα) με username user και password pass και δεν συνδέεται. Πιο συγκεκριμένα, ο network manager πετάει vpn connection failed.

 

server log: (syslog)

 

>Sep 22 17:49:23 mordor pptpd[3174]: MGR: Launching /usr/sbin/pptpctrl to handle client
Sep 22 17:49:23 mordor pptpd[3174]: CTRL: local address = 192.168.1.2
Sep 22 17:49:23 mordor pptpd[3174]: CTRL: remote address = 192.168.1.20
Sep 22 17:49:23 mordor pptpd[3174]: CTRL: pppd options file = /etc/ppp/pptpd-options
Sep 22 17:49:23 mordor pptpd[3174]: CTRL: Client 192.168.1.13 control connection started
Sep 22 17:49:23 mordor pptpd[3174]: CTRL: Received PPTP Control Message (type: 1)
Sep 22 17:49:23 mordor pptpd[3174]: CTRL: Made a START CTRL CONN RPLY packet
Sep 22 17:49:23 mordor pptpd[3174]: CTRL: I wrote 156 bytes to the client.
Sep 22 17:49:23 mordor pptpd[3174]: CTRL: Sent packet to client
Sep 22 17:49:24 mordor pptpd[3174]: CTRL: Received PPTP Control Message (type: 7)
Sep 22 17:49:24 mordor pptpd[3174]: CTRL: Set parameters to 10000000 maxbps, 3 window size
Sep 22 17:49:24 mordor pptpd[3174]: CTRL: Made a OUT CALL RPLY packet
Sep 22 17:49:24 mordor pptpd[3174]: CTRL: Starting call (launching pppd, opening GRE)
Sep 22 17:49:24 mordor pptpd[3174]: CTRL: pty_fd = 6
Sep 22 17:49:24 mordor pptpd[3174]: CTRL: tty_fd = 7
Sep 22 17:49:24 mordor pptpd[3174]: CTRL: I wrote 32 bytes to the client.
Sep 22 17:49:24 mordor pptpd[3174]: CTRL: Sent packet to client
Sep 22 17:49:24 mordor pptpd[3175]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
Sep 22 17:49:24 mordor pptpd[3175]: CTRL (PPPD Launcher): local address = 192.168.1.2
Sep 22 17:49:24 mordor pptpd[3175]: CTRL (PPPD Launcher): remote address = 192.168.1.20
Sep 22 17:49:24 mordor pppd[3175]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so is for pppd version 2.4.4, this is 2.4.5
Sep 22 17:49:24 mordor pptpd[3174]: GRE: read(fd=6,buffer=8058640,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Sep 22 17:49:24 mordor pptpd[3174]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Sep 22 17:49:24 mordor pptpd[3174]: CTRL: Reaping child PPP[3175]
Sep 22 17:49:24 mordor pptpd[3174]: CTRL: Client 192.168.1.13 control connection finished
Sep 22 17:49:24 mordor pptpd[3174]: CTRL: Exiting now
Sep 22 17:49:24 mordor pptpd[2964]: MGR: Reaped child 3174

 

και client:

 

>Sep 22 17:39:19 myrina NetworkManager[2253]: <info> Starting VPN service 'org.freedesktop.NetworkManager.pptp'...
Sep 22 17:39:19 myrina NetworkManager[2253]: <info> VPN service 'org.freedesktop.NetworkManager.pptp' started (org.freedesktop.NetworkManager.pptp), PID 10588
Sep 22 17:39:19 myrina NetworkManager[2253]: <info> VPN service 'org.freedesktop.NetworkManager.pptp' appeared, activating connections
Sep 22 17:39:19 myrina NetworkManager[2253]: <info> VPN plugin state changed: 1
Sep 22 17:39:19 myrina NetworkManager[2253]: <info> VPN plugin state changed: 3
Sep 22 17:39:19 myrina NetworkManager[2253]: <info> VPN connection 'VPN connection 1' (Connect) reply received.
Sep 22 17:39:19 myrina pppd[10590]: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded.
Sep 22 17:39:19 myrina pppd[10590]: pppd 2.4.5 started by root, uid 0
Sep 22 17:39:19 myrina pppd[10590]: Using interface ppp0
Sep 22 17:39:19 myrina pppd[10590]: Connect: ppp0 <--> /dev/pts/1
Sep 22 17:39:19 myrina pptp[10592]: nm-pptp-service-10588 log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Sep 22 17:39:19 myrina NetworkManager[2253]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Sep 22 17:39:19 myrina NetworkManager[2253]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Sep 22 17:39:19 myrina pptp[10598]: nm-pptp-service-10588 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Sep 22 17:39:19 myrina pptp[10598]: nm-pptp-service-10588 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Sep 22 17:39:19 myrina pptp[10598]: nm-pptp-service-10588 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Sep 22 17:39:20 myrina pptp[10598]: nm-pptp-service-10588 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Sep 22 17:39:20 myrina pptp[10598]: nm-pptp-service-10588 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Sep 22 17:39:20 myrina pptp[10598]: nm-pptp-service-10588 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 384).
Sep 22 17:39:20 myrina pptp[10598]: nm-pptp-service-10588 log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
Sep 22 17:39:20 myrina pptp[10598]: nm-pptp-service-10588 log[callmgr_main:pptp_callmgr.c:258]: Closing connection (shutdown)
Sep 22 17:39:20 myrina pptp[10598]: nm-pptp-service-10588 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Sep 22 17:39:20 myrina pptp[10598]: nm-pptp-service-10588 log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
Sep 22 17:39:20 myrina pptp[10598]: nm-pptp-service-10588 log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Sep 22 17:39:20 myrina pppd[10590]: Modem hangup
Sep 22 17:39:20 myrina pppd[10590]: Connection terminated.
Sep 22 17:39:20 myrina NetworkManager[2253]: <warn> VPN plugin failed: 1
Sep 22 17:39:20 myrina avahi-daemon[1516]: Withdrawing workstation service for ppp0.
Sep 22 17:39:20 myrina NetworkManager[2253]:    SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Sep 22 17:39:20 myrina pppd[10590]: Exit.
Sep 22 17:39:20 myrina NetworkManager[2253]: <warn> VPN plugin failed: 1
Sep 22 17:39:20 myrina NetworkManager[2253]: <warn> VPN plugin failed: 1
Sep 22 17:39:20 myrina NetworkManager[2253]: <info> VPN plugin state changed: 6
Sep 22 17:39:20 myrina NetworkManager[2253]: <info> VPN plugin state change reason: 0
Sep 22 17:39:20 myrina NetworkManager[2253]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active.
Sep 22 17:39:20 myrina NetworkManager[2253]: <info> Policy set 'Auto USR9108' (wlan0) as default for IPv4 routing and DNS.

Δημοσ.

δεν έχω ιδέα από Openvpn. Μέσω lan κατάφερα να συνδεθώ, έπρεπε να ενεργοποιήσω στον client το use point to point encryption (MPPE). Από traceroute φαίνεται ότι το traffic περνάει όντως από τον server. Θα πω σε κανέναν φίλο να δοκιμάσει από έξω να βεβαιωθώ ότι όλα οκ.

Αρχειοθετημένο

Αυτό το θέμα έχει αρχειοθετηθεί και είναι κλειστό για περαιτέρω απαντήσεις.

  • Δημιουργία νέου...