SOLUTION + Patch to: pf rdr + netsed : reinject loop...

2007-09-02 Thread Norberto Meijome
On Fri, 31 Aug 2007 20:27:29 +1000 Norberto Meijome <[EMAIL PROTECTED]> wrote: > Hello everyone, I need your help / insight here :) Mel (fbsd.questions at rachie.is-a-geek.net ) has very kindly and cleverly provided a neat solution for this problem. It was posted to Question@, and it can be fo

Re: pf rdr + netsed : reinject loop...

2007-08-31 Thread Norberto Meijome
On Fri, 31 Aug 2007 13:33:53 +0200 Daniel Hartmeier <[EMAIL PROTECTED]> wrote: > b) Instead of replacing the destination address in pf with rdr, try > leaving it as it is, but use route-to (lo0) to get the packet routed to > the loopback interface. This would require netsed to listen on > INADDR_A

Re: pf rdr + netsed : reinject loop...

2007-08-31 Thread Norberto Meijome
On Fri, 31 Aug 2007 13:33:53 +0200 Daniel Hartmeier <[EMAIL PROTECTED]> wrote: > On Fri, Aug 31, 2007 at 08:27:29PM +1000, Norberto Meijome wrote: > > > rdr on $int_if proto tcp from 172.16.82.81 to any -> 127.0.0.1 port 10101 > > netsed tcp 10101 0 0 s/FOO/BAR > > > The traffic from XP gets red

Re: pf rdr + netsed : reinject loop...

2007-08-31 Thread Daniel Hartmeier
On Fri, Aug 31, 2007 at 08:27:29PM +1000, Norberto Meijome wrote: > rdr on $int_if proto tcp from 172.16.82.81 to any -> 127.0.0.1 port 10101 > netsed tcp 10101 0 0 s/FOO/BAR > The traffic from XP gets redirected just fine to netsed, which replaces the > bytes just fine. BUT the changed packets

pf rdr + netsed : reinject loop...

2007-08-31 Thread Norberto Meijome
Hello everyone, I need your help / insight here :) My setup, 2 VMs, XP (WinXP) and BSD (FreeBSD 6.2) [XP ,172.16.82.81 ] --- [172.16.82.81,em1 BSD A.B.C.D,em0] --- The Interweb [Other_servers_galore] A.B.C.D is a public IP. [Other_servers_galore] represents all and any servers XP wants