-
Notifications
You must be signed in to change notification settings - Fork 117
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
Use multiple interfaces #21
Comments
Will take a look at this. Am trying to get the codebase to have the issues fixed so I can add some cool functionality. |
Will need some more time playing with this - am working on the 0.8.0 release which will support dynamic port knocking using cryptographically strong mechanisms. Once complete, will take a look at this unless someone else has time? |
This would be awesome |
Maybe |
I guess it can be done by a fork() before opening the pcap interface. So read-in multiple interfaces, let parent process handle the first and fork childs to handle subsequent interfaces. As such we would have multiple threads/process, for each interface one. |
This was quite easy to solve with the existing 0.8-1 version (instructions for redhattish systems):
This way you can have as many knock daemons as you have interfaces. The rpm-owned files /etc/sysconfig/knockd and /usr/lib/systemd/system/knockd.service are left alone, while /usr/lib/systemd/system/[email protected] and the files in /etc/sysconfig/knockd.d will be left alone by rpm updates. With less than 10 minutes of work, this could be integrated in the knock-server .spec and .deb, and be pushed out to most major distributions. |
An even simpler (though less flexible) solution if you don't need to customize the options per interface would be to have just the following line in the unit template's
This removes the need for the environment files. Kudos to @zenonp for the inspiration! |
Hi,
I would like to use knockd on multiple interfaces within one instance. For example interface=eth0,wlan0 would be nice.
The text was updated successfully, but these errors were encountered: