Re: Binat not NATing source IP Address

2008-04-25 Thread Stuart Henderson
On 2008-04-25, Gordon Ross <[EMAIL PROTECTED]> wrote: On 25 April 2008 at 11:40, in message ><[EMAIL PROTECTED]>, Stuart Henderson ><[EMAIL PROTECTED]> wrote: >> Try something like this: >> >> # rdr proto tcp from any to a port 9000 -> x port 80 >> # nat from !a to x -> a >

Re: Binat not NATing source IP Address

2008-04-25 Thread Gordon Ross
>>> On 25 April 2008 at 11:40, in message <[EMAIL PROTECTED]>, Stuart Henderson <[EMAIL PROTECTED]> wrote: > Try something like this: > > # rdr proto tcp from any to a port 9000 -> x port 80 > # nat from !a to x -> a The problem with this, is that I don't know all the ports tha

Re: Binat not NATing source IP Address

2008-04-25 Thread Stuart Henderson
Try something like this: # rdr proto tcp from any to a port 9000 -> x port 80 # nat from !a to x -> a On 2008-04-25, Gordon Ross <[EMAIL PROTECTED]> wrote: > I have a simple host, with two interfaces INT & EXT > > INT has the IP address of 192.168.1.1/24 > EXT has the IP addre

Binat not NATing source IP Address

2008-04-25 Thread Gordon Ross
I have a simple host, with two interfaces INT & EXT INT has the IP address of 192.168.1.1/24 EXT has the IP address of 192.168.2.1/24 I've enabled PF with one simple rule: binat pass on EXT from 192.168.1.2 to any -> 192.168.2.2 Packets are flowing through, and the destination is getting re-wri