Boa tarde,
Pessoal, estou com dificuldade em transportar estas regras do iptables para o Mikrotik.
Será que alguém pode me dar uma mão?
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 5060 -j DNAT --to 172.16.0.123
iptables -t nat -A POSTROUTING -d 172.16.0.123 -j SNAT --to 172.16.0.1
iptables -t nat -A PREROUTING -p udp -i eth0 --dport 5060 -j DNAT --to 172.16.0.123
iptables -t nat -A POSTROUTING -d 172.16.0.123 -j SNAT --to 172.16.0.1
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 3478 -j DNAT --to 172.16.0.123
iptables -t nat -A POSTROUTING -d 172.16.0.123 -j SNAT --to 172.16.0.1
iptables -t nat -A PREROUTING -p udp -i eth0 --dport 3478 -j DNAT --to 172.16.0.123
iptables -t nat -A POSTROUTING -d 172.16.0.123 -j SNAT --to 172.16.0.1
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 10000:20000 -j DNAT --to 172.16.0.123
iptables -t nat -A PREROUTING -p udp -i eth0 --dport 10000:20000 -j DNAT --to 172.16.0.123
iptables -t nat -A PREROUTING -p udp -m multiport -i eth0 --dport 5060,10000:20000 -j DNAT --to 172.16.0.123
iptables -A FORWARD -p udp -s 172.16.0.123 -j ACCEPT
iptables -A FORWARD -p udp -m multiport --dport 5060,10000:20000 -d 172.16.0.123 -j ACCEPT
iptables -t nat -A PREROUTING -m udp -p udp -i eth0 --destination-port 5060 -j REDIRECT
iptables -A INPUT -m udp -p udp -i eth0 --dport 5060 -j ACCEPT
iptables -A INPUT -m udp -p udp -i eth0 --dport 10000:20000 -j ACCEPT
Obrigado.