Gargoyle 1.11.0 Release Candidate 5

Want to share your OpenWrt / Gargoyle knowledge? Implemented a new feature? Let us know here.

Moderator: Moderators

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Gargoyle 1.11.0 Release Candidate 5

Post by RomanHK »

tester wrote:
RomanHK wrote:a) Sometimes the IMQ driver is loaded in parallel with the NAT driver and then the Internet is not running, the log does not show errors.
b) NAT is loaded first and then the error "Error hooking IMQ" appears in the log.
c) IMQ driver loads first, then NAT driver (not concurrently) and internet works.
Got it, thanks. But what output of 'cat /proc/net/ip_tables_names' will be in cases 'a)' and 'b)'?
For a):

Code: Select all

root@Gargoyle:~# cat /proc/net/ip_tables_names
mangle
filter
root@Gargoyle:~#
For b):

Code: Select all

root@Gargoyle:~# cat /proc/net/ip_tables_names
nat
mangle
filter
root@Gargoyle:~#
For c):

Code: Select all

root@Gargoyle:~# cat /proc/net/ip_tables_names
nat
mangle
filter
root@Gargoyle:~#
EDIT:
Just to notice:
If there is an error in NAT, you can run the module install command as many times as you want and nothing will be done anyway (only a new router restart will help):

Code: Select all

root@Gargoyle:~# modprobe iptable_nat
root@Gargoyle:~#
Correct output (when NAT works):

Code: Select all

root@Gargoyle:~# modprobe iptable_nat
iptable_nat is already loaded
root@Gargoyle:~#
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

tester
Posts: 15
Joined: Wed May 08, 2019 4:15 pm

Re: Gargoyle 1.11.0 Release Candidate 5

Post by tester »

RomanHK wrote:For b):
How then we can detect this bug with a script? Yours `cat /proc/net/ip_tables_names | grep nat` is not enough now, it's only for case 'a'.
RomanHK wrote:(only a new router restart will help)
Do you try smth like this:

/etc/init.d/firewall stop
/etc/init.d/qos_gargoyle restart
/etc/init.d/firewall start

Will not help as well?

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Gargoyle 1.11.0 Release Candidate 5

Post by RomanHK »

tester wrote:How then we can detect this bug with a script? Yours `cat /proc/net/ip_tables_names | grep nat` is not enough now, it's only for case 'a'.
This IMQ@NAT error is only when these two modules collide. The OpenWrt module no longer uses the IMQ, so I am making it out - that's the only difference between OpenWrt and Gargoyle. When the Internet does not run, I run the script and the error is reflected every time that iptable_nat is not loaded.
tester wrote:Do you try smth like this:

/etc/init.d/firewall stop
/etc/init.d/qos_gargoyle restart
/etc/init.d/firewall start
Yes, I tried to restart all of these services but no result. The error is in the kernel module and nothing else will help, nor release the module and reload it - it behaves as if it has loaded correctly, but it is not.
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

tester
Posts: 15
Joined: Wed May 08, 2019 4:15 pm

Re: Gargoyle 1.11.0 Release Candidate 5

Post by tester »

RomanHK wrote:
When we rename 46-ipt-imq to ipt-imq it starts to load earlier or later? I thought that numbers are loading earlier, no?

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Gargoyle 1.11.0 Release Candidate 5

Post by RomanHK »

I also thought, but still it didn't help:
Cezary wrote:The same problem has several of my users, on various platform. One of them says that changing the priority of imq does not solve the problem.
I have nothing better. My latest edits will ensure that the IMQ module is loaded first independently of the other modules that are responsible for it.
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

tester
Posts: 15
Joined: Wed May 08, 2019 4:15 pm

Re: Gargoyle 1.11.0 Release Candidate 5

Post by tester »

I mean, maybe we had to rename 46-ipt-imq to 01-ipt-imq?

But moving to modules-boot.d looking better, of course.

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Gargoyle 1.11.0 Release Candidate 5

Post by RomanHK »

tester wrote:I mean, maybe we had to rename 46-ipt-imq to 01-ipt-imq?

But moving to modules-boot.d looking better, of course.
It doesn't matter in the /etc/modules-boot.d directory because NAT modules do not run in this directory.
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

tester
Posts: 15
Joined: Wed May 08, 2019 4:15 pm

Re: Gargoyle 1.11.0 Release Candidate 5

Post by tester »

RomanHK

So if I don't want to use links I have to copy (not move) file
46-ipt-imq to /etc/modules-boot.d/ ?

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Gargoyle 1.11.0 Release Candidate 5

Post by RomanHK »

tester wrote:RomanHK

So if I don't want to use links I have to copy (not move) file
46-ipt-imq to /etc/modules-boot.d/ ?
Practically yes.

EDIT: The link there is just to ensure consistency when something changes in the module so that it doesn't have to change in more places. In this case, size doesn't matter. But it is correct to create a link.
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Gargoyle 1.11.0 Release Candidate 5

Post by RomanHK »

So I have too much bad news. :cry: :cry: :cry:
Although I delayed loading the IMQ module a few seconds, it did not help and sometimes the iptable_nat kernel module was not loaded.

Now I'm going to test if the IMQ is responsible for the mistakes by deleting it.
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

Post Reply