All of lore.kernel.org
 help / color / mirror / Atom feed
* Jumping to chains dynamically based on interface name
@ 2009-10-08  8:07 Tore Anderson
  0 siblings, 0 replies; only message in thread
From: Tore Anderson @ 2009-10-08  8:07 UTC (permalink / raw)
  To: netfilter

Hi,

I'm building a "router on a stick" type of firewall using netfilter,
which have a two dedicated chains per interface (egress+ingress).  This
causes a large FORWARD and FORWARD-EGRESS chains with rules that match
on interface name and jumps to the appopriate interface-specific chain.
 I've been wanting to replace them all with just one rule per direction:

iptables -A FORWARD -j ${in-interface}-ingress
iptables -A FORWARD-EGRESS -j ${out-interface}-egress

Is that possible somehow?

Best regards,
-- 
Tore Anderson
Redpill Linpro AS - http://www.redpill-linpro.com/
Tel: +47 21 54 41 27

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

only message in thread, other threads:[~2009-10-08  8:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-08  8:07 Jumping to chains dynamically based on interface name Tore Anderson

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.