156. Mikrotik VRRP How to Sync/Clone Firewall Config R1 to R2


You can contact me: plus.google.com/+PhallaCCMT; youtube.com/phallaccmt; facebook.com/Phalla.CCMT; twitter.com/PhallaCCMT and Phalla.CCMT@gmail.com

Script:

#R1
/ip firewall export file=ip-firewall
:log info "Firewall Export success"

---------------------------------

#R2
/tool fetch mode=ftp address=192.168.120.135 src-path=ip-firewall.rsc user=admin password=123
delay 5s
:log info "Downloaded"

/ip firewall filter remove [/ip firewall filter find]
/ip firewall nat remove [/ip firewall nat find]
/ip firewall mangle remove [/ip firewall mangle find]
/ip firewall address-list remove [/ip firewall address-list find]
/ip firewall layer7-protocol remove [/ip firewall layer7-protocol find]

/import ip-firewall.rsc
:log info "Firewall Import success"


Previous
Next Post »