OpenVPN Server Debian + Mikrotik
Posted by Achmad 'Rhoma' Fanani (kanny) on 9/08/2015 07:22:00 PM
apt-get update
apt-get install openvpn
cp -a /usr/share/doc/openvpn/examples/easy-rsa /etc/openvpn/
cd /etc/openvpn/easy-rsa/2.0
source ./vars
./clean-all
./build-ca
./build-key-server mikrotik
openvpn --genkey --secret keys/ta.key
mkdir /etc/openvpn/keys
cp /etc/openvpn/easy-rsa/2.0/keys/{ca.crt, mikrotik.crt, mikrotik.key} /etc/openvpn/keys
service openvpn restart
iptables -t nat -I POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
iptables -t nat -I POSTROUTING -s 10.9.0.0/24 -o eth0 -j MASQUERADE
iptables-save
Related Posts
Nama Anda
New Johny WussUpdated: 9/08/2015 07:22:00 PM
0 komentar:
Post a Comment