Community discussions

MikroTik App

Search found 36 matches

byWublide
Tue Mar 14, 2023 3:19 pm
Forum:Scripting
Topic:Help with if statement script
Replies:4
Views:291

Re: Help with if statement script

you've been beautifully clear, it worked out flawlessly, thank you a lot @rextended
byWublide
Tue Mar 14, 2023 2:40 pm
Forum:Scripting
Topic:Help with if statement script
Replies:4
Views:291

Re: Help with if statement script

You need to translate YOUR need into code... Pratically you want FIND inside $mac array if at least $leaseActMAC is present at least one time... :local mac {"00:11:22:33:44:AA"; "00:11:22:33:44:BB"; "00:11:22:33:44:CC"} :if ([:find $mac $leaseActMAC] > 0) do={ ( do not...
byWublide
Tue Mar 14, 2023 1:48 pm
Forum:Scripting
Topic:Help with if statement script
Replies:4
Views:291

Help with if statement script

I need to create an if statement based on a condition that the $leaseActMAC is not equal to some mac address in a fixed array, how do I achieve that? :local mac {"00:11:22:33:44:AA"; "00:11:22:33:44:BB"; "00:11:22:33:44:CC"} :if ($leaseActMAC != $mac) do { is this code ...
byWublide
Mon Feb 27, 2023 4:56 pm
Forum:General
Topic:socks5 proxy dns problem - ROS 7.7
Replies:7
Views:789

再保险:socks5 proxy dns problem - ROS 7.7

好吧,但是这可能是用正则表达式过滤。
Other socks proxies also do this.

The nslookup command also does this - nslookup google.de delivers the IP address, nslookup 127.127.127.127 delivers the hostname.
I completely agree, this needs to be sorted out without any user workaround
byWublide
Thu Feb 23, 2023 1:56 pm
Forum:General
Topic:Logging prefix is a mess
Replies:30
Views:7755

Re: Logging prefix is a mess

I've been going back and forth trying different log systems, and always get reminded by the useless log format of RouterOS. At least map the severity levels automatically instead of requiring a fixed value. I could work around that by creating separate log actions, but that's stupid. on my syslog s...
byWublide
Sun Feb 19, 2023 4:59 pm
Forum:General
Topic:Logger command
Replies:3
Views:269

Re: Logger command

thank you so much, I didn't happen to find that man page when googling
byWublide
Sun Feb 19, 2023 2:38 pm
Forum:General
Topic:Logger command
Replies:3
Views:269

Logger command

There's an equivalent of logger command on routeros? I need to craft some log message for testing purpose
byWublide
Tue Jul 12, 2022 7:06 pm
Forum:Scripting
Topic:need help with script syntax
Replies:5
Views:594

与可控硅Re:需要帮助ipt syntax

for invert the results, you can not only "invert" the ckecks results, but also change the operator from "or" to "and" when the "else" is executed? When both are false: when A NOT containing the ip AND A NOT containig the ip.... A or B true @ true = true ( exe...
byWublide
Sat Jul 09, 2022 2:57 pm
Forum:Scripting
Topic:need help with script syntax
Replies:5
Views:594

与可控硅Re:需要帮助ipt syntax

thank you for joining the topic guys! that's brilliant, thank you so much one last question: I would like to not use the else in the if statement but to do that I suppose it's more clean to check if $testip is NOT present (so the IF statement is true if it's not present). How can I achieve that? usi...
byWublide
Fri Jul 08, 2022 4:21 pm
Forum:Scripting
Topic:need help with script syntax
Replies:5
Views:594

need help with script syntax

I need to find what's wrong with this code: :do { :local checkdns [:resolve "my.dns.domain" server=x.y.z.x] :if ([/ip dhcp-server network get value-name=dns-server number=0] !="x.y.z.x" or [/ip dhcp-server network get value-name=dns-server number=2] !="x.y.z.x") do={ SO...
byWublide
Tue Nov 02, 2021 2:53 am
Forum:Announcements
Topic:v6.49(稳定)被释放!
Replies:219
Views:85954

Re: v6.49 [stable] is released!

There is no need to update it every time nor to downgrade it now. The firmware is just the bootloader that initializes the hardware and loads RouterOS. Originally it had a separate version number that changes only very occasionally, now it always has the same version number as the RouterOS it comes...
byWublide
Sat Oct 30, 2021 12:17 pm
Forum:Announcements
Topic:v6.49(稳定)被释放!
Replies:219
Views:85954

Re: v6.49 [stable] is released!

No this means you upgraded the firmware from version 6.49 and not (yet) from 6.48.3 (or you did not yet reboot after that).
so now I'm on 6.49 (until reboot) with 6.48.3 packages? is that possible?
byWublide
Sat Oct 30, 2021 11:30 am
Forum:Announcements
Topic:v6.49(稳定)被释放!
Replies:219
Views:85954

Re: v6.49 [stable] is released!

The updating of firmware depends on the setting under system->routerboard->settings. I advise to keep that "auto upgrade" setting OFF and do the upgrade at your own convenience. That keeps you away from bricked devices due to unwanted firmware upgrades to broken versions. Just rebooting t...
byWublide
Sat Oct 30, 2021 11:17 am
Forum:Announcements
Topic:v6.49(稳定)被释放!
Replies:219
Views:85954

Re: v6.49 [stable] is released!

Ok that is interesting! This config works for me (it connects), but I have other strange problems with it. And downgrading does not fix it. BTW, on some networks it may help to turn the router (or the PPPoE interface) off for a couple of minutes and then try again. Because of that, you may get conf...
byWublide
Sat Oct 30, 2021 12:28 am
Forum:Announcements
Topic:v6.49(稳定)被释放!
Replies:219
Views:85954

Re: v6.49 [stable] is released!

I had to downgrade back to 6.48.3 because the 6.49 broke my PPPOE connection
On what model of router?
RB4011iGS+5HacQ2HnD

I have a vlan on a phisical ethernet interface, and the pppoe interface is on top of that vlan interface. The pppoe remain on "connecting"
byWublide
Fri Oct 29, 2021 11:43 pm
Forum:Announcements
Topic:v6.49(稳定)被释放!
Replies:219
Views:85954

Re: v6.49 [stable] is released!

I had to downgrade back to 6.48.3 because the 6.49 broke my PPPOE connection
byWublide
Fri Oct 29, 2021 4:29 pm
Forum:General
Topic:How to change routing mark of a DAC route
Replies:0
Views:572

How to change routing mark of a DAC route

as title, when I add an ip address to an interface it create a DAC route but I want that route to have a specific routing mark. I tried with Routing Filters but it won't apply
byWublide
Fri Oct 29, 2021 3:29 pm
Forum:General
Topic:Force marked packets through a bigger distance route
Replies:0
Views:506

Force marked packets through a bigger distance route

For a same dst address I want this setup Routes: DAC 192.168.100.1, distance 0, through pppoe interface (that pass through a vlan interface on ethernet physical interface called eth1) and no routing mark AS 192.168.100.1, distance 1, through eth1 with routing mark called "marked" I success...
byWublide
Sat Aug 07, 2021 8:54 pm
Forum:General
Topic:can't access ONT web interface
Replies:0
Views:627

can't access ONT web interface

My ISP ONT has the address 192.168.100.1 on the physical ethernet interface and that interface is connected to one of my physical ethernet router port. To get the public IP from my ISP I need to create this structure: Router physical ethernet interface ISP vlan interface PPPOE interface and everythi...
byWublide
Fri Jun 05, 2020 7:28 pm
Forum:Beginner Basics
Topic:偶然发生一个C supported gpon sfp
Replies:2
Views:1310

Re: hAP AC supported gpon sfp

i need something isp compatible
byWublide
Thu Jun 04, 2020 7:23 pm
Forum:Beginner Basics
Topic:偶然发生一个C supported gpon sfp
Replies:2
Views:1310

偶然发生一个C supported gpon sfp

Hi

I bought a gpon sfp (technicolor AFM0002) that the router won't even recognize, like it's not inserted
there's a compatibility list about them? or do you know some model that works, like a Huawei MA5671A?

thanks
byWublide
Mon May 25, 2020 11:50 pm
Forum:Scripting
Topic:New to scripting, need help
Replies:15
Views:3320

Re: New to scripting, need help

The on-error needs to be indeed on that line like it is necessary with else in a if..do..else To check the syntax you can put the code between { } : { :do { :local checkdns [:resolve "my.domain" server=1.2.3.100] /ip dhcp-server network set 0 dns-server=1.2.3.100 } on-error={ /ip dhcp-ser...
byWublide
Mon May 25, 2020 6:35 pm
Forum:Scripting
Topic:New to scripting, need help
Replies:15
Views:3320

Re: New to scripting, need help

so i've done some test on this version of the script: :do { :local checkdns [:resolve my.domain server=X.X.X.100] /ip dhcp-server network set 0 dns-server=X.X.X.100 } on-error={ /ip dhcp-server network set 0 dns-server=1.1.1.1,1.0.0.1 } but it doesn't seems to work i've tested both put: [:resolve my...
byWublide
我2020年5月25日,2:52点
Forum:Scripting
Topic:New to scripting, need help
Replies:15
Views:3320

Re: New to scripting, need help

Try it out, Test it from command line, cut past. first with and "my.domain" correct, then change this to a name it does not resolve, to see if DNS is changed, Ok, i remotely tried :resolve my.domain server=X.X.X.X in the mikrotik terminal and it worked out, i'll test the other lines later...
byWublide
Mon May 25, 2020 2:26 pm
Forum:Scripting
Topic:New to scripting, need help
Replies:15
Views:3320

Re: New to scripting, need help

I hva not tested it, but remove :put in front of /ip dhcp... Test all commands one by one and see what is changing. /ip dhcp-server network set 0 dns-server=X.X.X.X do this adds or change dns when run, test it out. it change the current dns, i currently have that line in my netwatch and it's workin...
byWublide
Mon May 25, 2020 1:47 pm
Forum:Scripting
Topic:New to scripting, need help
Replies:15
Views:3320

Re: New to scripting, need help

:do { :local test [:resolve "test.com"] :put "this will run on success" :put "some more to do" } on-error={ /ip dns set servers=1.1.1.1 } thanks again, and regarding to the execution interval? edit: can i put this script directly in the scheduler? :do { :local test [:r...
byWublide
Mon May 25, 2020 9:46 am
Forum:Scripting
Topic:New to scripting, need help
Replies:15
Views:3320

Re: New to scripting, need help

But if you need a script, this should do: :do { :local test [:resolve "test.com"] } on-error={ /ip dns set servers=1.1.1.1 } thank you so much for the jump start, i'll try and eventually build up from this just a few question, how can i set the execution interval time? and how can i do a ...
byWublide
Sun May 24, 2020 8:43 pm
Forum:Scripting
Topic:New to scripting, need help
Replies:15
Views:3320

New to scripting, need help

Hi you all! I want to start using script and of course i've checked the mikrotik scripting page but i can't get it to work. The task i want to automatize is a relatively simple "if": check if an address is resolvable (for example google.com) if it's not then change the dns of a specific ne...
byWublide
Wed Jan 22, 2020 8:57 pm
Forum:RouterOS beta and rc versions
Topic:Feature Request - Wireguard Protocol
Replies:167
Views:78209

Re: Feature Request - Wireguard Protocol

it would be a dream because now i have a routerboard+raspberry(wireguard) for every single sites of my fullmesh vpn
byWublide
Wed Jun 05, 2019 3:48 pm
Forum:General
Topic:Full mesh VPN between 3 or more Mikrotik routers
Replies:10
Views:3445

Re: Full mesh VPN between 3 or more Mikrotik routers

There is no problem with Server / Clients L2TP, in the same RB, if you can monitor the states of the other devices it would be excellent. ok, thank you for the infos mate once i setup that i need to implement a road warriors access too; i already tested that out but there's a problem: how can i pus...
byWublide
Wed Jun 05, 2019 9:22 am
Forum:General
Topic:Full mesh VPN between 3 or more Mikrotik routers
Replies:10
Views:3445

Re: Full mesh VPN between 3 or more Mikrotik routers

Sounds like a great place to use a routing protocol. Sadly no DMVPN in MikroTik land. I'd still likely opt to go with GRE so I could run a dynamic protocol across it. With a true mesh (all routers with links to all other routers) that will get unwieldy quick so an automation tool would be very help...
byWublide
Tue Jun 04, 2019 9:10 pm
Forum:General
Topic:Full mesh VPN between 3 or more Mikrotik routers
Replies:10
Views:3445

Re: Full mesh VPN between 3 or more Mikrotik routers

you want to achieve with this? Router A Server for Router B, Router C and Router D Client that connects simultaneosly to Router B, Router C and Router D Router B Server for Router A, Router C and Router D Client that connects simultaneosly to Router A, Router C and Router D If you lose access to th...
byWublide
Tue Jun 04, 2019 7:33 pm
Forum:General
Topic:Full mesh VPN between 3 or more Mikrotik routers
Replies:10
Views:3445

Re: Full mesh VPN between 3 or more Mikrotik routers

You could do it but you will need to implement a script and be verifying the IPs of servers A and B. so they can act as Server or Client. wait, i don't understand what you're trying to say. I you're talking about wan IPs, i got covered on that by a ddns server and fqdn names on l2tp server configur...
byWublide
Tue Jun 04, 2019 3:09 pm
Forum:General
Topic:Full mesh VPN between 3 or more Mikrotik routers
Replies:10
Views:3445

Re: Full mesh VPN between 3 or more Mikrotik routers

i opted for l2tp over ipsec, all it's working but can it be configured so a router can do both server and client? like: Router A Server for Router B, Router C and Router D Client that connects simultaneosly to Router B, Router C and Router D Router B Server for Router A, Router C and Router D Client...
byWublide
Mon Jun 03, 2019 1:40 pm
Forum:General
Topic:Full mesh VPN between 3 or more Mikrotik routers
Replies:10
Views:3445

Full mesh VPN between 3 or more Mikrotik routers

As title, i need to implement a vpn network that connects 3 or 4 lan network under mikrotik's routers. What's the best way to achieve that? I read something about l2tp over ipsec, is suitable? i don't want an hub and spoke topology with a main router that routes traffic because they're have all the ...
byWublide
Mon Oct 08, 2018 6:08 pm
Forum:Beginner Basics
Topic:Slow ethernet speed on RB750GL
Replies:0
Views:519

Slow ethernet speed on RB750GL

as title, on a gigabit negotiation i cannot get more than 200mbit between two ethernet interfaces. Fasttrack is enabled and im short on solution about this problem

Baidu
map