How to install OpenVPN on Linux?

apt-get install openvpn openssl udev
tar -xvzf openvpn-setup.tar.gz
cp openvpn-setup/* /etc/openvpn/
cd /etc/openvpn
./setup
cp client.ovpn client-config/
mkdir -p /dev/net
mknod /dev/net/tun c 10 200
chmod 600 /dev/net/tun
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o venet0 -j MASQUERADE
(if any error the solve by install iptables module)
modprobe ipt_MASQUERADE
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

List of Common Available Ports On Cloud And VPS Servers

Inside our Cloud and VPS hosting services we want to make assured our clienteles have the skill...

Cloud Hosting VS. Shared Hosting

Shared hosting is the general hosting solution. But using a shared hosting solution user has to...

How to block IP using .htaccess file?

1) You may block entrance to your website from particular IP addresses using .htaccess file.2)...

How to Delete a cPanel Account From SSH

You can also terminate an account using SSH/command line if wanted using the following script....

How to Delete a cPanel From WHM

Eliminating an existing cPanel account is a very fast and easy process, but be advised this move...