Purchased hAP ac2 yesterday and started to transfer all my settings from my old RB951G-2HnD. Now it's running the latest RouterOS 6.43.8 and all seems to work like before, all, except the port knocking. I'm using the following rules:
Code: Select all
add action=add-src-to-address-list address-list=knock1 address-list-timeout=15s chain=input dst-port=xxxx in-interface=pppoe-out1 log=yes log-prefix=knock1 protocol=tcp
add action=add-src-to-address-list address-list=knock2 address-list-timeout=15s chain=input dst-port=xxxx in-interface=pppoe-out1 log=yes log-prefix=knock2 protocol=tcp src-address-list=knock1
add action=add-src-to-address-list address-list=trusted address-list-timeout=20s chain=input dst-port=xxxx in-interface=pppoe-out1 log=yes log-prefix=trusted protocol=udp src-address-list=knock2
add action=accept chain=input comment="SSH with port knocking" dst-port=xxxx in-interface=pppoe-out1 protocol=tcp src-address-list=trusted
Now, the problem: this configuration worked fine with the RB951G-2HnD, but not with the hAP ac2. When I try knocking, only the first knock is being registered according to the router log and the rest are not being detected/registered at all. The cause turned out the be the port protocol type: it doesn't work in every case, when you knock twice with tcp, selected as protocol. No such problem with udp
Example:
knock1 - 8765 tcp
knock2 - 3425 udp
knock3 - 4444 tcp
Works!
knock1 - 8765 tcp
knock2 - 3425 udp
knock3 - 4444 udp
Works!
knock1 - 8765 tcp
knock2 - 3425 tcp
knock3 - 4444 udp
Doesn't work!
knock1 - 8765 udp
knock2 - 3425 tcp
knock3 - 4444 tcp
Doesn't work!
Can anyone tell me if this is a bug with this platform or am I missing something? As I said, this configuration was working on RB951G-2HnD.
Tried also to add some delay between the knocks at client level, but that had no effect.