Sunday, 29 May 2011

OpenVPN - Installation

Install Script for OpenVZ VPS - CENTOS / DEBIAN / UBUNTU


Download Link:


Download Link:

After running the above scripts surfing/browsing to or other sites will not allow you.

You have to execute the below commands on the VPS

#ifconfig -a | grep P-t-P

inet addr: P-t-P: Mask:
inet addr: P-t-P: Bcast: Mask:
inet addr:8X.8X.2XX.XX P-t-P:8X.8X.2XX.XX Bcast:8X.8X.2XX.XX Mask:

Note: P-t-P: - For tun0

#iptables -t nat -A POSTROUTING -s -o eth0 -j MASQUERADE
#/etc/init.d/iptables save
#/etc/init.d/iptables restart


#iptables -A POSTROUTING --table nat -o eth0 -j MASQUERADE
#/etc/init.d/iptables save
#/etc/init.d/iptables restart

Note: Please make sure to enable the TUN / TAP / PPPD / IPTABLES on your VPS


Anonymous said...

My version of Debian seems not to include TUN / TAP driver , how could I add this module to the kernel?

unixnethost said...

You have to contact the VPS provider to enable the TUN/TAP module...

Post a Comment