From: "Geoff Mulligan" Subject: transparent bridging and redirection? Date: Sat, 17 Jan 2004 00:21:32 -0700 Sender: netfilter-admin@lists.netfilter.org Message-ID: <01f501c3dcca$88b93710$0e5ce9c7@sony> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01F6_01C3DC8F.DC5BE5B0" Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: netfilter@lists.netfilter.org This is a multi-part message in MIME format. ------=_NextPart_000_01F6_01C3DC8F.DC5BE5B0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Is it possible to set up an Ethernet-bridge-netfilter so that it doesn't have an IP address except localhost 127.0.0.1 or a non routable address = such as 192.168.xx.xx and use the netfilter iptables or ebtables target = REDIRECT to "intercept" connections to port 22 and handle them on the bridge = device itself and transparent pass all other traffic across the bridge. =20 I was thinking that I could use the REDIRECT target to redirect port 22 = with the dest ip address getting rewritten to 127.0.0.1 or even a 192.168 = address coming in on one interface and then have the bridge respond and have it rewrite the source address on the outbound side to the original dest = addr. =20 This way I could plug in this transparent bridge without having to = configure or know the ipaddress of the external router or the ipaddress of the = machine on the internal lan and still be able to intercept certain = ports/services. =20 =20 Thanks, Geoff =20 =20 =20 ------=_NextPart_000_01F6_01C3DC8F.DC5BE5B0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Is it possible to set up an Ethernet-bridge-netfilter = so that it doesn’t have an IP address except localhost 127.0.0.1 or a = non routable address such as 192.168.xx.xx and use the netfilter iptables or = ebtables target REDIRECT to “intercept” connections to port 22 and = handle them on the bridge device itself and transparent pass all other traffic = across the bridge.

 

I was thinking that I could use the REDIRECT target = to redirect port 22 with the dest ip address getting rewritten to 127.0.0.1 = or even a 192.168 address coming in on one interface and then have the = bridge respond and have it rewrite the source address on the outbound side to = the original dest addr.

 

This way I could plug in this transparent bridge = without having to configure or know the ipaddress of the external router or the = ipaddress of the machine on the internal lan and still be able to intercept = certain ports/services.

 

 

         =    Thanks,

         =             &= nbsp;  Geoff

 

 

 

------=_NextPart_000_01F6_01C3DC8F.DC5BE5B0--