From: Primero <primero@fastwebnet.it>
To: netfilter@lists.netfilter.org
Subject: Re: Ipsec/l2tp
Date: Sat, 03 Jul 2004 13:46:01 +0200 [thread overview]
Message-ID: <opsaj8azll5vdmd8@smtp.fastwebnet.it> (raw)
In-Reply-To: <200407031213.33996.Antony@Soft-Solutions.co.uk>
>
> I hope someone else here can now fill in some useful details for you,
> given
> that you're using 2.6.6
>
> Regards,
>
> Antony.
>
I'm not an expert, but AFAIK and because it works using this way i think
that in 2.6 the process is very similar.
In 2.6 ipsec imlementation there is no Virtual interface, like ipsec0 or
everything else, but the packets both encrypted and unencrypted come from
the same interface , in expample eth0. They traverse netfilter two times,
like in 2.4 , they get the first time to the INPUT chain, if accepted they
traverse netfilter again in the normal process.
The reason i mark my packets at the STEP 1 when they come in encrypted is
because i needed a way to identify packets that arrived ENCRYPTED, get
decrypted and acceppted by ipsec and that are traversing the netfilter for
the second time.
This way i can be sure that i handle only packets that have been accepted
by ipsec and i can feel good :)
for example, i use ipsec fot my WIFI lan and i have this kind of rules:
1) MANGLE/PREROUTING for packets arriving in esp protocol
iptables -t mangle -a PREROUTING -s $Y_WIFI_HOSTS -i $MY_WIFI_INTERFACE -p
esp -j MARK --set-mark 10
2) INPUT for packets arriving in esp protocol
iptables -A INPUT -p esp -j ACCEPT
now IPSEC will authenticate and eventually accept the packets
3) INPUT and FORWARD for previously athenticated packets
iptables -A FORWARD -m --mark 10 -j MY_FORWARD_CHAIN
iptables -A INPUT -m --mark 10 -j MY_INPUT_CHAIN
bye
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
next prev parent reply other threads:[~2004-07-03 11:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-03 10:25 Ipsec/l2tp Eray Aslan
2004-07-03 11:13 ` Ipsec/l2tp Antony Stone
2004-07-03 11:46 ` Primero [this message]
2004-07-03 22:58 ` Ipsec/l2tp Alexander Samad
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=opsaj8azll5vdmd8@smtp.fastwebnet.it \
--to=primero@fastwebnet.it \
--cc=netfilter@lists.netfilter.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.