Moin zusammen !
Jetzt, wo die Netzwerkkarte endlich läuft, möchte ich die Linuxbox als vpn-Server nutzen.
Die Kiste steht hinter einem Router, der alles Nötige weiterNATet und ist über Dyndns erreichbar.
Also per apt-get pptpd installiert und nach Tutorial die folgenden Files angepaßt:
/etc/pptpd.conf:
localip xxx.xxx.xxx.33
remoteip xxx.xxx.xxx.34-40
listenip xxx.xxx.xxx.33
bcrelay auf eth0
/etc/ppp/chap-secrets:
benutzer angelegt nach Schema
client server secret ip
username * passwd *
/etc/ppp/pptpd-options:
name vm-srv-deb-1
refuse-map
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
Wenn ich mich von WinXP verbinde, gibt es keine Probleme. Nach der Anmeldung allerdings kommt nicht ein einziges Bit mehr übers Netz zum Client.
Btw. das Remotenetz hat das gleiche Subnetz, wie das lokale. IP-Konflikte sollte es aber keine geben...
/var/log/syslog
[...]
Oct 17 15:20:49 vm-srv-deb-1 pptpd[8324]: CTRL: Client 84.148.211.92 control connection started
Oct 17 15:20:49 vm-srv-deb-1 pptpd[8324]: CTRL: Starting call (launching pppd, opening GRE)
Oct 17 15:20:49 vm-srv-deb-1 pppd[8325]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Oct 17 15:20:49 vm-srv-deb-1 pppd[8325]: pppd 2.4.4 started by root, uid 0
Oct 17 15:20:49 vm-srv-deb-1 pppd[8325]: Using interface ppp0
Oct 17 15:20:49 vm-srv-deb-1 pppd[8325]: Connect: ppp0 <--> /dev/pts/4
Oct 17 15:20:49 vm-srv-deb-1 pptpd[8324]: GRE: Bad checksum from pppd.
Oct 17 15:20:49 vm-srv-deb-1 pptpd[8324]: CTRL: Ignored a SET LINK INFO packet with real ACCMs!
Oct 17 15:20:50 vm-srv-deb-1 pppd[8325]: found interface eth0 for proxy arp
Oct 17 15:20:50 vm-srv-deb-1 pppd[8325]: local IP address 192.9.200.33
Oct 17 15:20:50 vm-srv-deb-1 pppd[8325]: remote IP address 192.9.200.34
Oct 17 15:22:30 vm-srv-deb-1 pppd[8325]: LCP terminated by peer (,M-j/M-!^@<M-Mt^@^@^@^@)
Oct 17 15:22:30 vm-srv-deb-1 pppd[8325]: Connect time 1.7 minutes.
Oct 17 15:22:30 vm-srv-deb-1 pppd[8325]: Sent 2931 bytes, received 27736 bytes.
Oct 17 15:22:30 vm-srv-deb-1 pptpd[8324]: CTRL: Reaping child PPP[8325]
Oct 17 15:22:30 vm-srv-deb-1 pppd[8325]: Modem hangup
Oct 17 15:22:30 vm-srv-deb-1 pppd[8325]: Connection terminated.
Oct 17 15:22:30 vm-srv-deb-1 pppd[8325]: Exit.
Oct 17 15:22:30 vm-srv-deb-1 pptpd[8324]: CTRL: Client 84.148.211.92 control connection finished
[...]
Woran könnte es liegen, daß der VPN-Tunnel wie ein Halbleiter agiert ?
Gruß
Roald
pptpd - GRE: bad checksum
Re: pptpd - GRE: bad checksum
Bei mir hat diese Anleitung weiter geholfen http://opensourcehacker.com/2011/10/23/ ... ntu-linux/
Insbesondere die Firewall Einstellungen für das IP NAT Routing
Außerdem darf man in /etc/ppp/pptpd-options nicht vergessen gültige Nameserver einzutragen.
Eine weitere gute Anleitung ist http://pigtail.net/nicholas/pptp/
Insbesondere die Firewall Einstellungen für das IP NAT Routing
Code: Alles auswählen
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo sysctl net.ipv4.ip_forward=1
Außerdem darf man in /etc/ppp/pptpd-options nicht vergessen gültige Nameserver einzutragen.
Code: Alles auswählen
# googles DNS
ms-dns 8.8.8.8
ms-dns 8.8.4.4
#The following are the OpenDNS servers which anyone can use.
ms-dns 208.67.222.222
ms-dns 208.67.220.220
Eine weitere gute Anleitung ist http://pigtail.net/nicholas/pptp/