I need urgent help:
I need to forward a some ports on a real IP to private IP
ort
eth0: xxx:xxx:xxx:xxx (real IP)
eth1: 192.168.1.1
working environment: Redhat Linux 5
i need to forward
xxx:xxx:xxx:xxx:2500 to 192.168.1.20:443
xxx:xxx:xxx:xxx:2501 to 192.168.1.30:443
xxx:xxx:xxx:xxx:2502 to 192.168.1.40:443
so that port 443 on those 3 local IPs (...20,30,40) can be accessible
individually from real (out) world through xxx:xxx:xxx:xxx:250n
i tried this way:
iptables -t nat -I PREROUTING -i eth0 -d xxx.xxx.xxx.xxx --dport 2500 -
j DNAT --to 192.168.1.20:443
but it's not working, i need urgent solution... please help