Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Knock suddenly not working in syn mode with nc -z command #92

Open
osevan opened this issue Dec 4, 2024 · 3 comments
Open

Knock suddenly not working in syn mode with nc -z command #92

osevan opened this issue Dec 4, 2024 · 3 comments

Comments

@osevan
Copy link

osevan commented Dec 4, 2024

Since one month with debian siduction, knockd cant comes to open stage 2 and 3

Only open stage 1 and timeout after 10s like declared in config file.

Thanks and

Best regards

@osevan
Copy link
Author

osevan commented Dec 4, 2024

Dec 04 17:07:22 8 knockd[3674070]: MYIP: openSSH: Stage 1
Dec 04 17:07:22 8 knockd[3674070]: MYIP: openSSH: sequence timeout (stage 1)
Dec 04 17:06:39 8 knockd[3674070]: MYIP: openSSH: Stage 1
Dec 04 17:06:38 8 knockd[3674070]: MYIP: openSSH: sequence timeout (stage 1)
Dec 04 17:06:21 8 knockd[3674070]: MYIP: openSSH: Stage 1
Dec 04 17:06:21 8 knockd[3674070]: MYIP: openSSH: sequence timeout (stage 1)
Dec 04 17:05:28 8 knockd[3674070]: MYIP: openSSH: Stage 1
Dec 04 17:05:28 8 knockd[3674070]: MYIP: openSSH: sequence timeout (stage 1)
Dec 04 17:04:34 8 knockd[3674070]: MYIP: openSSH: Stage 1
Dec 04 17:04:34 8 knockd[3674070]: MYIP: openSSH: sequence timeout (stage 1)
Dec 04 17:04:02 8 knockd[3674070]: MYIP: openSSH: Stage 1

@osevan
Copy link
Author

osevan commented Dec 4, 2024

/etc/knockd.conf
[options]
UseSyslog

[openSSH]
sequence = myport1,myport2,mypor3
seq_timeout = 10
command = mycommand
tcpflags = syn

@osevan
Copy link
Author

osevan commented Dec 4, 2024

cat /etc/default/knockd

control if we start knockd at init or not

1 = start

anything else = don't start

PLEASE EDIT /etc/knockd.conf BEFORE ENABLING

START_KNOCKD=1

command line options

KNOCKD_OPTS="-i eth0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant