[CentOS] iptables help request

Wed Aug 31 17:55:27 UTC 2005
Andrew Sawyers <andrew at zope.com>

Well, you can do it like this in the *nat table:
-A PREROUTING -d 63.47.50.16 -p tcp -m tcp --dport 10001 -j DNAT
--to-destination 192.168.1.15


Andrew

--
Zope Managed Hosting
Software Engineer
Zope Corporation
(540) 361-1700 

> -----Original Message-----
> From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On
> Behalf Of James Pifer
> Sent: Wednesday, August 31, 2005 1:53 PM
> To: CentOS
> Subject: [CentOS] iptables help request
> 
> I have a server running on CentOS that sits being another firewall. I
> want to forward a certain ports to another server, but only for a
> handful of addresses. Can anyone assist with an example rule of this?
> 
> For example, let's say I wanted requests from 24.83.77.24 and
> 63.47.50.16 on port 10001 to forward to internal server 192.168.1.15
> 
> All other requests for THAT port would be rejected or dropped.
> 
> Anyone willing to give me an example rule that would allow this to be
> forwarded?
> 
> I appreciate any help.
> 
> Thanks,
> James
> 
> 
> 
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos