
/file get test.html contents
/file set test.html contents=[/file get test.html contents; :find "http://"; :pick replace with "https://"]
file edit value-name=contents test.txt
why on earth when try to restore from 1036 (v7.i now buy a new route r2116 and cant put it new version, its just a hard work to do it. I will try to manually upgrade it to v7 like you propose.
Writing code without first researching and testing it can lead to errors and unexpected results. I hope I helpedYou answered to everything except why you write things at random without even trying them.
{{ :local c3 "PC4SEARCH"; :foreach i in=[/ip dhcp-server lease find where host-name~$c3] do={:put ([/ip dhcp-server lease get $i address])} }} file=test.txt
sorry i didnt mean for exclusive leaders firewall devices like tenda, zyxel, dlink and tplinkFortiGate != "anyother"
?This script deletes all static DHCP
yeah, ofcourse, also didnt work with single interfaceIs your WAN interface in your WAN Interface list?
i am aware of that, just posting cause is it possible to have this type of problem and be something elseCheck the UTP cable ...
/interface bridge filter add chain=forward mac-protocol=ip ip-protocol=tcp dst-address=yourIP/32 dst-port=3389 action=drop
YesWhat devices do you mean? MikroTik routers?
/ip firewall filter
add chain=forward dst-port=443 protocol=tcp tls-host=*youtube* action=reject src-address=10.10.10.0/24 place-before 0l
thats it, thanks!You are missing quotes. Try
So this should give what you looking for:Code: Select all:put [/ip firewall nat find where dst-address="192.168.0.0/16"]
Code: Select all:put [/ip firewall nat get [find where dst-address="192.168.0.0/16"] src-address]
nopeDo you get any output from running this form command prompt
Code: Select all:put [/ip firewall nat find where dst-address=192.168.0.0/16]
What that use for?Trusted checkbox appears twice in Bridge -> Ports -> <interface> -> General
yeah, its there.Could you please create another script which will contain only the /ip ipsec installed-sa print file=ipsec append part and nothing else, run that new one twice, and see whether the file ipsec.txt is there and what is it contents?
:global srcIP [/ip firewall nat get [find where dst-address="192.168.0.0/16"] src-address];
:global test ([:pick [/ip arp print as-value where mac-address~"^AA:BB:CC"] 0]->"address")
thats it! THANKS!!!!No, "~" is a matching operator. Use it instead of "=", not as a part of the expression - which may be as simple as "^B0:6E:BF", meaning any string that begins with "B0:6E:BF".
/ip ipsec installed-sa flush
set winbox address=x.x.x.x/29