iptables help request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxx [mailto:centos-bounces@xxxxxxxxxx] On
> Behalf Of James Pifer
> Sent: Wednesday, August 31, 2005 1:53 PM
> To: CentOS
> Subject:  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@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux