cat /dev/net/tun
yum install gcc make rpm-build autoconf.noarch zlib-devel pam-devel openssl-devel
wget http://openvpn.net/release/lzo-1.08-4.rf.src.rpm
yum install wget
32 bit
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
64 bit
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpmbuild --rebuild lzo-1.08-4.rf.src.rpm
rpm -Uvh lzo-*.rpm
rpm -Uvh rpmforge-release*
yum update
yum install openvpn
cp -R /usr/share/doc/openvpn-2.2.2/easy-rsa/ /etc/openvpn/
wget https://github.com/downloads/OpenVPN/easy-rsa/easy-rsa-2.2.0_master.tar.gz
tar -zxvf easy-rsa-2.2.0_master.tar.gz
cp -R easy-rsa-2.2.0_master/easy-rsa/ /etc/openvpn/
cd /etc/openvpn/easy-rsa/2.0
chmod 755 *
source ./vars
./vars
./clean-all
./build-ca
./build-key-server server
./build-dh
nano /etc/openvpn/server.conf
local 128.199.214.46
port 1194
proto tcp
dev tun
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
server 10.9.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 4.2.2.1"
keepalive 5 30
comp-lzo
persist-key
persist-tun
status server-tcp.log
verb 3
service openvpn restart
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 10.9.0.0/24 -o eth0 -j MASQUERADE
======================
# cd /etc/openvpn/easy-rsa/2.0/
# . ./vars
source ./vars
./build-key abitsani
# nano /etc/openvpn/easy-rsa/2.0/keys/abitsani.ovpn
client
dev tun
proto tcp
remote a.buzzmechat.com.flashconnect.com.chickenkiller.com 1194
resolv-retry infinite
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
http-proxy 10.1.89.130 8000
http-proxy-retry
persist-key
persist-tun
ca ca.crt
cert abitsani.crt
key abitsani.key
;auth-user-pass
comp-lzo
verb 3
+++++++++++++++++++ Tambahan ++++++++++++++++
useradd -s /bin/false angga
passwd angga
======================
# cd /etc/openvpn/easy-rsa/2.0/
# . ./vars
source ./vars
./build-key flashconnect
# nano /etc/openvpn/easy-rsa/2.0/keys/flashconnect.ovpn
-----------------
client
dev tun
proto tcp
remote my.telkomsel.com.flashconnect.com.chickenkiller.com 1194
resolv-retry infinite
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
http-proxy 10.1.89.130 8000
http-proxy-retry
persist-key
persist-tun
ca ca.crt
cert flashconnect.crt
key flashconnect.key
;auth-user-pass
comp-lzo
verb 3
----------------
client
dev tun
proto tcp
remote opx.opera.com.flashconnect.com.ignorelist.com 1194
resolv-retry infinite
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
http-proxy 10.1.89.130 8000
http-proxy-retry
persist-key
persist-tun
ca ca.crt
cert abitsani.crt
key abitsani.key
auth-user-pass
comp-lzo
verb 3
----------------------------
--------
# cd /etc/openvpn/easy-rsa/2.0/
# . ./vars
source ./vars
./build-key sakti
# nano /etc/openvpn/easy-rsa/2.0/keys/sakti.ovpn
--------
client
dev tun
proto tcp
remote opx.opera.com.flashconnect.com.ignorelist.com 1194
resolv-retry infinite
http-proxy-retry
http-proxy 127.0.0.1 1991
route 10.1.89.130 255.255.255.255 net_gateway
route 0.0.0.0 0.0.0.0
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
http-proxy 10.1.89.130 8000
http-proxy-retry
persist-key
persist-tun
ca ca.crt
cert sakti.crt
key sakti.key
;auth-user-pass
comp-lzo
verb 3
------
client
dev tun
proto tcp
remote opx.opera.com.flashconnect.com.ignorelist.com 1194
resolv-retry infinite
http-proxy-retry
http-proxy 127.0.0.1 1991
route 10.1.89.130 255.255.255.255 net_gateway
route 0.0.0.0 0.0.0.0
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
auth-user-pass
comp-lzo
reneg-sec 0
verb 3
kemuadian download ca.crt, abitsani.crt and abitsani.key abitsani.ovpn (/etc/openvpn/easy-
rsa/2.0/keys)
==========
webmin
# /etc/init.d/webmin start
# /etc/init.d/webmin stop
# /etc/init.d/webmin restart
# /etc/init.d/webmin status
============
Fix error openvpn
# yum downgrade openvpn
# service openvpn restart
Saat anda melakukan restart pastikan respon nya [OK]
Shutting down openvpn: [ OK ]
Starting openvpn: [OK]
==========
adduser -m -s /bin/false trial
passwd trial
=========
etc-openvpn-easy-rsa-2.0-keys
==========
root
***********
=========
shutdown -r now
=========
chkconfig openvpn on
==========
lihat ca.crt
# cat /etc/openvpn/easy-rsa/2.0/keys/ca.crt
yum install gcc make rpm-build autoconf.noarch zlib-devel pam-devel openssl-devel
wget http://openvpn.net/release/lzo-1.08-4.rf.src.rpm
yum install wget
32 bit
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
64 bit
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpmbuild --rebuild lzo-1.08-4.rf.src.rpm
rpm -Uvh lzo-*.rpm
rpm -Uvh rpmforge-release*
yum update
yum install openvpn
cp -R /usr/share/doc/openvpn-2.2.2/easy-rsa/ /etc/openvpn/
wget https://github.com/downloads/OpenVPN/easy-rsa/easy-rsa-2.2.0_master.tar.gz
tar -zxvf easy-rsa-2.2.0_master.tar.gz
cp -R easy-rsa-2.2.0_master/easy-rsa/ /etc/openvpn/
cd /etc/openvpn/easy-rsa/2.0
chmod 755 *
source ./vars
./vars
./clean-all
./build-ca
./build-key-server server
./build-dh
nano /etc/openvpn/server.conf
local 128.199.214.46
port 1194
proto tcp
dev tun
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
server 10.9.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 4.2.2.1"
keepalive 5 30
comp-lzo
persist-key
persist-tun
status server-tcp.log
verb 3
service openvpn restart
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 10.9.0.0/24 -o eth0 -j MASQUERADE
======================
# cd /etc/openvpn/easy-rsa/2.0/
# . ./vars
source ./vars
./build-key abitsani
# nano /etc/openvpn/easy-rsa/2.0/keys/abitsani.ovpn
client
dev tun
proto tcp
remote a.buzzmechat.com.flashconnect.com.chickenkiller.com 1194
resolv-retry infinite
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
http-proxy 10.1.89.130 8000
http-proxy-retry
persist-key
persist-tun
ca ca.crt
cert abitsani.crt
key abitsani.key
;auth-user-pass
comp-lzo
verb 3
+++++++++++++++++++ Tambahan ++++++++++++++++
useradd -s /bin/false angga
passwd angga
======================
# cd /etc/openvpn/easy-rsa/2.0/
# . ./vars
source ./vars
./build-key flashconnect
# nano /etc/openvpn/easy-rsa/2.0/keys/flashconnect.ovpn
-----------------
client
dev tun
proto tcp
remote my.telkomsel.com.flashconnect.com.chickenkiller.com 1194
resolv-retry infinite
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
http-proxy 10.1.89.130 8000
http-proxy-retry
persist-key
persist-tun
ca ca.crt
cert flashconnect.crt
key flashconnect.key
;auth-user-pass
comp-lzo
verb 3
----------------
client
dev tun
proto tcp
remote opx.opera.com.flashconnect.com.ignorelist.com 1194
resolv-retry infinite
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
http-proxy 10.1.89.130 8000
http-proxy-retry
persist-key
persist-tun
ca ca.crt
cert abitsani.crt
key abitsani.key
auth-user-pass
comp-lzo
verb 3
----------------------------
--------
# cd /etc/openvpn/easy-rsa/2.0/
# . ./vars
source ./vars
./build-key sakti
# nano /etc/openvpn/easy-rsa/2.0/keys/sakti.ovpn
--------
client
dev tun
proto tcp
remote opx.opera.com.flashconnect.com.ignorelist.com 1194
resolv-retry infinite
http-proxy-retry
http-proxy 127.0.0.1 1991
route 10.1.89.130 255.255.255.255 net_gateway
route 0.0.0.0 0.0.0.0
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
http-proxy 10.1.89.130 8000
http-proxy-retry
persist-key
persist-tun
ca ca.crt
cert sakti.crt
key sakti.key
;auth-user-pass
comp-lzo
verb 3
------
client
dev tun
proto tcp
remote opx.opera.com.flashconnect.com.ignorelist.com 1194
resolv-retry infinite
http-proxy-retry
http-proxy 127.0.0.1 1991
route 10.1.89.130 255.255.255.255 net_gateway
route 0.0.0.0 0.0.0.0
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
auth-user-pass
comp-lzo
reneg-sec 0
verb 3
kemuadian download ca.crt, abitsani.crt and abitsani.key abitsani.ovpn (/etc/openvpn/easy-
rsa/2.0/keys)
==========
webmin
# /etc/init.d/webmin start
# /etc/init.d/webmin stop
# /etc/init.d/webmin restart
# /etc/init.d/webmin status
============
Fix error openvpn
# yum downgrade openvpn
# service openvpn restart
Saat anda melakukan restart pastikan respon nya [OK]
Shutting down openvpn: [ OK ]
Starting openvpn: [OK]
==========
adduser -m -s /bin/false trial
passwd trial
=========
etc-openvpn-easy-rsa-2.0-keys
==========
root
***********
=========
shutdown -r now
=========
chkconfig openvpn on
==========
lihat ca.crt
# cat /etc/openvpn/easy-rsa/2.0/keys/ca.crt
Posting Komentar