From: Hadmut Danisch <hadmut@danisch.de>
To: netfilter@lists.netfilter.org
Subject: Filtering encrypted vs. unencrypted packages?
Date: Sat, 30 Oct 2004 23:46:26 +0200 [thread overview]
Message-ID: <41840BB2.6020904@danisch.de> (raw)
Hi,
I was just playing around with 2.6 IPSec and isakmpd and ran into a problem:
In order to have the packets from the peer IPSEC network accepted,
I need to have an entry like
iptables -A INPUT -s 192.168.19.0/24 -j ACCEPT
where 192.168.19.0 is the network behind the ipsec peer.
But if I do this, the machine would also accept unencrypted packages
from the Internet (except for the fact that packets to RFC1918-Adresses
are not
routed, but assume that the LAN has official addresses).
I can't even distinguish them by the interface, because from an
iptables point of view, the packages are incoming on the external
interface,
as if they were coming unencrypted.
How do I treat packets from IPSec and unencrypted plain packets from the
Internet differently with iptables?
regards
Hadmut
next reply other threads:[~2004-10-30 21:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-30 21:46 Hadmut Danisch [this message]
2004-10-31 15:14 ` Filtering encrypted vs. unencrypted packages? Lopsch
2004-10-31 18:43 ` Jason Opperisano
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=41840BB2.6020904@danisch.de \
--to=hadmut@danisch.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox