In the PREROUTING chain, you said for example :
iptables -A PREROUTING -s 203.122.51.179 -j DNAT --to 172.16.1.2
iptables -A PREROUTING -s 203.122.51.180 -j DNAT --to 172.16.1.3
....
or more accurate :
iptables -A PREROUTING -s 203.122.51.181 -p tcp --dport 80 -j DNAT --to 172.16.1.4
...
I think it should be correct for your configuration.
Don't forget to authorize the traffic in the FORWARD chain .
Fabien
Amit Pasari a écrit :
Thanks John, Let me explain on My LAN i have ip address - 172.16.1.1 subnet - 255.255.0.0 on My WAN i have ipaddress - 203.122.51.178 subnet - 255.255.255.240
Now , my clients want to have public / Live ip instead of private ips which i am giving as many of my clients uses webserver , and other applications which people from outside world needs to access .
I can redirect ports for one clients but how about 10 clients wanting the same .
So i need to give them a public ip so that all the traffic can be redirected their ip .
Regards Amit
At 09:54 PM 1/2/04, you wrote:
On Fri, 2004-01-02 at 11:30, Amit Pasari wrote:
> Hello,
> I am using Redhat 8.0 with iptables to provide my client internet services
> . Everything is going well .
> i have been giving private ips of 172.16.0.0 series to my clients .
> But now some of my clients need public ips . i do have many public ips with
> me .so can somebody tell how can i give public ips to my clients .
>
> Thanks & Regards
> Amit
> Orangeinfoways.com
Could you please clarify what you mean by giving ips to your clients? Thanks - John -- John A. Sullivan III Chief Technology Officer Nexus Management +1 207-985-7880 john.sullivan@xxxxxxxxxxxxx --- If you are interested in helping to develop a GPL enterprise class VPN/Firewall/Security device management console, please visit http://iscs.sourceforge.net