Skip to content

Instantly share code, notes, and snippets.

View brunoalmeida406's full-sized avatar

Bruno Almeida brunoalmeida406

  • ElvenWorks
  • são paulo
View GitHub Profile
cd /etc/openvpn/easy-rsa/keys
cp ca.crt client1.crt client1.key PASTA_USUÁRIO_ACESSO_FTP/.
cp /usr/share/doc/openvpn-2.2.2/sample-config-files/client.conf PASTA_USUÁRIO_ACESSO_FTP/.
cp /etc/openvpn/dh1024.pem PASTA_USUÁRIO_ACESSO_FTP/.
sed -i s/'net.ipv4.ip_forward = 0'/'net.ipv4.ip_forward = 1'/g /etc/sysctl.conf
sysctl -p
cd /etc/openvpn/
cp easy-rsa/keys/ca.crt .
cp easy-rsa/keys/server.{key,crt} .
cp easy-rsa/keys/dh1024.pem .
cp /usr/share/doc/openvpn-2.2.2/sample-config-files/server.conf /etc/openvpn/.
sh build-key client1
sh build-key client2
sh build-key-server server
. ./vars
sh clean-all
sh build-ca
cp -av easy-rsa /etc/openvpn/
mv 2.0/* .
rm -rf 1.0 2.0