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: 471
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Gargoyle 1.11.0 Release Candidate 5

Postby RomanHK » Thu May 09, 2019 1:31 pm

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 Gargoyle 1.12.0
Linksys WRT3200ACM with Gargoyle 1.12.0
TL-WR1043ND v2 with Gargoyle 1.10.0

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

Re: Gargoyle 1.11.0 Release Candidate 5

Postby tester » Thu May 09, 2019 4:14 pm

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: 471
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Gargoyle 1.11.0 Release Candidate 5

Postby RomanHK » Thu May 09, 2019 4:54 pm

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 Gargoyle 1.12.0
Linksys WRT3200ACM with Gargoyle 1.12.0
TL-WR1043ND v2 with Gargoyle 1.10.0

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

Re: Gargoyle 1.11.0 Release Candidate 5

Postby tester » Sat May 11, 2019 12:39 pm

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: 471
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Gargoyle 1.11.0 Release Candidate 5

Postby RomanHK » Sat May 11, 2019 12:53 pm

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 Gargoyle 1.12.0
Linksys WRT3200ACM with Gargoyle 1.12.0
TL-WR1043ND v2 with Gargoyle 1.10.0

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

Re: Gargoyle 1.11.0 Release Candidate 5

Postby tester » Sat May 11, 2019 1:43 pm

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: 471
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Gargoyle 1.11.0 Release Candidate 5

Postby RomanHK » Sat May 11, 2019 2:02 pm

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 Gargoyle 1.12.0
Linksys WRT3200ACM with Gargoyle 1.12.0
TL-WR1043ND v2 with Gargoyle 1.10.0

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

Re: Gargoyle 1.11.0 Release Candidate 5

Postby tester » Sat May 11, 2019 2:09 pm

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: 471
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Gargoyle 1.11.0 Release Candidate 5

Postby RomanHK » Sat May 11, 2019 2:12 pm

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 Gargoyle 1.12.0
Linksys WRT3200ACM with Gargoyle 1.12.0
TL-WR1043ND v2 with Gargoyle 1.10.0

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

Re: Gargoyle 1.11.0 Release Candidate 5

Postby RomanHK » Wed May 15, 2019 10:51 am

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 Gargoyle 1.12.0
Linksys WRT3200ACM with Gargoyle 1.12.0
TL-WR1043ND v2 with Gargoyle 1.10.0


Return to “Show / Tell / Contribute”

Who is online

Users browsing this forum: No registered users and 1 guest