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 

Way to ensure iptables forwarding rule is inserted properly?

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation
View previous topic :: View next topic  
Author Message
f1sherman



Joined: 31 Dec 2020
Posts: 6

PostPosted: Thu Dec 31, 2020 5:04 pm    Post subject: Way to ensure iptables forwarding rule is inserted properly? Reply with quote

Hi there! My default iptables config has a "-A FORWARD -j DROP" at the end of it. So when miniupnpd appends its FORWARD rule it gets ignored. What is the best way to ensure that the FORWARD rule is inserted before the "catchall" DROP rule?

Thank you in advance!
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1591

PostPosted: Sat Jan 21, 2023 11:45 am    Post subject: Reply with quote

miniupnpd insert its rules in a specific CHAIN that should be evaluated first. See
https://github.com/miniupnp/miniupnp/blob/master/miniupnpd/netfilter/iptables_init.sh
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation 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.