[CentOS] A little iptables help

Rodrigo Barbosa rodrigob at suespammers.org
Wed Sep 28 15:11:59 UTC 2005

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/


- -- 
Rodrigo Barbosa <rodrigob at suespammers.org>
"Quid quid Latine dictum sit, altum viditur"
"Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)

Version: GnuPG v1.4.1 (GNU/Linux)


More information about the CentOS mailing list