xezen
January 23, 2013, 12:40pm
1
is this possable
2 mikrotik routers a and b
with routerboard a script to read from a read data on b
example a logs into be and reads ip firewall mangle ($a) get remote address where comment=xxxxxxx
:put info in routerboard a in ip firewall mangle where comment=xxxxxxx address=($a)
something like that
skot
January 23, 2013, 6:08pm
2
There are probably a few ways to do this. I’ve done something similar using SSH and fetch: (http://forum.mikrotik.com/t/basic-scripting-retrieving-variables-from-remote-rb/55125/1 ). This would require DSA keys if you want it automated.
It could also be automated using fetch and auto.rsc files with a example similar to above…
xezen
March 8, 2013, 12:41pm
3
i cant seem to find the remote ip i want to use the remote ip in a firewall rule how can i get this ip via script
skot
March 8, 2013, 6:22pm
4
:local remoteIP;
/interface pptp-server monitor pptp-ZW0079 once do={
:set remoteIP $“remote-address”;
}
/ip firewall filter add src-address=$remoteIP …