Home > HowTo > VPN openvpn howto linux

VPN openvpn howto linux

November 17th, 2016 Leave a comment Go to comments

yum install -y openvpn
modprobe iptable_nat
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 10.4.0.1/2 -o eth0 -j MASQUERADE
cd /etc/openvpn/
openvpn –genkey –secret vpn.key
vi openvpn.conf
openvpn.conf
port 8080
proto tcp-server
dev tun1
ifconfig 10.4.0.1 10.4.0.2
status server-tcp.log
verb 4
secret vpn.key

Categories: HowTo Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

VAMOVE *

*