Community discussions

MikroTik App

Search found 9 matches

by dprnic
Sat Oct 15, 2022 7:57 am
Forum: General
Topic: RSPT - wrong root port selected
Replies: 1
Views: 995

RSPT - wrong root port selected

Here is my network diagram screenshot.28.jpg My PC is connected to switch TL-SG3424X_MASTER which is on Po5. Vlan 240 is for network administration. I would like root port to be spfplus1 and alternate port bonding. Sfpplus interface on both routers won't become root port. Switch configuration: TL-SG...
by dprnic
Mon Aug 08, 2022 9:06 am
Forum: Scripting
Topic: Command works from terminal but not as a script [SOLVED]
Replies: 12
Views: 2958

Re: Command works from terminal but not as a script [SOLVED]

I found the solution!
The problem is in command ssh.
/system/ssh... does not work in /system/script for remote router.
/system/ssh-exec... should be used instead.
by dprnic
Sun Aug 07, 2022 3:56 pm
Forum: Scripting
Topic: Command works from terminal but not as a script [SOLVED]
Replies: 12
Views: 2958

Re: Command works from terminal but not as a script [SOLVED]

Yes, i am doing that. First in cli Screenshot_20220807-143558_Microsoft Remote Desktop.jpg Then in script Screenshot_20220807-144012_Microsoft Remote Desktop.jpg I tried something more simple also from cli and from script, but it also does not work from script and works from cli. Screenshot_20220807...
by dprnic
Sun Aug 07, 2022 3:08 pm
Forum: Scripting
Topic: Command works from terminal but not as a script [SOLVED]
Replies: 12
Views: 2958

Re: Command works from terminal but not as a script [SOLVED]

After executing the command in terminal it says:
Welcome back!
And i can see that peer is created.
I delete it and try again from system script.
No log on both routers.
by dprnic
Sun Aug 07, 2022 2:49 pm
Forum: Scripting
Topic: Command works from terminal but not as a script [SOLVED]
Replies: 12
Views: 2958

Re: Command works from terminal but not as a script [SOLVED]

I added topics script and wireguard.
No log.
Do i have to turn on some more topics?
by dprnic
Sun Aug 07, 2022 2:36 pm
Forum: Scripting
Topic: Command works from terminal but not as a script [SOLVED]
Replies: 12
Views: 2958

Re: Command works from terminal but not as a script [SOLVED]

The result is ok.
Screenshot_20220807-132616_Microsoft Remote Desktop.jpg
If i could see somehow what is the problem on the ssh remote router.
by dprnic
Sun Aug 07, 2022 2:12 pm
Forum: General
Topic: Wireguard issue lte connection
Replies: 25
Views: 4271

Re: Wireguard issue lte connection

The problem is in firewall.

You have in firewall:
add action=drop chain=input in-interface-list=!LAN

Your wireguard interface is not added in interface list as LAN.
by dprnic
Sun Aug 07, 2022 1:49 pm
Forum: Scripting
Topic: Command works from terminal but not as a script [SOLVED]
Replies: 12
Views: 2958

Re: Command works from terminal but not as a script [SOLVED]

The value of $publickey is: X7ZcanAGeG+G7/rZWDV4RoZ8vohzaUW9pdqEfkdiFRw= I set it in SMS sending to router with LTE interface (sim card for 3G). This part with setting the variable with SMS works. When i put this in a script then it does not work: /system/ssh address=192.168.240.9 user=dprnic comman...
by dprnic
Sun Aug 07, 2022 11:20 am
Forum: Scripting
Topic: Command works from terminal but not as a script [SOLVED]
Replies: 12
Views: 2958

Command works from terminal but not as a script [SOLVED]

I have no experience with Mikrotik scripting. This works from terminal but not as a script: /system/ssh address=192.168.240.9 user=dprnic command="[/interface/wireguard/peers/add interface=wireguard_users public-key=\"X7ZcanAGeG+G7/rZWDV4RoZ8vohzaUW9pdqEfkdiFRw=\" allowed-address=192....