Community discussions

MikroTik App
 
dcavni
Member Candidate
Member Candidate
Topic Author
Posts: 108
Joined: Sun Mar 31, 2013 6:02 pm

How to secure BtestServer?

Mon Oct 31, 2022 4:44 pm

Hi,

Is there any way to secure BtestServer running on Mikrotik so it can be acessed without general rules:
add action=accept chain=input comment="BTEST " protocol=tcp
add action=accept chain=input comment="BTEST " protocol=udp
Without those rules firewall on device doesn't allow connection to device with Btest client from WAN. I know that i can add certain IP in src. adress but then i cannot test from more locations and i have to change this ip for every test from different location.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12008
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How to secure BtestServer?

Tue Nov 01, 2022 12:53 am

with this two rule you destroy all firewall security
 
User avatar
nichky
Forum Guru
Forum Guru
Posts: 1281
Joined: Tue Jun 23, 2015 2:35 pm

Re: How to secure BtestServer?

Tue Nov 01, 2022 1:43 am

extremely basic
/ip firewall filter 
#===accept===
add action=accept chain=input dst-port=2000-2100 protocol=udp src-address-list=lan
add action=accept chain=input dst-port=2000-2100 protocol=tcp src-address-list=lan
#===drop===
add action=drop chain=input  dst-port=2000-2100 protocol=tcp 
add action=drop chain=input  dst-port=2000-2100 protocol=udp

/ip firewall address-list add list=lan address=192.168.x.0/24
 
dcavni
Member Candidate
Member Candidate
Topic Author
Posts: 108
Joined: Sun Mar 31, 2013 6:02 pm

Re: How to secure BtestServer?

Tue Nov 01, 2022 8:08 am

with this two rule you destroy all firewall security
I know that, that is why i'm asking. I will try the rules above.
 
dcavni
Member Candidate
Member Candidate
Topic Author
Posts: 108
Joined: Sun Mar 31, 2013 6:02 pm

Re: How to secure BtestServer?

Tue Nov 01, 2022 1:36 pm

extremely basic
/ip firewall filter 
#===accept===
add action=accept chain=input dst-port=2000-2100 protocol=udp src-address-list=lan
add action=accept chain=input dst-port=2000-2100 protocol=tcp src-address-list=lan
#===drop===
add action=drop chain=input  dst-port=2000-2100 protocol=tcp 
add action=drop chain=input  dst-port=2000-2100 protocol=udp

/ip firewall address-list add list=lan address=192.168.x.0/24
If i understand correctly, this only allows btest from 192.168.x.0/24 ?
 
User avatar
nichky
Forum Guru
Forum Guru
Posts: 1281
Joined: Tue Jun 23, 2015 2:35 pm

Re: How to secure BtestServer?

Tue Nov 01, 2022 11:24 pm

correct

Who is online

Users browsing this forum: Bing [Bot], Fogga, Google [Bot] and 182 guests