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

Cannot forward ports when running as root #84

Open
jamesmcm opened this issue May 19, 2021 · 2 comments
Open

Cannot forward ports when running as root #84

jamesmcm opened this issue May 19, 2021 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@jamesmcm
Copy link
Owner

Specifically:
https://github.com/jamesmcm/basic_tcp_proxy/blob/e3adcff17b46ecd871ff7d6f785de987d4945272/src/lib.rs#L36
fails to bind when a connection is made (even if the connecting process is also running as root).

This seems to be some sort of socket permissions issue.

@jamesmcm jamesmcm added bug Something isn't working help wanted Extra attention is needed labels May 19, 2021
@jamesmcm jamesmcm mentioned this issue Jun 26, 2021
@d4h0
Copy link

d4h0 commented May 20, 2022

@jamesmcm: Are you sure this issue still exists?

I thought, I'll give fixing this a try, but I can't reproduce any error.

If I execute the following command:

vopono -v exec --custom /tmp/openvpn_test.ovpn --protocol openvpn --postup '/tmp/postup.sh' -k -u root -f 8118 "privoxy --chroot --user privoxy --pidfile /tmp/privoxy.pid /tmp/privoxy.config"

...I neither get an error when executed via my regular user and sudo, nor when I log into root and execute it from there. I always can connect to localhost:8118 and request webpages.

Can you still somehow reproduce this issue? And if so, can you reproduce it via a custom OpenVPN config? I only have OpenVPN VPNs, so that's the only kind I can test.

@aujxn
Copy link

aujxn commented Apr 2, 2023

I'm running into this issue when running without sudo. Vopono logs that a new connection happens but then times out and the thread crashes. Tried both transmission-gtk and transmission-daemon, both same behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants