[CentOS] A little iptables help

Wed Sep 28 15:37:41 UTC 2005
James Pifer <jep at obrien-pifer.com>

On Wed, 2005-09-28 at 12:11 -0300, Rodrigo Barbosa wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Wed, Sep 28, 2005 at 08:54:56AM -0400, James Pifer wrote:
> > Wondering if anyone is willing to give me a little assistance with some
> > firewall rules. I think what I'm looking for is fairly simple, and I've
> > been trying to use webmin's firewall module without success.
> > 
> > I have a web server that I'd like to open up port 80 and forward a
> > specific port for a select number of allowed ips. That's it. Everything
> > else is dropped. 
> > 
> > allow: port 80
> > allow: forward port 8000 for x.x.x.x to y.y.y.y
> > 
> > Anyone willing to assist with the rules? And lastly, how would I apply
> > it in a way that it will always be in affect? If the machine reboots for
> > example.
> > 
> > Any help is appreciated. 
> > James
> 
> Forward port 8000 to several hosts might be difficult using only iptables.
> You might want to take a look at LVS (Linux Virtual Server) for that,
> on http://www.linuxvirtualserver.org/
> 
> []s
> 
> 


No, I need to forward several machines through a specific port to a
single machine. Not "forward 8000 to several hosts". 

Still looking over the other responses.

Thanks for the responses.
James