Ip rules updated and added default gw

This commit is contained in:
jelly Tomas
2026-03-20 10:05:19 +00:00
parent 2bdecf3cb1
commit 612eeec3b2
3 changed files with 16 additions and 16 deletions

10
DMZ.sh
View File

@@ -7,10 +7,10 @@ routerIp=23.214.219.254
mask25=255.255.255.128
dns=23.214.219.130
mail=23.214.219.132
vpn_gw=23.214.219.133
www=23.214.219.134
smtp=23.214.219.135
mail=23.214.219.131
vpn_gw=23.214.219.132
www=23.214.219.133
smtp=23.214.219.134
dnsPort=53
mailPort=888
@@ -26,7 +26,7 @@ sudo systemctl enable iptables
sudo iptables -F
sudo ifconfig enp0s8 $ip netmask $mask25
sudo ip route add 192.168.10.0/24 via $routerIp
sudo add default gw $routerIp
# alias dos ips
sudo ip addr add $dns dev enp0s8
sudo ip addr add $mail dev enp0s8