# ==============================
# 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 yum install iptables-services -y
sudo systemctl stop firewalld
sudo systemctl disable firewalld
sudo systemctl mask firewalld
sudo systemctl enable iptables
sudo iptables -F
sudo ifconfig enp0s8 $ip netmask $mask24
sudo ip route add 23.214.219.128/25 via $routerIp
sudo route add default gw $routerIp
# aliasing
sudo ip addr add $ftp dev enp0s8
sudo ip addr add $datastore dev enp0s8

# netcar
dmz=23.214.219.129
nc -l &
nc -v -s $ftp       -p 53   $dmz
nc -v -s $datastore -p 888  $dmz
