Page 1 of 1

firewall.user 3 times?

Posted: Thu Sep 27, 2018 1:04 am
by CBx86
Hey Guys! :D

I have some custom /etc/firewall.user.
Listing the rules, my custom rules appear 3 times.

In /etc/config/firewall have only one entry:

option path '/etc/firewall.user'

Some clue?

Many thanks! :D

Re: firewall.user 3 times?

Posted: Thu Sep 27, 2018 1:11 am
by CBx86
Complement:

Just after reboot the router.

If i iptables -F
/usr/lib/gargoyle/restart_firewall.sh

Dont repeat the custom rules from firewall.user.

Thanks. :mrgreen:

Re: firewall.user 3 times?

Posted: Sun Sep 30, 2018 12:47 am
by CBx86
More info about my issue.

Every time my internet drops and return, add all my firewall.user lines again.
(my internet drops a lot every day)

The QOS rules, etc, dont repeat.
Just mine firewall.user. :|

>.<

Some help, please.

Re: firewall.user 3 times?

Posted: Sun Sep 30, 2018 1:42 am
by Lantis
Is there a reason you can’t just add them as normal rules rather than to firewall.user?

Re: firewall.user 3 times?

Posted: Tue Oct 02, 2018 3:45 pm
by CBx86
Hey!

I tried add the rules in rc.local, they get messy and lose the order (in my case it is essential) after connection down/up.

What i m doing now:

Using firewall.user again.
Remove all my rules before if they exist, one by one;
Them add again in right order.

Im using the keys: INPUT, FORWARD, OUTPUT.

If get messy again. I will try user the 'user chain' zone_lan_forward, zone_lan_input, etc.

Thanks! :D