Linking Public IP to a Private IP
Hi guys,
I am trying to sort a problem on a Wireless WAN with IP linking. I have a customer who want to have a public IP address for VPN access and web serving or whatever. The problem is that the network is run using private IP addresses and is NATed at the main router. I have IPtables running on the main router with rule to allow every card to talk to every other card (really basic stuff) and I have added a rule to the routing table which is as follows:
ip route add nat (public IP) via (private IP)
ip rule add nat (public IP) from (private IP)
Now if I type the public IP from anywhere in side the network I can get to the private IP but if I type the public IP from the internet I get nothing. Anyone got any ideas? Is what Im trying even possible?
|