Re: Iptables/fw3 marks

2024-12-02 Thread Paul D
As far as I know, nothing is tracked. It seems until now the path is just 
beaten into the grass, but if we want something more 'concrete' but not 
inflexible, packages would do well to maintain a list of FWmarks in the wiki. 
Anything more than a file in the repo would be too inflexible (changes take too 
long to get noticed->updated).

Many of the packages I have interacted with can customise the mark anyway.

Multi-bit string? It's just a single number in a long spectrum of possibles. 
'owning' a bit reduces the bandwidth available (65K -> 16).


On 2024-12-01 00:52, Philip Prindeville wrote:
> Hi,
> 
> I want to use a mark to annotate that a packet has gone through REDIRECT.
> 
> Looking at mwan3 I see that it uses 0xfc00 for its marking.
> 
> I have a couple of questions:
> 
> (1) Why does this require 6 bits out of a 16-bit field?  Why isn't a single 
> bit adequate?
> 
> (2) How does a package "reserve" a bit for marking such that the same bit 
> doesn't get re-used by another package and create conflict/ambiguity?  i.e. 
> who manages the assignment of masks and in what file is this recorded?
> 
> Thanks,
> 
> -Philip
> 
> 


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Iptables/fw3 marks

2024-11-30 Thread Philip Prindeville via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.--- Begin Message ---
Hi,

I want to use a mark to annotate that a packet has gone through REDIRECT.

Looking at mwan3 I see that it uses 0xfc00 for its marking.

I have a couple of questions:

(1) Why does this require 6 bits out of a 16-bit field?  Why isn't a single bit 
adequate?

(2) How does a package "reserve" a bit for marking such that the same bit 
doesn't get re-used by another package and create conflict/ambiguity?  i.e. who 
manages the assignment of masks and in what file is this recorded?

Thanks,

-Philip


--- End Message ---
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel