SlideShare a Scribd company logo
** ## description is written on page 3
Steps to follow to install OpenVpn on CentOS:
1. Install CentOS on server.
2. Update CentOS “yum update –y”
3. Enable epel repo
• wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
• wget http://rpms.famillecollet.com/enterprise/remi-release-6*.rpm
• sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
4. yum install screen openvpn nano rsync tar curl bridge-utils python logrotate –y ##
5. Bridging
echo '
tap="tap0 tap1 tap2 tap3"
brctl addbr br0
brctl addif br0 eth1 #this is the local lan port
for t in $tap; do
openvpn --mktun --dev $t
done
for t in $tap; do
brctl addif br0 $t
done
for t in $tap; do
ifconfig $t 0.0.0.0 promisc up
done
/usr/bin/screen -d -m ping 10.8.1.1'>/etc/rc.local **
chkconfig NetworkManager off
chkconfig network on
chkconfig logrotate on
chkconfig sshd on
chkconfig openvpn on
service NetworkManager stop
service network stop
service sshd restart
cd /etc/sysconfig/network-scripts
** ## description is written on page 3
tap=“tap0 tap1 tap2 tap3”
brctl addbr br0
brctl addif br0 eth1
for t in $tap; do
openvpn --mktun --dev $t
done
for t in $tap; do
brctl addif br0 $t
done
for t in $tap; do
ifconfig $t 0.0.0.0 promisc up
done
/usr/bin/screen -d -m ping 10.8.1.1 -y
echo "
DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
DNS1=8.8.8.8
GATEWAY=172.16.0.2 #local ip addr of endian firewall
IPADDR= xxx.xxx.xxx.xxx #virtual ip address of openvpn server
NETMASK=255.240.0.0
ONBOOT=yes
SEARCH=nccl.iitbhu.ac.in" > ifcfg-br0 **
echo "
TYPE=Ethernet
BOOTPROTO=none
IPADDR=xxx.xxx.xxx.xxx #local ip addr ex. 10.3.101.xxx
PREFIX=8
GATEWAY=10.3.101.1
DNS1=8.8.8.8
DEFROUTE=no
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
ONBOOT=yes
HWADDR=xx:xx:xx:xx:xx:xx #get eth0 hardware addr from ifconfig
" > ifcfg-eth0 **
echo "
HWADDR= xx:xx:xx:xx:xx:xx #get eth1 hardware addr from ifconfig
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
ONBOOT=yes
BRIDGE=br0" >ifcfg-eth1 ** #connected to firewall
** ## description is written on page 3
6. Copy easy-rsa scripts to openvpn folder /etc/openvpn/
7. add execute permission to all scripts of easy-rsa “cd /etc/openvpn/eas*” “ chmod a+x *”
8. Modify “vars” file according to the use. Set dh parameter to 1024. “gedit vars”
9. run vars file “source ./vars” “./clean-all”
10. Build dh parameter using “./build-dh”
11. Build CA using “./build-ca _nameOfCA_”
12. Build server using “./build-key-server _nameOfServer_”
13. Build client key using “./build-key _nameOfClient_”
14. “iptables-restore</root/iptables-working” (copy iptables-working file to root). This file could
to saved to any folder, after saving go to same directly in terminal and use above command.
15. “chkconfig openvpn on”
16. “chkconfig ssh on”
17. “rm –rf /etc/sysconfig/network-scripts/ifcfg-A*”
18. “nano /etc/sysconfig/selinux” Edit enforcing to permissive and reboot
If network do not work, then use “service NetworkManager restart” “service network restart”
Keys are all written in “/etc/openvpn/easy-rsa/keys”. Copy required ca.crt, server.key, server.crt,
dh1024.pem file to “/etc/openvpn”.
** these scripts are to be written on the file given at the last line. If the command do not work
fine used “gedit _pathNameGivenAtLastLine_” given after ‘>’ symbol.
## If openvpn do not get installed even after enable epel repo then follow this webpage
http://www.drmagu.com/openvpn-introduction-and-installation-on-centos-432.htm
** ## description is written on page 3
19. Write server config file as follows:
proto tcp #tcp protocol used
dev tap’x’ #edit virtual port for each file 0,1,2,3
local 10.3.101.22 #local ip of server **
port X #port used i.e 1194, 1195, 1196, 1197
server-bridge 172.16.0.1 255.240.0.0 172.18.x.x 172.18.x.x **
ifconfig-pool-persist ipp0.txt #ensure that particular ip is given to a person
and change ipp’x’.txt i.e 0,1,2,3
push "route 172.16.0.0 255.240.0.0"
push "route 10.0.0.0 255.0.0.0"
push "dhcp-option DNS 208.67.220.220"
push "dhcp-option DNS 208.67.222.222"
push "redirect-gateway def1 bypass-dhcp"
ca ca.crt #CA certificate file name
cert server00.crt #Server certificate file name
key server00.key #Server key file name
dh dh1024.pem #dh file name
client-to-client
keepalive 5 100
comp-lzo
max-clients 5
persist-key
persist-tun
status openvpn-status-1194.log
log-append openvpn.log
verb 4
## save file as server-‘x’.conf in /etc/openvpn folder
#1194,1195,1196,1197
** ## description is written on page 3
20. W
r
i
t
e
c
l
i
e
n
t
c
o
n
f
i
g
f
i
l
e
a
s
f
o
l
l
o
w
s
:
client
dev tap
proto tcp
remote 10.3.101.22 1194 **
remote 10.3.101.22 1195 **
remote 10.3.101.22 1196 **
remote 10.3.101.22 1197 **
remote-random
resolv-retry infinite
nobind
persist-key
persist-tun
comp-lzo
verb 3
ca ca.crt
key test.key
cert test.crt
## save file as client.ovpn for windows users and client.conf for linus users
## This file along with the client-cert, client-key and ca.crt are needed by
user. This configuration file is common for all the users
## these files you will find in /etc/openvpn/easy-rsa/key
** ## description is written on page 3

More Related Content

What's hot

Cluster setup multinode_aws
Cluster setup multinode_awsCluster setup multinode_aws
Cluster setup multinode_aws
sparrowAnalytics.com
 
Puppet
PuppetPuppet
PFIセミナー資料 H27.10.22
PFIセミナー資料 H27.10.22PFIセミナー資料 H27.10.22
PFIセミナー資料 H27.10.22
Yuya Takei
 
using Virtualbox NAT and shared folder
using Virtualbox NAT and shared folderusing Virtualbox NAT and shared folder
using Virtualbox NAT and shared folder
Yingshiuan Pan
 
Vagrant勉強会 チュートリアル編
Vagrant勉強会 チュートリアル編Vagrant勉強会 チュートリアル編
Vagrant勉強会 チュートリアル編
Yasuyuki Sugai
 
Openstack kilo installation using rdo
Openstack kilo installation using rdoOpenstack kilo installation using rdo
Openstack kilo installation using rdoNarasimha sreeram
 
How to twist a IPv6 over Bluetooth (6lowpan)
How to twist a IPv6 over Bluetooth (6lowpan) How to twist a IPv6 over Bluetooth (6lowpan)
How to twist a IPv6 over Bluetooth (6lowpan)
Naoto MATSUMOTO
 
nouka inventry manager
nouka inventry managernouka inventry manager
nouka inventry manager
Toshiaki Baba
 
Lamp configuration u buntu 10.04
Lamp configuration   u buntu 10.04Lamp configuration   u buntu 10.04
Lamp configuration u buntu 10.04mikehie
 
Openstack installation using rdo
Openstack installation using rdoOpenstack installation using rdo
Openstack installation using rdo
Narasimha sreeram
 
От sysV к systemd
От sysV к systemdОт sysV к systemd
От sysV к systemd
Denis Kovalev
 
Programming OpenRISC on Altera De0_nano
Programming OpenRISC on Altera De0_nanoProgramming OpenRISC on Altera De0_nano
Programming OpenRISC on Altera De0_nanoYi-Chiao
 
Install zpanel on linux server in 5 minutes
Install zpanel on linux server in 5 minutesInstall zpanel on linux server in 5 minutes
Install zpanel on linux server in 5 minutes
Samuel Guebo
 
Creación de máquinas virtuales basada en kernel usando qemu y virsh
Creación de máquinas virtuales basada en kernel usando qemu y virshCreación de máquinas virtuales basada en kernel usando qemu y virsh
Creación de máquinas virtuales basada en kernel usando qemu y virsh
Jonathan Franchesco Torres Baca
 
Openstack installation using rdo multi node
Openstack installation using rdo multi nodeOpenstack installation using rdo multi node
Openstack installation using rdo multi node
Narasimha sreeram
 
Great Hiroshima with Python 170830
Great Hiroshima with Python 170830Great Hiroshima with Python 170830
Great Hiroshima with Python 170830
Takuya Nishimoto
 
Zookeper
ZookeperZookeper
LinuxをインストールしてWebサーバーを立ち上げてみよう【OSC2018 Tokyo/Spring】
LinuxをインストールしてWebサーバーを立ち上げてみよう【OSC2018 Tokyo/Spring】LinuxをインストールしてWebサーバーを立ち上げてみよう【OSC2018 Tokyo/Spring】
LinuxをインストールしてWebサーバーを立ち上げてみよう【OSC2018 Tokyo/Spring】
Masataka Tsukamoto
 
Haproxy - zastosowania
Haproxy - zastosowaniaHaproxy - zastosowania
Haproxy - zastosowania
Łukasz Jagiełło
 

What's hot (20)

Cluster setup multinode_aws
Cluster setup multinode_awsCluster setup multinode_aws
Cluster setup multinode_aws
 
Puppet
PuppetPuppet
Puppet
 
PFIセミナー資料 H27.10.22
PFIセミナー資料 H27.10.22PFIセミナー資料 H27.10.22
PFIセミナー資料 H27.10.22
 
using Virtualbox NAT and shared folder
using Virtualbox NAT and shared folderusing Virtualbox NAT and shared folder
using Virtualbox NAT and shared folder
 
Vagrant勉強会 チュートリアル編
Vagrant勉強会 チュートリアル編Vagrant勉強会 チュートリアル編
Vagrant勉強会 チュートリアル編
 
Openstack kilo installation using rdo
Openstack kilo installation using rdoOpenstack kilo installation using rdo
Openstack kilo installation using rdo
 
How to twist a IPv6 over Bluetooth (6lowpan)
How to twist a IPv6 over Bluetooth (6lowpan) How to twist a IPv6 over Bluetooth (6lowpan)
How to twist a IPv6 over Bluetooth (6lowpan)
 
nouka inventry manager
nouka inventry managernouka inventry manager
nouka inventry manager
 
Lamp configuration u buntu 10.04
Lamp configuration   u buntu 10.04Lamp configuration   u buntu 10.04
Lamp configuration u buntu 10.04
 
Openstack installation using rdo
Openstack installation using rdoOpenstack installation using rdo
Openstack installation using rdo
 
От sysV к systemd
От sysV к systemdОт sysV к systemd
От sysV к systemd
 
Programming OpenRISC on Altera De0_nano
Programming OpenRISC on Altera De0_nanoProgramming OpenRISC on Altera De0_nano
Programming OpenRISC on Altera De0_nano
 
Install zpanel on linux server in 5 minutes
Install zpanel on linux server in 5 minutesInstall zpanel on linux server in 5 minutes
Install zpanel on linux server in 5 minutes
 
Creación de máquinas virtuales basada en kernel usando qemu y virsh
Creación de máquinas virtuales basada en kernel usando qemu y virshCreación de máquinas virtuales basada en kernel usando qemu y virsh
Creación de máquinas virtuales basada en kernel usando qemu y virsh
 
Ahmed vic
Ahmed vicAhmed vic
Ahmed vic
 
Openstack installation using rdo multi node
Openstack installation using rdo multi nodeOpenstack installation using rdo multi node
Openstack installation using rdo multi node
 
Great Hiroshima with Python 170830
Great Hiroshima with Python 170830Great Hiroshima with Python 170830
Great Hiroshima with Python 170830
 
Zookeper
ZookeperZookeper
Zookeper
 
LinuxをインストールしてWebサーバーを立ち上げてみよう【OSC2018 Tokyo/Spring】
LinuxをインストールしてWebサーバーを立ち上げてみよう【OSC2018 Tokyo/Spring】LinuxをインストールしてWebサーバーを立ち上げてみよう【OSC2018 Tokyo/Spring】
LinuxをインストールしてWebサーバーを立ち上げてみよう【OSC2018 Tokyo/Spring】
 
Haproxy - zastosowania
Haproxy - zastosowaniaHaproxy - zastosowania
Haproxy - zastosowania
 

Similar to 3 manual installation of open vpn

OpenVPN
OpenVPNOpenVPN
Linux Containers From Scratch
Linux Containers From ScratchLinux Containers From Scratch
Linux Containers From Scratch
joshuasoundcloud
 
Alta disponibilidad en GNU/Linux
Alta disponibilidad en GNU/LinuxAlta disponibilidad en GNU/Linux
Alta disponibilidad en GNU/Linux
Guillermo Salas Macias
 
Vagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptopVagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptop
Lorin Hochstein
 
9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training
videos
 
DNS (BIND) on CentOS
DNS (BIND) on CentOSDNS (BIND) on CentOS
DNS (BIND) on CentOS
Md Tanjil Islam Bappi
 
3. configuring a compute node for nfv
3. configuring a compute node for nfv3. configuring a compute node for nfv
3. configuring a compute node for nfv
videos
 
NAS Botnet Revealed - Mining Bitcoin
NAS Botnet Revealed - Mining Bitcoin NAS Botnet Revealed - Mining Bitcoin
NAS Botnet Revealed - Mining Bitcoin
Davide Cioccia
 
X64服务器 lnmp服务器部署标准 new
X64服务器 lnmp服务器部署标准 newX64服务器 lnmp服务器部署标准 new
X64服务器 lnmp服务器部署标准 newYiwei Ma
 
ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions
Chanaka Lasantha
 
Testing your infrastructure with litmus
Testing your infrastructure with litmusTesting your infrastructure with litmus
Testing your infrastructure with litmus
Bram Vogelaar
 
k8s practice 2023.pptx
k8s practice 2023.pptxk8s practice 2023.pptx
k8s practice 2023.pptx
wonyong hwang
 
Running Docker in Development & Production (#ndcoslo 2015)
Running Docker in Development & Production (#ndcoslo 2015)Running Docker in Development & Production (#ndcoslo 2015)
Running Docker in Development & Production (#ndcoslo 2015)
Ben Hall
 
Intel DPDK Step by Step instructions
Intel DPDK Step by Step instructionsIntel DPDK Step by Step instructions
Intel DPDK Step by Step instructions
Hisaki Ohara
 
LinuxKit Swarm Nodes
LinuxKit Swarm NodesLinuxKit Swarm Nodes
LinuxKit Swarm Nodes
Moby Project
 
PENYELESAIAN SOAL UKK/UPK TAHUN 2018 Paket 3 oleh Walid Umar
PENYELESAIAN SOAL UKK/UPK TAHUN 2018 Paket 3 oleh Walid UmarPENYELESAIAN SOAL UKK/UPK TAHUN 2018 Paket 3 oleh Walid Umar
PENYELESAIAN SOAL UKK/UPK TAHUN 2018 Paket 3 oleh Walid Umar
Walid Umar
 
Installing odoo v8 from github
Installing odoo v8 from githubInstalling odoo v8 from github
Installing odoo v8 from github
Antony Gitomeh
 
2015.10.05 Updated > Network Device Development - Part 1: Switch
2015.10.05 Updated > Network Device Development - Part 1: Switch2015.10.05 Updated > Network Device Development - Part 1: Switch
2015.10.05 Updated > Network Device Development - Part 1: Switch
Cheng-Yi Yu
 

Similar to 3 manual installation of open vpn (20)

OpenVPN
OpenVPNOpenVPN
OpenVPN
 
Linux Containers From Scratch
Linux Containers From ScratchLinux Containers From Scratch
Linux Containers From Scratch
 
Alta disponibilidad en GNU/Linux
Alta disponibilidad en GNU/LinuxAlta disponibilidad en GNU/Linux
Alta disponibilidad en GNU/Linux
 
Vagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptopVagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptop
 
9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training
 
DNS (BIND) on CentOS
DNS (BIND) on CentOSDNS (BIND) on CentOS
DNS (BIND) on CentOS
 
Openvpn
OpenvpnOpenvpn
Openvpn
 
3. configuring a compute node for nfv
3. configuring a compute node for nfv3. configuring a compute node for nfv
3. configuring a compute node for nfv
 
NAS Botnet Revealed - Mining Bitcoin
NAS Botnet Revealed - Mining Bitcoin NAS Botnet Revealed - Mining Bitcoin
NAS Botnet Revealed - Mining Bitcoin
 
X64服务器 lnmp服务器部署标准 new
X64服务器 lnmp服务器部署标准 newX64服务器 lnmp服务器部署标准 new
X64服务器 lnmp服务器部署标准 new
 
ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions
 
Kickstart
KickstartKickstart
Kickstart
 
Testing your infrastructure with litmus
Testing your infrastructure with litmusTesting your infrastructure with litmus
Testing your infrastructure with litmus
 
k8s practice 2023.pptx
k8s practice 2023.pptxk8s practice 2023.pptx
k8s practice 2023.pptx
 
Running Docker in Development & Production (#ndcoslo 2015)
Running Docker in Development & Production (#ndcoslo 2015)Running Docker in Development & Production (#ndcoslo 2015)
Running Docker in Development & Production (#ndcoslo 2015)
 
Intel DPDK Step by Step instructions
Intel DPDK Step by Step instructionsIntel DPDK Step by Step instructions
Intel DPDK Step by Step instructions
 
LinuxKit Swarm Nodes
LinuxKit Swarm NodesLinuxKit Swarm Nodes
LinuxKit Swarm Nodes
 
PENYELESAIAN SOAL UKK/UPK TAHUN 2018 Paket 3 oleh Walid Umar
PENYELESAIAN SOAL UKK/UPK TAHUN 2018 Paket 3 oleh Walid UmarPENYELESAIAN SOAL UKK/UPK TAHUN 2018 Paket 3 oleh Walid Umar
PENYELESAIAN SOAL UKK/UPK TAHUN 2018 Paket 3 oleh Walid Umar
 
Installing odoo v8 from github
Installing odoo v8 from githubInstalling odoo v8 from github
Installing odoo v8 from github
 
2015.10.05 Updated > Network Device Development - Part 1: Switch
2015.10.05 Updated > Network Device Development - Part 1: Switch2015.10.05 Updated > Network Device Development - Part 1: Switch
2015.10.05 Updated > Network Device Development - Part 1: Switch
 

Recently uploaded

Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
ShahidSultan24
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
PrashantGoswami42
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 

Recently uploaded (20)

Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 

3 manual installation of open vpn

  • 1. ** ## description is written on page 3 Steps to follow to install OpenVpn on CentOS: 1. Install CentOS on server. 2. Update CentOS “yum update –y” 3. Enable epel repo • wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm • wget http://rpms.famillecollet.com/enterprise/remi-release-6*.rpm • sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm 4. yum install screen openvpn nano rsync tar curl bridge-utils python logrotate –y ## 5. Bridging echo ' tap="tap0 tap1 tap2 tap3" brctl addbr br0 brctl addif br0 eth1 #this is the local lan port for t in $tap; do openvpn --mktun --dev $t done for t in $tap; do brctl addif br0 $t done for t in $tap; do ifconfig $t 0.0.0.0 promisc up done /usr/bin/screen -d -m ping 10.8.1.1'>/etc/rc.local ** chkconfig NetworkManager off chkconfig network on chkconfig logrotate on chkconfig sshd on chkconfig openvpn on service NetworkManager stop service network stop service sshd restart cd /etc/sysconfig/network-scripts
  • 2. ** ## description is written on page 3 tap=“tap0 tap1 tap2 tap3” brctl addbr br0 brctl addif br0 eth1 for t in $tap; do openvpn --mktun --dev $t done for t in $tap; do brctl addif br0 $t done for t in $tap; do ifconfig $t 0.0.0.0 promisc up done /usr/bin/screen -d -m ping 10.8.1.1 -y echo " DEVICE=br0 TYPE=Bridge BOOTPROTO=static DNS1=8.8.8.8 GATEWAY=172.16.0.2 #local ip addr of endian firewall IPADDR= xxx.xxx.xxx.xxx #virtual ip address of openvpn server NETMASK=255.240.0.0 ONBOOT=yes SEARCH=nccl.iitbhu.ac.in" > ifcfg-br0 ** echo " TYPE=Ethernet BOOTPROTO=none IPADDR=xxx.xxx.xxx.xxx #local ip addr ex. 10.3.101.xxx PREFIX=8 GATEWAY=10.3.101.1 DNS1=8.8.8.8 DEFROUTE=no IPV4_FAILURE_FATAL=yes IPV6INIT=no ONBOOT=yes HWADDR=xx:xx:xx:xx:xx:xx #get eth0 hardware addr from ifconfig " > ifcfg-eth0 ** echo " HWADDR= xx:xx:xx:xx:xx:xx #get eth1 hardware addr from ifconfig TYPE=Ethernet BOOTPROTO=none DEFROUTE=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no ONBOOT=yes BRIDGE=br0" >ifcfg-eth1 ** #connected to firewall
  • 3. ** ## description is written on page 3 6. Copy easy-rsa scripts to openvpn folder /etc/openvpn/ 7. add execute permission to all scripts of easy-rsa “cd /etc/openvpn/eas*” “ chmod a+x *” 8. Modify “vars” file according to the use. Set dh parameter to 1024. “gedit vars” 9. run vars file “source ./vars” “./clean-all” 10. Build dh parameter using “./build-dh” 11. Build CA using “./build-ca _nameOfCA_” 12. Build server using “./build-key-server _nameOfServer_” 13. Build client key using “./build-key _nameOfClient_” 14. “iptables-restore</root/iptables-working” (copy iptables-working file to root). This file could to saved to any folder, after saving go to same directly in terminal and use above command. 15. “chkconfig openvpn on” 16. “chkconfig ssh on” 17. “rm –rf /etc/sysconfig/network-scripts/ifcfg-A*” 18. “nano /etc/sysconfig/selinux” Edit enforcing to permissive and reboot If network do not work, then use “service NetworkManager restart” “service network restart” Keys are all written in “/etc/openvpn/easy-rsa/keys”. Copy required ca.crt, server.key, server.crt, dh1024.pem file to “/etc/openvpn”. ** these scripts are to be written on the file given at the last line. If the command do not work fine used “gedit _pathNameGivenAtLastLine_” given after ‘>’ symbol. ## If openvpn do not get installed even after enable epel repo then follow this webpage http://www.drmagu.com/openvpn-introduction-and-installation-on-centos-432.htm
  • 4. ** ## description is written on page 3 19. Write server config file as follows: proto tcp #tcp protocol used dev tap’x’ #edit virtual port for each file 0,1,2,3 local 10.3.101.22 #local ip of server ** port X #port used i.e 1194, 1195, 1196, 1197 server-bridge 172.16.0.1 255.240.0.0 172.18.x.x 172.18.x.x ** ifconfig-pool-persist ipp0.txt #ensure that particular ip is given to a person and change ipp’x’.txt i.e 0,1,2,3 push "route 172.16.0.0 255.240.0.0" push "route 10.0.0.0 255.0.0.0" push "dhcp-option DNS 208.67.220.220" push "dhcp-option DNS 208.67.222.222" push "redirect-gateway def1 bypass-dhcp" ca ca.crt #CA certificate file name cert server00.crt #Server certificate file name key server00.key #Server key file name dh dh1024.pem #dh file name client-to-client keepalive 5 100 comp-lzo max-clients 5 persist-key persist-tun status openvpn-status-1194.log log-append openvpn.log verb 4 ## save file as server-‘x’.conf in /etc/openvpn folder #1194,1195,1196,1197
  • 5. ** ## description is written on page 3 20. W r i t e c l i e n t c o n f i g f i l e a s f o l l o w s : client dev tap proto tcp remote 10.3.101.22 1194 ** remote 10.3.101.22 1195 ** remote 10.3.101.22 1196 ** remote 10.3.101.22 1197 ** remote-random resolv-retry infinite nobind persist-key persist-tun comp-lzo verb 3 ca ca.crt key test.key cert test.crt ## save file as client.ovpn for windows users and client.conf for linus users ## This file along with the client-cert, client-key and ca.crt are needed by user. This configuration file is common for all the users ## these files you will find in /etc/openvpn/easy-rsa/key
  • 6. ** ## description is written on page 3