removed \r

This commit is contained in:
vascoalvesxyz
2026-03-16 12:08:15 +00:00
parent a6ad9873b7
commit d67e3d034c
2 changed files with 57 additions and 57 deletions

48
DMZ.sh
View File

@@ -1,24 +1,24 @@
# ============================== # ==============================
# DMZ # DMZ
# NETWORK: 23.214.219.128/25 # NETWORK: 23.214.219.128/25
# ============================== # ==============================
ip=23.214.219.129 ip=23.214.219.129
routerIp=23.214.219.254 routerIp=23.214.219.254
mask25=255.255.255.128 mask25=255.255.255.128
dns=23.214.219.130 dns=23.214.219.130
mail=23.214.219.132 mail=23.214.219.132
vpn_nw=23.214.219.133 vpn_nw=23.214.219.133
www=23.214.219.134 www=23.214.219.134
smtp=23.214.219.135 smtp=23.214.219.135
sudo iptables -F sudo iptables -F
sudo ifconfig enp0s8 $ip netmask $mask25 sudo ifconfig enp0s8 $ip netmask $mask25
sudo ip route add default via $routerIp sudo ip route add default via $routerIp
nc -l -V $dns 53 nc -l -v $dns 53
nc -l -V $mail 888 nc -l -v $mail 888
nc -l -V $vpn_nw 443 nc -l -v $vpn_nw 443
nc -l -V $smtp 587 nc -l -v $smtp 587
nc -l -V $www 80 nc -l -v $www 80
nc -l -V $www 443 nc -l -v $www 443

View File

@@ -1,33 +1,33 @@
# ============================== # ==============================
# INTERNAL # INTERNAL
# NETWORK: 192.168.10.0/24 # NETWORK: 192.168.10.0/24
# ============================== # ==============================
ip=192.168.10.1 ip=192.168.10.1
routerIp=192.168.10.254 routerIp=192.168.10.254
mask24=255.255.255.0 mask24=255.255.255.0
ftp=192.168.10.2 ftp=192.168.10.2
datastore=192.168.10.3 datastore=192.168.10.3
dhcpClient=192.168.10.4 dhcpClient=192.168.10.4
sudo iptables -F sudo iptables -F
sudo ifconfig enp0s8 $ip netmask $mask24 sudo ifconfig enp0s8 $ip netmask $mask24
sudo ip route add default via $routerIp sudo ip route add default via $routerIp
# Dummy Services # Dummy Services
nc -l -V $ftp 53 nc -l -v $ftp 53
nc -l -V $datastore 888 nc -l -v $datastore 888
# Test DMZ # Test DMZ
dns=23.214.219.130 dns=23.214.219.130
mail=23.214.219.132 mail=23.214.219.132
vpn_nw=23.214.219.133 vpn_nw=23.214.219.133
www=23.214.219.134 www=23.214.219.134
smtp=23.214.219.135 smtp=23.214.219.135
nc -N -V $dns 53 nc -N -v $dns 53
nc -N -V $mail 888 nc -N -v $mail 888
nc -N -V $vpn_nw 443 nc -N -v $vpn_nw 443
nc -N -V $smtp 587 nc -N -v $smtp 587
nc -N -V $www 80 nc -N -v $www 80
nc -N -V $www 443 nc -N -v $www 443