View previous topic :: View next topic |
Author |
Message |
zulinsquall
Joined: 07 Apr 2016 Posts: 2
|
Posted: Thu Apr 07, 2016 6:27 am Post subject: About miniupnpd work Permission |
|
|
Hi All :
My customer need a feature , they say run miniupnpd need to use non-root user acount permission , but we try to use non-root user acount permission , miniupnpd can't set rule to iptables , do have any resolve ??
Thank you ~ |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1585
|
Posted: Thu Apr 07, 2016 7:13 am Post subject: |
|
|
if iptables needs root permissions, then miniupnpd needs root too
If you find a way to run iptables without root, you'll be able to do so for miniupnpd too.
If you succeed, please tell us how you've done it ! _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
zulinsquall
Joined: 07 Apr 2016 Posts: 2
|
Posted: Wed Apr 13, 2016 3:57 am Post subject: |
|
|
Hi All
We found a hard way to do this, my colleague work miniupnpd by non-root user acount , and modify seteuid to call iptables function (iptcrdr.c ) .
When need to do iptcrdr functions , reset uid is root account permission by seteuid method , after done , reset uid back.
Now we tried miniupnpd it work success and can set rules.
It sound strange , but the customer hope this , btw is HuawOO's Safety red .
Best Regards. |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1585
|
|
Back to top |
|
 |
Enoch
Joined: 12 Oct 2017 Posts: 1 Location: Houston
|
Posted: Mon Oct 23, 2017 8:08 am Post subject: |
|
|
zulinsquall wrote: | Hi All :
My customers need Hydromax and a feature , they say run miniupnpd need to use non-root user acount permission , but we try to use non-root user acount permission , miniupnpd can't set rule to iptables , do have any resolve ??
Thank you ~ |
Nice workaround. Thanks for sharing Zulin. |
|
Back to top |
|
 |
|