Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Options to run with sudo #55

Open
serajam opened this issue Oct 26, 2018 · 1 comment
Open

Options to run with sudo #55

serajam opened this issue Oct 26, 2018 · 1 comment

Comments

@serajam
Copy link

serajam commented Oct 26, 2018

When using inside service, can't run iptables command without sudo :(

@gwx324
Copy link

gwx324 commented Jun 22, 2022

I recode go-iptables, and add code like this...

func WithSudo() option {
return func(ipt *IPTables) {
ipt.sudo = true
}
}

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants