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

Listen on multiple ports #22

Closed
timhux123 opened this issue Mar 15, 2019 · 2 comments
Closed

Listen on multiple ports #22

timhux123 opened this issue Mar 15, 2019 · 2 comments

Comments

@timhux123
Copy link

Is it possible to have the honeypot listen on multiple ports? I want the honeypot to listen on ports 23 and 2323. I have tried various configurations in config.dist.yaml at the following location but none work.

Telnet port

telnet_addr: ""
telnet_port: 2323

@Phype
Copy link
Owner

Phype commented Mar 19, 2019

No, the honeypot only supports a single port (or socket, actually). But you can start the honeypot multiple times from the same directory using the -c flag to provide another configuration file than the standard config.yaml. It makes sense in this case to add different users for each honeypot, so that the backend can differentiate between the different ports and does not falsely flag connections as being associated with each other when they appear on different ports. If you don't mind about that you could also use iptables to configure a port-forwarding from port 23->2323 or something like that.

@timhux123
Copy link
Author

Thanks. Using the -c flag with a second config.yaml containing port 2323 did the trick.
Example of second config.yaml:


backend_user: admin
backend_pass: ecadXXXXXXXXXXXXXXXXXXXXXX
backend_salt: 312f9XXXXXXXXXXXXXXXXXXXXXX

Telnet port

telnet_addr: ""
telnet_port: 2323


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

2 participants