miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

About miniupnpd work Permission

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Feature Request
View previous topic :: View next topic  
Author Message
zulinsquall



Joined: 07 Apr 2016
Posts: 2

PostPosted: Thu Apr 07, 2016 6:27 am    Post subject: About miniupnpd work Permission Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Thu Apr 07, 2016 7:13 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
zulinsquall



Joined: 07 Apr 2016
Posts: 2

PostPosted: Wed Apr 13, 2016 3:57 am    Post subject: Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Wed Apr 13, 2016 9:06 am    Post subject: Reply with quote

Thank you for your feedback
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Enoch



Joined: 12 Oct 2017
Posts: 1
Location: Houston

PostPosted: Mon Oct 23, 2017 8:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Feature Request All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.