Public IP to Private for VPN type work
Hi,
OK here's the setup. I have my main router (RedHat 9) with 4 network cards in it. One card links to my 2mb pipe and has a public IP address, one goes to my servers and has a block of 255 public ips routed to it, and the other two go off to the internal networks.
Now here's what i'm trying to do. I want to link one of the 255 public block ip's I have to one of my private ips further down my network so that external users can type in that public IP and get to this VPN type box (but it is a web interface I believe not a dialin type VPN) that has that private IP. Now, I've had it kinda working by this I mean that anyone on the internal network that types in that external IP address can get the login screen for the VPN box but anyone outside the network can not.
To link the public and private IP's i have used the following command:
ip route add nat xxx.xxx.xxx.xxx via xx.xx.xx.xx
ip rule add nat xxx.xxx.xxx.xxx from xx.xx.xx.xx
So, any ideas???
|