Hallo erstmal,
Ich habe heute meinen Pi als VPN Server mit OpenSwan konfiguriert und soweit so gut. Ich kann mich mit meiner internen IP Verbinden, und es werden auch Daten übertragen, das VPN funktioniert also. Wenn ich nun versuche, mich von außerhalb mit meiner externen IP zu verbinden, scheitert die Verbindung staendig, bis auf zweimal wo ich mich verbinden konnte. Ueber meine Dyn-DNS Domain, konnte ich noch gar keine Verbindung herstellen.
Die nötigen Ports sind geöffnet, Anmeldedaten sind korrekt.
Ich hab die Vermutung, dass die Anmeldung zu lange dauert und ein Timeout verursacht, kann dies aber nicht beweisen. Hat jemand Tipps, wie ich mein Problem lösen könnte ?
MfG
Jannik Jung
//Edit:
Ich habe mir jetzt mal die Logs angeschaut, es handelt sich wirklich um ein timeout problem:
pi@RaspberryPi ~ $ tail -f /var/log/daemon.log
Mar 6 19:04:50 RaspberryPi xl2tpd[2188]: check_control: Received out of order control packet on tunnel -1 (got 1, expected 0)
Mar 6 19:04:50 RaspberryPi xl2tpd[2188]: handle_packet: bad control packet!
Mar 6 19:04:55 RaspberryPi xl2tpd[2188]: Maximum retries exceeded for tunnel 55391. Closing.
Mar 6 19:04:55 RaspberryPi xl2tpd[2188]: Connection 7297 closed to 109.43.2.231, port 33229 (Timeout)
Mar 6 19:05:00 RaspberryPi xl2tpd[2188]: Unable to deliver closing message for tunnel 55391. Destroying anyway.
Mar 6 19:06:08 RaspberryPi xl2tpd[2188]: check_control: Received out of order control packet on tunnel -1 (got 1, expected 0)
Mar 6 19:06:08 RaspberryPi xl2tpd[2188]: handle_packet: bad control packet!
Mar 6 19:06:13 RaspberryPi xl2tpd[2188]: Maximum retries exceeded for tunnel 30724. Closing.
Mar 6 19:06:13 RaspberryPi xl2tpd[2188]: Connection 47003 closed to 109.43.2.231, port 32393 (Timeout)
Mar 6 19:06:18 RaspberryPi xl2tpd[2188]: Unable to deliver closing message for tunnel 30724. Destroying anyway.
Mar 6 19:07:54 RaspberryPi xl2tpd[2188]: check_control: Received out of order control packet on tunnel -1 (got 1, expected 0)
Mar 6 19:07:54 RaspberryPi xl2tpd[2188]: handle_packet: bad control packet!
Mar 6 19:07:59 RaspberryPi xl2tpd[2188]: Maximum retries exceeded for tunnel 14348. Closing.
Mar 6 19:07:59 RaspberryPi xl2tpd[2188]: Connection 32707 closed to 109.43.2.231, port 33778 (Timeout)
Mar 6 19:08:04 RaspberryPi xl2tpd[2188]: Unable to deliver closing message for tunnel 14348. Destroying anyway.
Alles anzeigen
Gibt es eine Möglichkeit den Timeout hoch zusetzten? Oder evt. sogar eine Möglichkeit die Verbindungszeiten niedrig zu halten?