[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Redirect based on ip address



Why would this not work?

ipnat.rules:
rdr ne0 ipA/32 port 80 -> 127.0.0.1 port 8000
rdr ne0 ipB/32 port 80 -> 127.0.0.1 port 8001



> On Thu, May 03, 2001 at 01:42:32PM -0400, Eric Olsson wrote:
> >I think I wasn't too clear in explaining before, but what I want to set
up
> >is a redirect where if the source is machine A, it will redirect port 80
to
> >port 8000, and if it is machine B redirect to port 8001. Anyone else
> >accessing port 80 should not be redirected. Is this possible within ipf
> >rules?
>
> No, what you can do is.
>
> 1) Put two IPs on the external NIC redirect IP1:80 to 8000 and
> IP2:80 to 8001. Block with IPF.
>
> 2) Redirect port 80 to 8000 and port 81 to 8001. Filter with
> IPFilter.