Share this tool with your friends
 ______  _     _        ______         ______  _______ _______ 
(____  \| |   | |  /\  |  ___ \   /\  |  ___ \(_______|_______)©
 ____)  ) |   | | /  \ | |   | | /  \ | |   | |_____   _       
|  __  (| |   | |/ /\ \| |   | |/ /\ \| |   | |  ___) | |      
| |__)  ) |___| | |__| | |   | | |__| | |   | | |_____| |_____ 
|______/ \______|______|_|   |_|______|_|   |_|_______)\______)
© Copyright 2021 BuanaNET SECURE! By Agus Ramadhani - fb.me/buananet.pbun

Remote IP Public Static For Secondary Gateway Mikrotik

Script Generator Result
####################################################################
# Remote IP Public Static For Secondary Gateway Mikrotik
# Date/Time:
# By BuanaNET Secure! https://fb.me/buananet.pbun
####################################################################

/ip firewall mangle
add action=mark-connection chain=input in-interface="ether2-Astinet" new-connection-mark=ip-public passthrough=yes
add action=mark-routing chain=output connection-mark=ip-public new-routing-mark=ip-public passthrough=no

/ip route
add check-gateway=ping gateway="192.168.10.1" routing-mark=ip-public

Copy-Paste into the Terminal, make sure this Script in the Mangle on the Top position!