bulklshit
This commit is contained in:
@@ -14,10 +14,13 @@ source VM_CONFIG.sh
|
|||||||
|
|
||||||
# --- variaveis aqui pf joao fr fr fr aaaaa --- #
|
# --- variaveis aqui pf joao fr fr fr aaaaa --- #
|
||||||
helloworld="print"
|
helloworld="print"
|
||||||
|
|
||||||
if_fora="enp0s8"
|
if_fora="enp0s8"
|
||||||
if_dentro="enp0s9"
|
|
||||||
ip_fora="193.136.212.1"
|
ip_fora="193.136.212.1"
|
||||||
|
|
||||||
|
if_dentro="enp0s9"
|
||||||
ip_dentro="10.60.0.3"
|
ip_dentro="10.60.0.3"
|
||||||
|
|
||||||
mega_tunel="tun0"
|
mega_tunel="tun0"
|
||||||
ip_mega_tunel="10.8.0.1/24"
|
ip_mega_tunel="10.8.0.1/24"
|
||||||
|
|
||||||
@@ -30,6 +33,7 @@ echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf
|
|||||||
sysctl -p /etc/sysctl.conf
|
sysctl -p /etc/sysctl.conf
|
||||||
|
|
||||||
# --- nat forwardin de vpn para clientes --- #
|
# --- nat forwardin de vpn para clientes --- #
|
||||||
|
#
|
||||||
iptables -A INPUT -p udp --dport 1194 -j ACCEPT # :O
|
iptables -A INPUT -p udp --dport 1194 -j ACCEPT # :O
|
||||||
iptables -A FORWARD -i $mega_tunel -o $if_dentro -j ACCEPT # :P
|
iptables -A FORWARD -i $mega_tunel -o $if_dentro -j ACCEPT # :P
|
||||||
iptables -A FORWARD -i $if_dentro -o $mega_tunel -j ACCEPT # ;)
|
iptables -A FORWARD -i $if_dentro -o $mega_tunel -j ACCEPT # ;)
|
||||||
|
|||||||
@@ -15,4 +15,3 @@ auth-user-pass
|
|||||||
cipher AES-256-GCM
|
cipher AES-256-GCM
|
||||||
auth SHA256
|
auth SHA256
|
||||||
tls-auth /etc/openvpn/client/ta.key 1
|
tls-auth /etc/openvpn/client/ta.key 1
|
||||||
key-direction 1
|
|
||||||
|
|||||||
1
vpn.conf
1
vpn.conf
@@ -13,4 +13,3 @@ server 10.60.0.0 255.255.255.0
|
|||||||
verb 4
|
verb 4
|
||||||
plugin /usr/lib64/openvpn/plugins/openvpn-plugin-auth-pam.so openvpn
|
plugin /usr/lib64/openvpn/plugins/openvpn-plugin-auth-pam.so openvpn
|
||||||
tls-auth /etc/openvpn/server/ta.key 0
|
tls-auth /etc/openvpn/server/ta.key 0
|
||||||
key-direction 0
|
|
||||||
|
|||||||
Reference in New Issue
Block a user