project/qosify.git
3 years agoubus: drop dnsmasq check for dns_result method
Felix Fietkau [Mon, 15 Nov 2021 20:10:12 +0000 (21:10 +0100)]
ubus: drop dnsmasq check for dns_result method

Preparation for switching dnsmasq to reporting cache entries

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agomap: add support for defining aliases
Felix Fietkau [Fri, 12 Nov 2021 21:54:51 +0000 (22:54 +0100)]
map: add support for defining aliases

Aliases can be used to make a distinction between ingress and egress tags,
and they make it easier to reconfigure tags without having to update the rule
config files

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agobpf: add initial support for splitting map dscp value into ingress and egress
Felix Fietkau [Fri, 12 Nov 2021 14:51:35 +0000 (15:51 +0100)]
bpf: add initial support for splitting map dscp value into ingress and egress

This will be used for supporting different tags on the LAN side and the WAN side.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoREADME: dnsmasq integration is complete
Felix Fietkau [Tue, 9 Nov 2021 21:08:51 +0000 (22:08 +0100)]
README: dnsmasq integration is complete

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoqosify: support wildcards in classifier filenames
Felix Fietkau [Mon, 8 Nov 2021 21:21:34 +0000 (22:21 +0100)]
qosify: support wildcards in classifier filenames

This makes it easier to support having a directory with extra installable files
without having to update the configuration

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoubus: fix crash caused by missing static keyword
Felix Fietkau [Mon, 8 Nov 2021 21:12:05 +0000 (22:12 +0100)]
ubus: fix crash caused by missing static keyword

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agomap: default to fnmatch matching for dns patterns. support regex via leading /
Felix Fietkau [Mon, 8 Nov 2021 20:59:22 +0000 (21:59 +0100)]
map: default to fnmatch matching for dns patterns. support regex via leading /

Simplifies writing DNS matching rules

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoubus: subscribe to dnsmasq.dns for dns lookup results
Felix Fietkau [Mon, 8 Nov 2021 13:45:08 +0000 (14:45 +0100)]
ubus: subscribe to dnsmasq.dns for dns lookup results

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoqosify-bpf: inline check_flow() to ensure that it is jited
Felix Fietkau [Thu, 4 Nov 2021 19:35:07 +0000 (20:35 +0100)]
qosify-bpf: inline check_flow() to ensure that it is jited

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agomap: increase active timeout to 300
Felix Fietkau [Thu, 4 Nov 2021 14:04:30 +0000 (15:04 +0100)]
map: increase active timeout to 300

Matches a typical maximum HTTP keepalive timeout

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agomap: add DF codepoint
Felix Fietkau [Thu, 4 Nov 2021 13:58:02 +0000 (14:58 +0100)]
map: add DF codepoint

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agomap: improve timeout handling of IP entries
Felix Fietkau [Thu, 4 Nov 2021 13:55:12 +0000 (14:55 +0100)]
map: improve timeout handling of IP entries

Instead of expiring them at TTL, introduce an active timeout (default 60)
Whenever an IP entry expires, timeout gets reset to the active timeout
value. If during that time, a packet was seen matching the IP entry, the
timeout is automatically extended.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoloader: always reinitialize programs
Felix Fietkau [Thu, 4 Nov 2021 13:01:55 +0000 (14:01 +0100)]
loader: always reinitialize programs

Improves reliability of upgrading the package

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoREADME: fix another typo
Felix Fietkau [Wed, 3 Nov 2021 18:29:29 +0000 (19:29 +0100)]
README: fix another typo

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoREADME: fix typo
Felix Fietkau [Wed, 3 Nov 2021 18:28:50 +0000 (19:28 +0100)]
README: fix typo

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agointerface: enable NAT on interfaces by default
Felix Fietkau [Wed, 3 Nov 2021 18:25:32 +0000 (19:25 +0100)]
interface: enable NAT on interfaces by default

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agomap: introduce low effort codepoint from RFC8622
Felix Fietkau [Wed, 3 Nov 2021 16:58:42 +0000 (17:58 +0100)]
map: introduce low effort codepoint from RFC8622

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoREADME: document mapping file syntax
Felix Fietkau [Wed, 3 Nov 2021 14:36:37 +0000 (15:36 +0100)]
README: document mapping file syntax

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoREADME: mention dns regex entries
Felix Fietkau [Wed, 3 Nov 2021 14:30:52 +0000 (15:30 +0100)]
README: mention dns regex entries

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoubus: add support for dynamically adding dns based rules
Felix Fietkau [Wed, 3 Nov 2021 14:26:40 +0000 (15:26 +0100)]
ubus: add support for dynamically adding dns based rules

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoubus: add api for providing dns lookup results for dns regex rules
Felix Fietkau [Wed, 3 Nov 2021 14:24:58 +0000 (15:24 +0100)]
ubus: add api for providing dns lookup results for dns regex rules

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoubus: remove unused enum
Felix Fietkau [Wed, 3 Nov 2021 11:29:05 +0000 (12:29 +0100)]
ubus: remove unused enum

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agomap: add support for adding dns regex patterns
Felix Fietkau [Wed, 3 Nov 2021 11:27:11 +0000 (12:27 +0100)]
map: add support for adding dns regex patterns

This will be used for hostname based dscp mark rules

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agomap: make a helper function for freeing entries
Felix Fietkau [Wed, 3 Nov 2021 10:13:53 +0000 (11:13 +0100)]
map: make a helper function for freeing entries

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoInitial import
Felix Fietkau [Tue, 12 Oct 2021 12:41:21 +0000 (14:41 +0200)]
Initial import

Signed-off-by: Felix Fietkau <nbd@nbd.name>