removido
(usa Nenhuma)
Enviado em 19/04/2018 - 15:36h
Boa tarde Pessoal, é possível refatorar as regras abaixo e reduzir os números de linhas ou coloca-las no segundo scripts e chama-la pelo script principal que esta no systemd.
iptables -t nat -A PREROUTING -s 198.20.1.36 -d 182.6.34.81 -p TCP --dport 30050 -j DNAT --to 192.168.0.5:30050
iptables -t nat -A PREROUTING -s 198.20.1.36 -d 182.6.34.81 -p TCP --dport 30051 -j DNAT --to 192.168.0.5:30051
iptables -t nat -A PREROUTING -s 198.20.1.36 -d 182.6.34.81 -p TCP --dport 30043 -j DNAT --to 192.168.0.5:30043
iptables -t nat -A PREROUTING -s 198.20.1.38 -d 182.6.34.81 -p TCP --dport 30050 -j DNAT --to 192.168.0.5:30050
iptables -t nat -A PREROUTING -s 198.20.1.38 -d 182.6.34.81 -p TCP --dport 30051 -j DNAT --to 192.168.0.5:30051
iptables -t nat -A PREROUTING -s 198.20.1.38 -d 182.6.34.81 -p TCP --dport 30043 -j DNAT --to 192.168.0.5:30043
iptables -t nat -A PREROUTING -s 198.20.6.40 -d 182.6.34.81 -p TCP --dport 30050 -j DNAT --to 192.168.0.5:30050
iptables -t nat -A PREROUTING -s 198.20.6.40 -d 182.6.34.81 -p TCP --dport 30051 -j DNAT --to 192.168.0.5:30051
iptables -t nat -A PREROUTING -s 198.20.6.40 -d 182.6.34.81 -p TCP --dport 30043 -j DNAT --to 192.168.0.5:30043
iptables -t nat -A PREROUTING -s 198.20.7.42 -d 182.6.34.81 -p TCP --dport 30050 -j DNAT --to 192.168.0.5:30050
iptables -t nat -A PREROUTING -s 198.20.7.42 -d 182.6.34.81 -p TCP --dport 30051 -j DNAT --to 192.168.0.5:30051
iptables -t nat -A PREROUTING -s 198.20.7.42 -d 182.6.34.81 -p TCP --dport 30043 -j DNAT --to 192.168.0.5:30043
iptables -t nat -A PREROUTING -s 198.20.5.31 -d 182.6.34.81 -p TCP --dport 30050 -j DNAT --to 192.168.0.5:30050
iptables -t nat -A PREROUTING -s 198.20.5.31 -d 182.6.34.81 -p TCP --dport 30051 -j DNAT --to 192.168.0.5:30051
iptables -t nat -A PREROUTING -s 198.20.5.31 -d 182.6.34.81 -p TCP --dport 30043 -j DNAT --to 192.168.0.5:30043
iptables -t nat -A PREROUTING -s 198.20.5.32 -d 182.6.34.81 -p TCP --dport 30050 -j DNAT --to 192.168.0.5:30050
iptables -t nat -A PREROUTING -s 198.20.5.32 -d 182.6.34.81 -p TCP --dport 30051 -j DNAT --to 192.168.0.5:30051
iptables -t nat -A PREROUTING -s 198.20.5.32 -d 182.6.34.81 -p TCP --dport 30043 -j DNAT --to 192.168.0.5:30043
iptables -t nat -A PREROUTING -s 198.20.5.33 -d 182.6.34.81 -p TCP --dport 30050 -j DNAT --to 192.168.0.5:30050
iptables -t nat -A PREROUTING -s 198.20.5.33 -d 182.6.34.81 -p TCP --dport 30051 -j DNAT --to 192.168.0.5:30051
iptables -t nat -A PREROUTING -s 198.20.5.33 -d 182.6.34.81 -p TCP --dport 30043 -j DNAT --to 192.168.0.5:30043
iptables -t nat -A PREROUTING -s 198.20.5.34 -d 182.6.34.81 -p TCP --dport 30050 -j DNAT --to 192.168.0.5:30050
iptables -t nat -A PREROUTING -s 198.20.5.34 -d 182.6.34.81 -p TCP --dport 30051 -j DNAT --to 192.168.0.5:30051
iptables -t nat -A PREROUTING -s 198.20.5.34 -d 182.6.34.81 -p TCP --dport 30043 -j DNAT --to 192.168.0.5:30043
iptables -t nat -A PREROUTING -s 198.20.5.35 -d 182.6.34.81 -p TCP --dport 30050 -j DNAT --to 192.168.0.5:30050
iptables -t nat -A PREROUTING -s 198.20.5.35 -d 182.6.34.81 -p TCP --dport 30051 -j DNAT --to 192.168.0.5:30051
iptables -t nat -A PREROUTING -s 198.20.5.35 -d 182.6.34.81 -p TCP --dport 30043 -j DNAT --to 192.168.0.5:30043
iptables -t nat -A PREROUTING -s 198.20.5.36 -d 182.6.34.81 -p TCP --dport 30050 -j DNAT --to 192.168.0.5:30050
iptables -t nat -A PREROUTING -s 198.20.5.36 -d 182.6.34.81 -p TCP --dport 30051 -j DNAT --to 192.168.0.5:30051
iptables -t nat -A PREROUTING -s 198.20.5.36 -d 182.6.34.81 -p TCP --dport 30043 -j DNAT --to 192.168.0.5:30043
iptables -t nat -A PREROUTING -s 198.20.5.37 -d 182.6.34.81 -p TCP --dport 30050 -j DNAT --to 192.168.0.5:30050
iptables -t nat -A PREROUTING -s 198.20.5.37 -d 182.6.34.81 -p TCP --dport 30051 -j DNAT --to 192.168.0.5:30051
iptables -t nat -A PREROUTING -s 198.20.5.37 -d 182.6.34.81 -p TCP --dport 30043 -j DNAT --to 192.168.0.5:30043
iptables -t nat -A PREROUTING -s 198.20.5.38 -d 182.6.34.81 -p TCP --dport 30050 -j DNAT --to 192.168.0.5:30050
iptables -t nat -A PREROUTING -s 198.20.5.38 -d 182.6.34.81 -p TCP --dport 30051 -j DNAT --to 192.168.0.5:30051
iptables -t nat -A PREROUTING -s 198.20.5.38 -d 182.6.34.81 -p TCP --dport 30043 -j DNAT --to 192.168.0.5:30043
se algum puder me ajudar, eu fico agradecida.
:)
bjs