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

mark.c output message to stdout hurts #3

Open
gnadelwartz opened this issue Nov 27, 2021 · 1 comment
Open

mark.c output message to stdout hurts #3

gnadelwartz opened this issue Nov 27, 2021 · 1 comment

Comments

@gnadelwartz
Copy link

I suggest to change the printf in line:

printf("mark: setting SO_MARK for fd=%u to %#x\n", sd, mark);

to fprintf:

fprintf(stderr, "mark: setting SO_MARK for fd=%u to %#x\n", sd, mark); 

this will prevent problems when using commands with pipes or when parsing stdout

@gnadelwartz
Copy link
Author

gnadelwartz commented Nov 27, 2021

btw: thank you this was the only simple AND working solution in combination with OpenVpn I found.

all other shims was not working (to old?), namespace and cgroups are complex, no fallback and modyfing them with OpenVpn on new connection is a mess ...

With this jail you simply change the default route for the used table when OpenVpn is started.

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

1 participant