[nsp] Port 80 redirect

Don Bowman don at sandvine.com
Mon Jul 14 19:41:27 EDT 2003


> From: Stephen J. Wilcox [mailto:steve at telecomplete.co.uk]
> On Mon, 14 Jul 2003, matthew zeier wrote:
> 
> > > The interesting part is the server side - you can do 
> alias interfaces, or
> > > transparent proxying (for example via squid), and so on.  
> Depends on the
> > > operating system used and whatever experience you have 
> with the possible
> > > web server / web proxy variants you have.
> > >
> > 
> > Say Linux - how's the magic done there?
> > 
> > I'm trying to do something similiar for some wireless 
> hotspots we're putting
> > up but also want to push people to a site that pops up some 
> sort of ad for
> > my company.
> 
> eg ipchains -A input -j REDIRECT 80 -d 0/0 80 -p tcp

For FreeBSD this can be done with ipfw:

ipfw fwd localhost,8000 tcp from any to any 80



More information about the cisco-nsp mailing list