I’m having some trouble with enabling/disabling nat rules with scripts.
nat rules
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; DNS redirect i Mikrotika
chain=dstnat action=redirect to-ports=53 protocol=udp dst-port=53
1 ;;; DNS redirect i Mikrotika
chain=dstnat action=redirect to-ports=53 protocol=tcp dst-port=53
2 X ;;; 80 porto redirect i proxy
chain=dstnat action=redirect to-ports=8080 protocol=tcp dst-address=!192.168.89.0/24 dst-port=80
3 ;;; default configuration
chain=srcnat action=masquerade out-interface=ether1-gateway
the script that enables proxy forwarding
Flags: I - invalid
0 name="disable-block" owner="admin" policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive last-started=may/14/2010 12:04:30 run-count=7
source=
/ip firewall address-list
enable 5; :log info message="ijungem 89.14"; /ip firewall address-list
enable 8; :log info message="ijungem 89.17"; /ip firewall address-list
enable 9; :log info message="ijungem 89.18"; /ip firewall nat enable 2 ; :log info message=ijunge;
I have done some basic testing and the script enables fw rules i filter but not in nat if anyone has some insight on what is wrong. /ip firewall nat enable 2 ; /ip firewall nat enable names=2; they both work from console but not from script.
thnx for the help.