Web lists-archives.com

port knocking




Hello,
I try use use port knocking and would be happy to do this in ssh config
file.

To open the port I can use ProxyCommand with an wrapper script like

ProxyCommand bash -c 'wrapper.sh %h port1 port2 ... portX; nc %h %p'

so far so good.

But if I understand port knocking in the right way I must close the port
after disconnect?

I havened found a way for this like post-connect in ssh config.

Has anyone a suggestion how it can be implemented?

Best Regards,
Basti