-
Notifications
You must be signed in to change notification settings - Fork 15
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
iptables cannot be used with setuid #80
Comments
sudo setcap cap_sys_admin+ep `which cproxy` oops, sorry, i test with sudo. setting capabilities doesn't work. |
my temporary workaround:
it mostly works, except failing to clean up iptable rules. i have to remove it manually.
|
instead of setuid and capabilities, maybe it's easier to run cproxy with sudo, after setting up iptables, cproxy start the program as the original user and add it to the cgroup. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've encountered iptables errors recently:
It may be related to a change introduced in iptables 1.8.8, that iptables cannot be called by a setuid executable. See https://git.netfilter.org/iptables/commit/?id=ef7781eb1437a2d6fd37eb3567c599e3ea682b96
I'm not sure how to deal with it, but I think Linux capabilities is an option.
The text was updated successfully, but these errors were encountered: