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

redir doesn't start #13

Closed
stiv-yakovenko opened this issue May 18, 2019 · 15 comments
Closed

redir doesn't start #13

stiv-yakovenko opened this issue May 18, 2019 · 15 comments

Comments

@stiv-yakovenko
Copy link

Built redir, but it doesn't start:

image

@troglobit
Copy link
Owner

Just tested the latest master, which is same as v3.3, and it works here. Both foreground and in the background like you run.

You'll have to tell me a bit more about your setup, the version of redir you're using etc.

@stiv-yakovenko
Copy link
Author

Thank you for your feedback. I use Centos 7, built from lastest git sources. Any particular details?

@troglobit
Copy link
Owner

Well, how did you run the configure script; args, any special environment perhaps, the output from the configure script and the config.log file would be a start. I'll see if I can fire up a CentOS machine later today.

@troglobit
Copy link
Owner

troglobit commented May 18, 2019

It just hit me, do you have any SELinux, Apparmor or other policy/access control mechanism enabled? You can usually see the kernel denying application access in the dmesg or other kernel log file, dunno how/what CentOS/RedHat does here.

@stiv-yakovenko
Copy link
Author

well, may be, but i'd expect error message if it fails to listen?

@stiv-yakovenko
Copy link
Author

I can give you ssh for debugging purposes if you wish

@troglobit
Copy link
Owner

Have you tried running it in the foreground with debug messages enabled?

./redir -n -l debug 0.0.0.0:2222 127.0.0.0:2222

I agree, there should be an error message, could be the wrong log level is set, but -l debug should catch that.

Let's keep ssh login as a backup.

@stiv-yakovenko
Copy link
Author

HI! Will check today's evening, busy right now.

@stiv-yakovenko
Copy link
Author

ok, -n gives error message, but in bg mode it doesn't, which is a bit missleading in my opinion.

@troglobit
Copy link
Owner

Could you please tell me what the error message is? When redir runs in the background it cannot log to the terminal it starts from, only to syslog like other daemons. Maybe the error message is available in /var/log/syslog?

@stiv-yakovenko
Copy link
Author

Well, it said port was busy. I think may be its not a bug at all...

@troglobit
Copy link
Owner

You can check open/used ports with netstat or ss. Maybe you already have an application listening to 2222?

@stiv-yakovenko
Copy link
Author

yeah, the problem itself is solved, but no message was a bit missleading :)

@troglobit
Copy link
Owner

Like I said, when redir runs in the background (default) it has detached from the terminal (to protect itself from being killed if you close your terminal), so it cannot give you any feedback other than in the syslog. This goes for all UNIX daemons. I understand that can be a bit confusing, but I have not tried to mislead you our any other user in any way. I just want to make this clear.

OK so we can close this issue then?

@stiv-yakovenko
Copy link
Author

yes, close it

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