xref: /aosp_15_r20/external/iptables/extensions/libipt_realm.txlate (revision a71a954618bbadd4a345637e5edcf36eec826889)
1iptables-translate -A PREROUTING -m realm --realm 4
2nft 'add rule ip filter PREROUTING rtclassid 0x4 counter'
3
4iptables-translate -A PREROUTING -m realm --realm 5/5
5nft 'add rule ip filter PREROUTING rtclassid and 0x5 == 0x5 counter'
6
7iptables-translate -A PREROUTING -m realm ! --realm 50
8nft 'add rule ip filter PREROUTING rtclassid != 0x32 counter'
9
10iptables-translate -A INPUT -m realm --realm 1/0xf
11nft 'add rule ip filter INPUT rtclassid and 0xf == 0x1 counter'
12