Commit 57760b1a authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

test: zone: renumber marks

parent ba2204ae
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
} }
], ],
"mark": [ "mark": [
{ "in": [ "_fw", "A" ], "mark": 0 }, { "in": [ "_fw", "A" ], "mark": 1 },
{ "in": "B", "out": "C", "mark": 1 }, { "in": "B", "out": "C", "mark": 2 },
{ "out": [ "_fw", "B" ], "mark": 2 } { "out": [ "_fw", "B" ], "mark": 3 }
], ],
"no-track": [ "no-track": [
{ "in": [ "_fw", "A" ] }, { "in": [ "_fw", "A" ] },
......
...@@ -2435,24 +2435,24 @@ Log none {"mode":"none"} ...@@ -2435,24 +2435,24 @@ Log none {"mode":"none"}
(log) (log)
Mark 1 {"in":["_fw","A"],"mark":0} Mark 1 {"in":["_fw","A"],"mark":1}
(zone) (zone)
inet/mangle/OUTPUT -j MARK --set-mark 0 inet/mangle/OUTPUT -j MARK --set-mark 1
inet/mangle/PREROUTING -i eth0 -j MARK --set-mark 0 inet/mangle/PREROUTING -i eth0 -j MARK --set-mark 1
inet6/mangle/OUTPUT -j MARK --set-mark 0 inet6/mangle/OUTPUT -j MARK --set-mark 1
inet6/mangle/PREROUTING -i eth0 -j MARK --set-mark 0 inet6/mangle/PREROUTING -i eth0 -j MARK --set-mark 1
Mark 2 {"in":"B","mark":1,"out":"C"} Mark 2 {"in":"B","mark":2,"out":"C"}
(zone) (zone)
inet/mangle/FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 1 inet/mangle/FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 2
inet/mangle/FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 1 inet/mangle/FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 2
Mark 3 {"mark":2,"out":["_fw","B"]} Mark 3 {"mark":3,"out":["_fw","B"]}
(zone) (zone)
inet/mangle/INPUT -j MARK --set-mark 2 inet/mangle/INPUT -j MARK --set-mark 3
inet/mangle/POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 2 inet/mangle/POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 3
inet6/mangle/INPUT -j MARK --set-mark 2 inet6/mangle/INPUT -j MARK --set-mark 3
inet6/mangle/POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 2 inet6/mangle/POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 3
No-track 1 {"in":["_fw","A"]} No-track 1 {"in":["_fw","A"]}
...@@ -4306,12 +4306,12 @@ COMMIT ...@@ -4306,12 +4306,12 @@ COMMIT
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0] :PREROUTING ACCEPT [0:0]
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 1 -A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 2
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 1 -A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 2
-A INPUT -j MARK --set-mark 2 -A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 0 -A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 2 -A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 0 -A PREROUTING -i eth0 -j MARK --set-mark 1
COMMIT COMMIT
*nat *nat
:INPUT ACCEPT [0:0] :INPUT ACCEPT [0:0]
...@@ -4512,10 +4512,10 @@ COMMIT ...@@ -4512,10 +4512,10 @@ COMMIT
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0] :PREROUTING ACCEPT [0:0]
-A INPUT -j MARK --set-mark 2 -A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 0 -A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 2 -A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 0 -A PREROUTING -i eth0 -j MARK --set-mark 1
COMMIT COMMIT
*raw *raw
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
......
...@@ -1623,12 +1623,12 @@ COMMIT ...@@ -1623,12 +1623,12 @@ COMMIT
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0] :PREROUTING ACCEPT [0:0]
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 1 -A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 2
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 1 -A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 2
-A INPUT -j MARK --set-mark 2 -A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 0 -A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 2 -A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 0 -A PREROUTING -i eth0 -j MARK --set-mark 1
COMMIT COMMIT
*nat *nat
:INPUT ACCEPT [0:0] :INPUT ACCEPT [0:0]
......
...@@ -174,10 +174,10 @@ COMMIT ...@@ -174,10 +174,10 @@ COMMIT
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0] :PREROUTING ACCEPT [0:0]
-A INPUT -j MARK --set-mark 2 -A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 0 -A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 2 -A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 0 -A PREROUTING -i eth0 -j MARK --set-mark 1
COMMIT COMMIT
*raw *raw
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
......
...@@ -19792,24 +19792,24 @@ Log none {"mode":"none"} ...@@ -19792,24 +19792,24 @@ Log none {"mode":"none"}
(log) (log)
Mark 1 {"in":["_fw","A"],"mark":0} Mark 1 {"in":["_fw","A"],"mark":1}
(zone) (zone)
inet/mangle/OUTPUT -j MARK --set-mark 0 inet/mangle/OUTPUT -j MARK --set-mark 1
inet/mangle/PREROUTING -i eth0 -j MARK --set-mark 0 inet/mangle/PREROUTING -i eth0 -j MARK --set-mark 1
inet6/mangle/OUTPUT -j MARK --set-mark 0 inet6/mangle/OUTPUT -j MARK --set-mark 1
inet6/mangle/PREROUTING -i eth0 -j MARK --set-mark 0 inet6/mangle/PREROUTING -i eth0 -j MARK --set-mark 1
Mark 2 {"in":"B","mark":1,"out":"C"} Mark 2 {"in":"B","mark":2,"out":"C"}
(zone) (zone)
inet/mangle/FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 1 inet/mangle/FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 2
inet/mangle/FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 1 inet/mangle/FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 2
Mark 3 {"mark":2,"out":["_fw","B"]} Mark 3 {"mark":3,"out":["_fw","B"]}
(zone) (zone)
inet/mangle/INPUT -j MARK --set-mark 2 inet/mangle/INPUT -j MARK --set-mark 3
inet/mangle/POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 2 inet/mangle/POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 3
inet6/mangle/INPUT -j MARK --set-mark 2 inet6/mangle/INPUT -j MARK --set-mark 3
inet6/mangle/POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 2 inet6/mangle/POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 3
No-track 1 {"in":["_fw","A"]} No-track 1 {"in":["_fw","A"]}
...@@ -29106,12 +29106,12 @@ COMMIT ...@@ -29106,12 +29106,12 @@ COMMIT
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0] :PREROUTING ACCEPT [0:0]
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 1 -A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 2
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 1 -A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 2
-A INPUT -j MARK --set-mark 2 -A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 0 -A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 2 -A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 0 -A PREROUTING -i eth0 -j MARK --set-mark 1
COMMIT COMMIT
*nat *nat
:INPUT ACCEPT [0:0] :INPUT ACCEPT [0:0]
...@@ -38724,10 +38724,10 @@ COMMIT ...@@ -38724,10 +38724,10 @@ COMMIT
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0] :PREROUTING ACCEPT [0:0]
-A INPUT -j MARK --set-mark 2 -A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 0 -A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 2 -A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 0 -A PREROUTING -i eth0 -j MARK --set-mark 1
COMMIT COMMIT
*raw *raw
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
...@@ -9066,12 +9066,12 @@ COMMIT ...@@ -9066,12 +9066,12 @@ COMMIT
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0] :PREROUTING ACCEPT [0:0]
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 1 -A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 2
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 1 -A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 2
-A INPUT -j MARK --set-mark 2 -A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 0 -A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 2 -A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 0 -A PREROUTING -i eth0 -j MARK --set-mark 1
COMMIT COMMIT
*nat *nat
:INPUT ACCEPT [0:0] :INPUT ACCEPT [0:0]
......
...@@ -9042,10 +9042,10 @@ COMMIT ...@@ -9042,10 +9042,10 @@ COMMIT
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0] :PREROUTING ACCEPT [0:0]
-A INPUT -j MARK --set-mark 2 -A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 0 -A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 2 -A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 0 -A PREROUTING -i eth0 -j MARK --set-mark 1
COMMIT COMMIT
*raw *raw
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
......
...@@ -316,24 +316,24 @@ Log none {"mode":"none"} ...@@ -316,24 +316,24 @@ Log none {"mode":"none"}
(log) (log)
Mark 1 {"in":["_fw","A"],"mark":0} Mark 1 {"in":["_fw","A"],"mark":1}
(zone) (zone)
inet/mangle/OUTPUT -j MARK --set-mark 0 inet/mangle/OUTPUT -j MARK --set-mark 1
inet/mangle/PREROUTING -i eth0 -j MARK --set-mark 0 inet/mangle/PREROUTING -i eth0 -j MARK --set-mark 1
inet6/mangle/OUTPUT -j MARK --set-mark 0 inet6/mangle/OUTPUT -j MARK --set-mark 1
inet6/mangle/PREROUTING -i eth0 -j MARK --set-mark 0 inet6/mangle/PREROUTING -i eth0 -j MARK --set-mark 1
Mark 2 {"in":"B","mark":1,"out":"C"} Mark 2 {"in":"B","mark":2,"out":"C"}
(zone) (zone)
inet/mangle/FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 1 inet/mangle/FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 2
inet/mangle/FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 1 inet/mangle/FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 2
Mark 3 {"mark":2,"out":["_fw","B"]} Mark 3 {"mark":3,"out":["_fw","B"]}
(zone) (zone)
inet/mangle/INPUT -j MARK --set-mark 2 inet/mangle/INPUT -j MARK --set-mark 3
inet/mangle/POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 2 inet/mangle/POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 3
inet6/mangle/INPUT -j MARK --set-mark 2 inet6/mangle/INPUT -j MARK --set-mark 3
inet6/mangle/POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 2 inet6/mangle/POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 3
No-track 1 {"in":["_fw","A"]} No-track 1 {"in":["_fw","A"]}
...@@ -716,12 +716,12 @@ COMMIT ...@@ -716,12 +716,12 @@ COMMIT
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0] :PREROUTING ACCEPT [0:0]
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 1 -A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 2
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 1 -A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 2
-A INPUT -j MARK --set-mark 2 -A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 0 -A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 2 -A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 0 -A PREROUTING -i eth0 -j MARK --set-mark 1
COMMIT COMMIT
*nat *nat
:INPUT ACCEPT [0:0] :INPUT ACCEPT [0:0]
...@@ -878,10 +878,10 @@ COMMIT ...@@ -878,10 +878,10 @@ COMMIT
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0] :PREROUTING ACCEPT [0:0]
-A INPUT -j MARK --set-mark 2 -A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 0 -A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 2 -A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 0 -A PREROUTING -i eth0 -j MARK --set-mark 1
COMMIT COMMIT
*raw *raw
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
......
...@@ -152,12 +152,12 @@ COMMIT ...@@ -152,12 +152,12 @@ COMMIT
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0] :PREROUTING ACCEPT [0:0]
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 1 -A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 2
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 1 -A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 2
-A INPUT -j MARK --set-mark 2 -A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 0 -A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 2 -A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 0 -A PREROUTING -i eth0 -j MARK --set-mark 1
COMMIT COMMIT
*nat *nat
:INPUT ACCEPT [0:0] :INPUT ACCEPT [0:0]
......
...@@ -128,10 +128,10 @@ COMMIT ...@@ -128,10 +128,10 @@ COMMIT
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0] :PREROUTING ACCEPT [0:0]
-A INPUT -j MARK --set-mark 2 -A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 0 -A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 2 -A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 0 -A PREROUTING -i eth0 -j MARK --set-mark 1
COMMIT COMMIT
*raw *raw
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
......
...@@ -312,24 +312,24 @@ Log none {"mode":"none"} ...@@ -312,24 +312,24 @@ Log none {"mode":"none"}
(log) (log)
Mark 1 {"in":["_fw","A"],"mark":0} Mark 1 {"in":["_fw","A"],"mark":1}
(zone) (zone)
inet/mangle/OUTPUT -j MARK --set-mark 0 inet/mangle/OUTPUT -j MARK --set-mark 1
inet/mangle/PREROUTING -i eth0 -j MARK --set-mark 0 inet/mangle/PREROUTING -i eth0 -j MARK --set-mark 1
inet6/mangle/OUTPUT -j MARK --set-mark 0 inet6/mangle/OUTPUT -j MARK --set-mark 1
inet6/mangle/PREROUTING -i eth0 -j MARK --set-mark 0 inet6/mangle/PREROUTING -i eth0 -j MARK --set-mark 1
Mark 2 {"in":"B","mark":1,"out":"C"} Mark 2 {"in":"B","mark":2,"out":"C"}
(zone) (zone)
inet/mangle/FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 1 inet/mangle/FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 2
inet/mangle/FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 1 inet/mangle/FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 2
Mark 3 {"mark":2,"out":["_fw","B"]} Mark 3 {"mark":3,"out":["_fw","B"]}
(zone) (zone)
inet/mangle/INPUT -j MARK --set-mark 2 inet/mangle/INPUT -j MARK --set-mark 3
inet/mangle/POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 2 inet/mangle/POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 3
inet6/mangle/INPUT -j MARK --set-mark 2 inet6/mangle/INPUT -j MARK --set-mark 3
inet6/mangle/POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 2 inet6/mangle/POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 3
No-track 1 {"in":["_fw","A"]} No-track 1 {"in":["_fw","A"]}
...@@ -706,12 +706,12 @@ COMMIT ...@@ -706,12 +706,12 @@ COMMIT
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0] :PREROUTING ACCEPT [0:0]
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 1 -A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 2
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 1 -A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 2
-A INPUT -j MARK --set-mark 2 -A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 0 -A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 2 -A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 0 -A PREROUTING -i eth0 -j MARK --set-mark 1
COMMIT COMMIT
*nat *nat
:INPUT ACCEPT [0:0] :INPUT ACCEPT [0:0]
...@@ -860,10 +860,10 @@ COMMIT ...@@ -860,10 +860,10 @@ COMMIT
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0] :PREROUTING ACCEPT [0:0]
-A INPUT -j MARK --set-mark 2 -A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 0 -A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 2 -A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 0 -A PREROUTING -i eth0 -j MARK --set-mark 1
COMMIT COMMIT
*raw *raw
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
......
...@@ -146,12 +146,12 @@ COMMIT ...@@ -146,12 +146,12 @@ COMMIT
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0] :PREROUTING ACCEPT [0:0]
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 1 -A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 2
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 1 -A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 2
-A INPUT -j MARK --set-mark 2 -A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 0 -A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 2 -A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 0 -A PREROUTING -i eth0 -j MARK --set-mark 1
COMMIT COMMIT
*nat *nat
:INPUT ACCEPT [0:0] :INPUT ACCEPT [0:0]
......
...@@ -104,10 +104,10 @@ COMMIT ...@@ -104,10 +104,10 @@ COMMIT
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0] :PREROUTING ACCEPT [0:0]
-A INPUT -j MARK --set-mark 2 -A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 0 -A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 2 -A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 0 -A PREROUTING -i eth0 -j MARK --set-mark 1
COMMIT COMMIT
*raw *raw
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment