FANDOM


OpenVPN Edit

Static Key OpenVPN

OpenVPN HowTo

#apt-get install openvpn easy-rsa
#make-cadir cafiles
#cd cafiles
#nano ./vars
#source ./vars
#./clean-all
#./build-ca
#./build-key-server servername
#./build-key username
#./build-dh

server-side:

#nano /etc/openvpn/minta.conf

#Comment
dev tun0
ca ca.crt
key server1.key
cert server1.crt
dh dh2048.pem

server 192.168.0.0 255.255.255.0
ifconfig-pool-persist ip_cimek.txt

client-side:

#nano /etc/openvpn/minta.conf

#Comment
remote 192.168.50.1
dev tun0
client
ca ca.rt
cert user1.srt
key user1.key

start service both side:

service openvpn start
tail -f /var/log/syslog

find Edit

Find files:

find ./ -name 'file.h'

Find text in files (print line number and filenames):

grep -n -H -r "text" ./