I have just finished setting up Port Knocking on my MikroTik router and it works.
It works nice: I send a port knock in sequence to three tcp ports, 1000, 2000, 3000 and then connect fine with WinBox.
Now, I have tried to scramble the order of the ports when performing a port knock to: 2000, 3000, 1000, follewig with a connect with Winbox and I can connect!
Do I miss something or the port knocking configured in my /ip firewall filter does not care of the order in which port are knocked?
Can someone please shed light on this?
thank you
I have configured /ip firewall filter as follows:
;;; port knock 1
add action=add-src-to-address-list address-list=port_knocking address-list-timeout=
1m chain=input dst-port=1000 protocol=tcp
;;; port knock 2
add action=add-src-to-address-list address-list=port_knocking address-list-timeout=
1m chain=input dst-port=2000 protocol=tcp
;;; port knock 3
add action=add-src-to-address-list address-list=secure address-list-timeout=1m
chain=input dst-port=3000 protocol=tcp
src-address-list=port_knocking
;;; remote management winbox
add action=accept chain=input dst-port=8291
protocol=tcp src-address-list=secure
;;; *** LAST FILTER!* drop everything else
add action=drop chain=input in-interface=pppoe-out2