OpenVZ Forum


Home » General » Support » my 1st VPS doesnt see the Internet !!
Re: my 1st VPS doesnt see the Internet !! [message #46259 is a reply to message #46258] Sun, 06 May 2012 14:42 Go to previous message
HuMaN-BiEnG is currently offline  HuMaN-BiEnG
Messages: 10
Registered: May 2012
Location: Egypt
Junior Member
dzimi wrote on Sat, 05 May 2012 14:49
Your setup won't work. Use private IP address for your VPS and then create a SNAT or MASQ for your private IP.

Like:

iptables -A POSTROUTING -t nat -o eth0 -s YOUR_PRIVE_IP -j SNAT --to YOUR_PUBLIC_IP

don't forget to switch ip_forwarding to 1


Hello dzimi,

first thank you man for your kind reply

why it wont work ?

is it because itsnt allowed to use HN IP in a vps ?

should i have to use SNAT ? because we just want to use public IP addresses for each VPS ?

ps, i have already enabled ip forwarding in the main HN

please accept my best regards,,



 
Read Message icon4.gif
Read Message
Read Message
Previous Topic: which kernel to install
Next Topic: how to prevent vps from abusing HN resources !!
Goto Forum:
  


Current Time: Thu Sep 05 05:25:40 GMT 2024

Total time taken to generate the page: 0.05993 seconds