map: increase active timeout to 300
Matches a typical maximum HTTP keepalive timeout
Signed-off-by: Felix Fietkau <[email protected]>
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 <[email protected]>
loader: always reinitialize programs
Improves reliability of upgrading the package
Signed-off-by: Felix Fietkau <[email protected]>
interface: enable NAT on interfaces by default
Signed-off-by: Felix Fietkau <[email protected]>
map: introduce low effort codepoint from RFC8622
Signed-off-by: Felix Fietkau <[email protected]>
README: document mapping file syntax
Signed-off-by: Felix Fietkau <[email protected]>
README: mention dns regex entries
Signed-off-by: Felix Fietkau <[email protected]>
ubus: add support for dynamically adding dns based rules
Signed-off-by: Felix Fietkau <[email protected]>
ubus: add api for providing dns lookup results for dns regex rules
Signed-off-by: Felix Fietkau <[email protected]>
map: add support for adding dns regex patterns
This will be used for hostname based dscp mark rules
Signed-off-by: Felix Fietkau <[email protected]>
map: make a helper function for freeing entries
Signed-off-by: Felix Fietkau <[email protected]>