Files
FSI/INTERNAL.sh
vascoalvesxyz a6ad9873b7 Internal config
2026-03-16 11:31:13 +00:00

34 lines
666 B
Bash

# ==============================
# 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