All of lore.kernel.org
 help / color / mirror / Atom feed
* Firewalling non-IPsec connections
@ 2003-12-14 22:30 Peter Hoeg
  2003-12-14 23:59 ` Arnt Karlsen
  2003-12-15 20:44 ` Antony Stone
  0 siblings, 2 replies; 12+ messages in thread
From: Peter Hoeg @ 2003-12-14 22:30 UTC (permalink / raw)
  To: netfilter

Normally google is my friend but hasn't been able to help me out, which is
the reason I am turning to you guys.

Here is the deal:

I have a multipurpose gateway/firewall box (running linux kernel
2.6.0-test9) using iptables 1.2.9 (standard debian package) with 3 NICs:

eth0 - internal LAN
eth1 - WLAN (using a crossover cable into an orinoco wireless gateway)
eth2 - internet connection via adsl

For the IPsec stuff I am using the in-kernel ipsec implementation and racoon
for IKE (tunnel mode by the way).

What I want to do:

Basically, the only connections that are to be allowed as wireless
connections are IPsec tunnels, so I can ensure nobody else uses my
connection. This is pretty easy for connections to the gateway host (UDP
port 500 for IKE, ESP protocol and dhcp) as I just need to limit the INPUT
chain for eth1.

The REAL problem is since I need to allow connections from the wireless LAN
segment to go onto the internet and it seems like the connections only hit
the FORWARD chain AFTER the kernel has done all its magic with unpacking the
encrypted packages. What I would like to do is something like:

iptables -A FORWARD -i eth1 -o eth2 -p esp -j ACCEPT

and then drop everything else, but again, the problem is that if I as an
example ping www.google.com from a wireless host with the IPsec tunnel
active and having this rule:

iptables -A FORWARD -j LOG

I can then see the ICMP packages in my log for the forward chain.

I hope I have managed to explain what it is that I am looking for and that
somebody out there can help me out.



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2003-12-18 12:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-14 22:30 Firewalling non-IPsec connections Peter Hoeg
2003-12-14 23:59 ` Arnt Karlsen
2003-12-15 20:44 ` Antony Stone
2003-12-15 23:55   ` Sven-Haegar Koch
2003-12-16  0:09     ` Michael Gale
2003-12-16  8:53     ` Antony Stone
2003-12-16 14:45       ` Mark Weaver
2003-12-16 15:12         ` Antony Stone
2003-12-16 19:46           ` Mark Weaver
2003-12-17 22:02             ` Peter Hoeg
2003-12-18  0:37               ` Michael H. Warfield
2003-12-18 12:59               ` Mark Weaver

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.