[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Redirect based on ip address
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: Redirect based on ip address
- From: ryc <iii_(_at_)_binary_(_dot_)_net>
- Date: Thu, 03 May 2001 15:14:46 -0500
Why would this not work?
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
> >is a redirect where if the source is machine A, it will redirect port 80
> >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
> 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