I think that the -C,--server-cmd option may be what you want. You
would first use that to run your shell script, then ssh in with a normal
fwknop command.
Stephen Isard
On Wed, 25 Jul 2018, Davis Roman davis.roman84-at-gmail.com |fwknop| wrote:
hello,
I'm currently using fwknop to punch a hole in the firewall when the client
uses the correct knock packet.
We're now required to disable our systemd service by disabled which means
I'll have to resort to the following:
When client sends knock packet:
1. add port 22 to our firewall
2. start systemd ssh service.
So essentially I would need to be able to tell fwknopd to execute a shell
script when the knock packet arrives.
I've read all the fwknopd documentation and I don't see a way to do this.
Any ideas would be extremely appreciated.
Thank you,
Davis
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fwknop-discuss mailing list
Fwknop-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fwknop-discuss