From d67e3d034cf6171d22d4ec78397f6023eca003c8 Mon Sep 17 00:00:00 2001 From: vascoalvesxyz Date: Mon, 16 Mar 2026 12:08:15 +0000 Subject: [PATCH] removed \r --- DMZ.sh | 48 +++++++++++++++++++------------------- INTERNAL.sh | 66 ++++++++++++++++++++++++++--------------------------- 2 files changed, 57 insertions(+), 57 deletions(-) diff --git a/DMZ.sh b/DMZ.sh index 52fde7b..ac1b97e 100644 --- a/DMZ.sh +++ b/DMZ.sh @@ -1,24 +1,24 @@ -# ============================== -# DMZ -# NETWORK: 23.214.219.128/25 -# ============================== -ip=23.214.219.129 -routerIp=23.214.219.254 -mask25=255.255.255.128 - -dns=23.214.219.130 -mail=23.214.219.132 -vpn_nw=23.214.219.133 -www=23.214.219.134 -smtp=23.214.219.135 - -sudo iptables -F -sudo ifconfig enp0s8 $ip netmask $mask25 -sudo ip route add default via $routerIp - -nc -l -V $dns 53 -nc -l -V $mail 888 -nc -l -V $vpn_nw 443 -nc -l -V $smtp 587 -nc -l -V $www 80 -nc -l -V $www 443 +# ============================== +# DMZ +# NETWORK: 23.214.219.128/25 +# ============================== +ip=23.214.219.129 +routerIp=23.214.219.254 +mask25=255.255.255.128 + +dns=23.214.219.130 +mail=23.214.219.132 +vpn_nw=23.214.219.133 +www=23.214.219.134 +smtp=23.214.219.135 + +sudo iptables -F +sudo ifconfig enp0s8 $ip netmask $mask25 +sudo ip route add default via $routerIp + +nc -l -v $dns 53 +nc -l -v $mail 888 +nc -l -v $vpn_nw 443 +nc -l -v $smtp 587 +nc -l -v $www 80 +nc -l -v $www 443 diff --git a/INTERNAL.sh b/INTERNAL.sh index 36a62e6..725d99c 100644 --- a/INTERNAL.sh +++ b/INTERNAL.sh @@ -1,33 +1,33 @@ -# ============================== -# INTERNAL -# NETWORK: 192.168.10.0/24 -# ============================== - -ip=192.168.10.1 -routerIp=192.168.10.254 -mask24=255.255.255.0 - -ftp=192.168.10.2 -datastore=192.168.10.3 -dhcpClient=192.168.10.4 - -sudo iptables -F -sudo ifconfig enp0s8 $ip netmask $mask24 -sudo ip route add default via $routerIp - -# Dummy Services -nc -l -V $ftp 53 -nc -l -V $datastore 888 - -# Test DMZ -dns=23.214.219.130 -mail=23.214.219.132 -vpn_nw=23.214.219.133 -www=23.214.219.134 -smtp=23.214.219.135 -nc -N -V $dns 53 -nc -N -V $mail 888 -nc -N -V $vpn_nw 443 -nc -N -V $smtp 587 -nc -N -V $www 80 -nc -N -V $www 443 +# ============================== +# INTERNAL +# NETWORK: 192.168.10.0/24 +# ============================== + +ip=192.168.10.1 +routerIp=192.168.10.254 +mask24=255.255.255.0 + +ftp=192.168.10.2 +datastore=192.168.10.3 +dhcpClient=192.168.10.4 + +sudo iptables -F +sudo ifconfig enp0s8 $ip netmask $mask24 +sudo ip route add default via $routerIp + +# Dummy Services +nc -l -v $ftp 53 +nc -l -v $datastore 888 + +# Test DMZ +dns=23.214.219.130 +mail=23.214.219.132 +vpn_nw=23.214.219.133 +www=23.214.219.134 +smtp=23.214.219.135 +nc -N -v $dns 53 +nc -N -v $mail 888 +nc -N -v $vpn_nw 443 +nc -N -v $smtp 587 +nc -N -v $www 80 +nc -N -v $www 443