totp
This commit is contained in:
@@ -1,20 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# O road warrior ou gateway client liga a vpn gateway
|
||||
# Via a rede externa 193.136.212.0/24
|
||||
# Rede externa (enp0s8)
|
||||
|
||||
bash VM_CONFIG.sh
|
||||
|
||||
# --- interfaces --- #
|
||||
# --- configuração --- #
|
||||
source VM_CONFIG.sh
|
||||
ifconfig enp0s8 193.136.212.10 netmask 255.255.255.0
|
||||
route add default gw 193.136.212.1 # default gateway LIKE A SHEEP
|
||||
route add default gw 193.136.212.1
|
||||
|
||||
# copiar tudo
|
||||
# --- vpn client --- #
|
||||
vpn_dir="/etc/openvpn/client/"
|
||||
cp ca/ta.key $vpn_dir
|
||||
cp ca/ca.crt $vpn_dir
|
||||
cp ca/user.key $vpn_dir
|
||||
cp ca/user.crt $vpn_dir
|
||||
cp client.conf $vpn_dir
|
||||
cp conf/client.conf $vpn_dir
|
||||
openvpn --config "${vpn_dir}/client.conf"
|
||||
|
||||
Reference in New Issue
Block a user