djzort / dbhub

DBHub is free Direct Connect hub for Linux/Unix.
http://dbhub.sourceforge.net/
Other
2 stars 3 forks source link

listening_port #1

Open cyberghost404 opened 6 years ago

cyberghost404 commented 6 years ago

Hello, how do I add more ports? how many tried, but it did not work and can I even add them?

djzort commented 6 years ago

im not certain what you are asking for

cyberghost404 commented 6 years ago

add ports 411, 412, 4111, etc

djzort commented 6 years ago

you want to listen on more than one port simultaneously?

cyberghost404 commented 6 years ago

Yes, Is this possible?

djzort commented 6 years ago

Only one listening port is supported, see https://github.com/djzort/dbhub/blob/89769d8004e384e13e91d2a2ebaeadd074bce9dc/src/main.c#L4193

Your best solution would be to use dnat to forward ports on the local machine.

dbhub doesnt know how to shed permissions from root to an unprivileged user - so I run it as an unprivileged user on a high port then use dnat to point the "normal" direct connect port at it (which is a privilieged port being under 1000)

Check out http://linux-ip.net/html/nat-dnat.html (assuming youre running on linux)