BTW. I have one question. Which is the suggested way for a package to add 
rules for the firewall? Now I'm activating the include option and then I put
all my rules in a firewall.use files inside my package.

Is there a more general way?!?! I.e. what if two packages need to add some
custom rule. Should I use directly iptables?

----- [EMAIL PROTECTED] ha scritto:

> oops :)
> 
> Quoting Roberto Riggio <[EMAIL PROTECTED]>:
> 
> > I think that custom chains and fw_include should be reversed. Am I
> right?
> >
> > Signed-off-by: Roberto Riggio <[EMAIL PROTECTED]>
> >
> > --
> >
> > Index: package/firewall/files/uci_firewall.sh
> > ===================================================================
> > --- package/firewall/files/uci_firewall.sh  (revisione 12401)
> > +++ package/firewall/files/uci_firewall.sh  (copia locale)
> > @@ -302,10 +302,10 @@
> >     config_foreach fw_forwarding forwarding
> >     echo "Loading redirects"
> >     config_foreach fw_redirect redirect
> > +   echo "Adding custom chains"
> > +   fw_custom_chains
> >     echo "Loading includes"
> >     config_foreach fw_include include
> > -   echo "Adding custom chains"
> > -   fw_custom_chains
> >
> >     uci_set_state firewall core "" firewall_state
> >     uci_set_state firewall core loaded 1
> > _______________________________________________
> > openwrt-devel mailing list
> > [email protected]
> > http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> >
> 
> 
> 
> -- 
> John Crispin
> hacking, coding, etc
> blogic on irc
> 
>     _______                     ________        __
>    |       |.-----.-----.-----.|  |  |  |.----.|  |_
>    |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
>    |_______||   __|_____|__|__||________||__|  |____|
>             |__| W I R E L E S S   F R E E D O M
>    KAMIKAZE (bleeding edge) -----------------------
>     * 10 oz Vodka       Shake well with ice and strain
>     * 10 oz Triple sec  mixture into 10 shot glasses.
>     * 10 oz lime juice  Salute!
>    ---------------------------------------------------


-- 
--------------------------------------------------------
Roberto Riggio, PhD

CREATE-NET
Via alla Cascata 56/C 
38100 Trento (Italy)

E-mail: [EMAIL PROTECTED]
HomePage: http://disi.unitn.it/~riggio/

Tel: +39.0461.314.960
Fax: +39.0461.314.972
--------------------------------------------------------
_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to