Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Grant Taylor <gtaylor@riverviewtech.net>
To: Mail List - Netfilter <netfilter@vger.kernel.org>
Subject: Re: Redirecting ports in a bridge
Date: Mon, 21 Apr 2008 20:30:10 -0500	[thread overview]
Message-ID: <480D3FA2.4050000@riverviewtech.net> (raw)
In-Reply-To: <480C3A6A.3090206@juntadeandalucia.es>

On 4/21/2008 1:55 AM, Javier Prieto Martínez wrote:
> Yes, It's multi-purpose: 
> http://www.eneotecnologia.com/products_en.html?TB_iframe=true&height=510&width=800
> - Firewall & QoS. High performance statefull firewall and quality of 
> service.
> - Web cache & content filter. Black and white list mode with LDAP or 
> AD authentication.
> - VPN. L2TP / IPSEC – X.509, NAT Traversal and high availability. 
> - IPS / IDS. Snort 2.6 based with hardware acceleration.
> - Load balancing. LVS based – L3/4 classification, different 
> algorithms.
> - High availability. VRRP (Router mode) and STP (Bridge mode).
> - Malware. Antivirus (ClamAV, Kaspersky), antispam (DSPAM, 
> Mailshell), antispyware (Kaspersky, PCTools or Sunbelt) with hardware 
> acceleration.
> - NetFlow probe. NetFlow v5/9 Probe.

*nod*

> We use it in bridge mode, mainly for traffic logging, and sometimes 
> for packet filtering.

Ok, to me logging is recording information and filtering is either 
allowing traffic to pass or not.  Based on your original post it sounds 
like you are wanting to do some re-direction of traffic too.  Is this 
correct?

> I still want the bridge to be totally transparent, and I don't want 
> to mess with the real IPs, as I don't want the probe to be a single 
> point of failure. In fact, it's network cards still work as a bridge 
> when the machine is down.

The bridge can not be totally transparent and change things at the same 
time.  If you are having the bridge change things, the network will 
operate differently with it in verses out of service.  Please clarify 
what you are wanting.

> I suppose I should use SNAT, then, as you've stated, but it doesn't 
> seem to work properly. I'm trying that:
> 
> # iptables -t nat -A PREROUTING -p tcp -d 192.168.2.1 --dport 80 
> --to-destination 192.168.2.2:80 -j DNAT
> # iptables -t nat -A POSTROUTING -p tcp --sport 80 -s 192.168.2.2 -d 
> 192.168.1.0/24 -j SNAT --to-source 192.168.2.1


Remember that IPTables operates on layer 3 and EBTables operates on 
layer 2.  So unless you have your kernel configured to do such, IPTables 
will not see layer 2 traffic.  So, either you need to use EBTables 
(preferred in my opinion) or you need to configure your kernel so that 
IPTables sees layer 2 traffic.



Grant. . . .

  reply	other threads:[~2008-04-22  1:30 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-18  9:27 Redirecting ports in a bridge Javier Prieto Martínez
2008-04-18 10:35 ` Jan Engelhardt
2008-04-18 10:55   ` Javier Prieto Martínez
2008-04-18 11:29     ` Jan Engelhardt
2008-04-18 11:41       ` Javier Prieto Martínez
2008-04-18 12:26         ` Marc Cozzi
2008-04-18 12:34           ` Javier Prieto Martínez
2008-04-23 15:25           ` Jan Engelhardt
2008-04-18 14:38         ` Grant Taylor
2008-04-21  6:55           ` Javier Prieto Martínez
2008-04-22  1:30             ` Grant Taylor [this message]
2008-04-22  6:15               ` Javier Prieto Martínez
2008-04-22 14:29                 ` Grant Taylor
2008-04-22 15:10                   ` Javier Prieto Martínez
2008-04-22 19:24                     ` Grant Taylor
2008-04-23 15:24         ` Jan Engelhardt
2008-04-23 17:16           ` Grant Taylor
2008-04-23 18:48             ` Jan Engelhardt
2008-04-23 18:57               ` Grant Taylor
2008-04-24  6:15                 ` Javier Prieto Martínez
2008-04-18 14:34   ` Grant Taylor
2008-04-18 14:44 ` Grant Taylor

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=480D3FA2.4050000@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --cc=netfilter@vger.kernel.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