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

Make collaborator use less-privileged user #1

Open
putsi opened this issue May 25, 2019 · 2 comments
Open

Make collaborator use less-privileged user #1

putsi opened this issue May 25, 2019 · 2 comments

Comments

@putsi
Copy link
Owner

putsi commented May 25, 2019

Even though the instance is assumed to be a burner, make it use something less-privileged than the root-user.

@Merenon
Copy link
Contributor

Merenon commented Sep 10, 2019

This requires the use of high-ports and related iptables rules.

The only way I found is by using something like:

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 50080

Is there any other effective way?

@putsi
Copy link
Owner Author

putsi commented Sep 11, 2019

There are some other ways such as using authbind and CAP_NET_BIND_SERVICE (https://superuser.com/questions/710253/allow-non-root-process-to-bind-to-port-80-and-443) but I'm not sure if these are better in any way.

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