Community discussions

MikroTik App
 
francogp
just joined
Topic Author
Posts: 5
Joined: Wed Apr 21, 2021 2:52 pm

WinBox and UFW configs

Wed Jun 02, 2021 2:59 pm

Hello,
I'm trying to connect using winbox on linux, with UFW firewall, and MAC.

If I turn OFF the firewall, it connect just fine.
If I turn ON the firewall, it refuse to connect.

I added this rules to UFW, but the problem continues:
sudo ufw allow in 20561/udp  
sudo ufw allow out 20561/udp  
sudo ufw allow in 8291/tcp  
sudo ufw allow out 8291/tcp  
sudo ufw allow in 5678/udp
sudo ufw allow out 5678/udp
What I am doing wrong?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: WinBox and UFW configs

Thu Jun 03, 2021 8:12 pm

What I am doing wrong?
The port are

TCP src:x.x.x.x:any & dst x.x.x.x:8291 for WinBox,
UDP src x.x.x.x:5678 & dst 255.255.255.255:5678 for Network Discovery
UDP src x.x.x.x:20561 & dst 255.255.255.255:20561 for MAC Telnet,

ask Ubuntu
 
francogp
just joined
Topic Author
Posts: 5
Joined: Wed Apr 21, 2021 2:52 pm

Re: WinBox and UFW configs

Fri Jun 04, 2021 1:17 pm

What I am doing wrong?
The port are

TCP src:x.x.x.x:any & dst x.x.x.x:8291 for WinBox,
UDP src x.x.x.x:5678 & dst 255.255.255.255:5678 for Network Discovery
UDP src x.x.x.x:20561 & dst 255.255.255.255:20561 for MAC Telnet,

ask Ubuntu

I added to my UFW config .ini:

[WinBox Neighbors]
title=WinBox Neighbors
description=WinBox Neighbors listening.
ports=5678/udp
from=any
to=255.255.255.255

[WinBox]
title=WinBox
description=WinBox.
ports=8291/tcp
from=any
to=any

[WinBox MAC]
title=WinBox MAC
description=WinBox MAC listening.
ports=20561/udp
from=any
to=255.255.255.255

then the rules:
  sudo ufw allow "WinBox Neighbors"
  sudo ufw allow "WinBox MAC" 
  sudo ufw allow "WinBox" 
also tried:
  sudo ufw allow in "WinBox Neighbors"
  sudo ufw allow in "WinBox MAC" 
  sudo ufw allow in "WinBox" 
  
  sudo ufw allow out "WinBox Neighbors"
  sudo ufw allow out "WinBox MAC" 
  sudo ufw allow out "WinBox" 
Without success

Who is online

Users browsing this forum: Bing [Bot], cmmike, holvoetn, svh79 and 46 guests