public inbox for gentoo-user-de@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user-de] VPN und iptables
@ 2008-06-26  7:29 Dirk Spiekermann
  0 siblings, 0 replies; only message in thread
From: Dirk Spiekermann @ 2008-06-26  7:29 UTC (permalink / raw
  To: Gentoo

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-26  7:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-26  7:29 [gentoo-user-de] VPN und iptables Dirk Spiekermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox