From: Dirk Spiekermann <Spiekermann-Dirk@t-online.de>
To: Gentoo <gentoo-user-de@lists.gentoo.org>
Subject: [gentoo-user-de] VPN und iptables
Date: Thu, 26 Jun 2008 09:29:39 +0200 [thread overview]
Message-ID: <48634563.4090504@t-online.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 1841 bytes --]
Hi,
ich habe mal wieder ein "Problem" mit meinem VPN. Szenario:
Zuhause baut der Gentoo-Rechner über ppp die Internetverbindung auf.
Unterwegs der Laptop geht über einen DSL-Router ins Netz.
Dann verbindet sich der Laptop als Roadwarrior zum Rechner zuhause.Die
VPN-Verbindung steht auch. Auf dem Laptop reichen folgende IPTables Regeln, um
Zugriff auf den Rechner zuhause zu bekommen
"Tables -A INPUT -p esp -j ACCEPT
Tables -A OUTPUT -p esp -j ACCEPT
Tables -A INPUT -p udp --sport 500 --dport 500 -j ACCEPT
Tables -A OUTPUT -p udp --sport 500 --dport 500 -j ACCEPT
Tables -A INPUT -p udp --sport 4500 --dport 4500 -j ACCEPT
Tables -A OUTPUT -p udp --sport 4500 --dport 4500 -j ACCEPT
Tables -t mangle -A POSTROUTING -p udp --sport 500 -j ACCEPT
Tables -A OUTPUT -m policy --dir out --pol ipsec --proto esp -m state --state
NEW,ESTABLISHED,RELATED -j ACCEPT
Tables -A INPUT -m policy --dir in --pol ipsec --proto esp -m state --state
NEW,ESTABLISHED,RELATED -j ACCEPT
######Name-Server OK######
#######################################
Tables -A OUTPUT -p tcp --dport 53 -j ACCEPT
Tables -A OUTPUT -p udp --dport 53 -j ACCEPT
Tables -A INPUT -p tcp --sport 53 -m state --state ESTABLISHED,RELATED -j ACCEPT
Tables -A INPUT -p udp --sport 53 -j ACCEPT"
Wenn ich nun aber die gleichen Regeln auf dem Rechner zuhause anwende, geht nix
raus zum Roadwarrior. Folgende Meldungen landen im Log:
"IPTABLES packed died: IN= OUT=ppp0 SRC=79.203.69.193 DST=192.168.1.212 LEN=84
TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=ICMP TYPE=8 CODE=0 ID=24362 SEQ=1"
Allerdings kann der Roadwarrior ungehindert weiterhin auf den Rechner zugreifen.
Nur umgekehrt klappt es nicht.
Woran könnte es liegen?
Vielen Dank im Voraus...
--
Han Solo:
Get in there you big furry oaf! I don't care what
you smell!
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
reply other threads:[~2008-06-26 7:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48634563.4090504@t-online.de \
--to=spiekermann-dirk@t-online.de \
--cc=gentoo-user-de@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox