|
@@ -1772,7 +1772,7 @@ static struct nf_hook_ops ip_vs_ops[] __read_mostly = {
|
|
|
.owner = THIS_MODULE,
|
|
|
.pf = PF_INET,
|
|
|
.hooknum = NF_INET_LOCAL_IN,
|
|
|
- .priority = 99,
|
|
|
+ .priority = NF_IP_PRI_NAT_SRC - 2,
|
|
|
},
|
|
|
/* After packet filtering, forward packet through VS/DR, VS/TUN,
|
|
|
* or VS/NAT(change destination), so that filtering rules can be
|
|
@@ -1782,7 +1782,7 @@ static struct nf_hook_ops ip_vs_ops[] __read_mostly = {
|
|
|
.owner = THIS_MODULE,
|
|
|
.pf = PF_INET,
|
|
|
.hooknum = NF_INET_LOCAL_IN,
|
|
|
- .priority = 101,
|
|
|
+ .priority = NF_IP_PRI_NAT_SRC - 1,
|
|
|
},
|
|
|
/* Before ip_vs_in, change source only for VS/NAT */
|
|
|
{
|
|
@@ -1790,7 +1790,7 @@ static struct nf_hook_ops ip_vs_ops[] __read_mostly = {
|
|
|
.owner = THIS_MODULE,
|
|
|
.pf = PF_INET,
|
|
|
.hooknum = NF_INET_LOCAL_OUT,
|
|
|
- .priority = -99,
|
|
|
+ .priority = NF_IP_PRI_NAT_DST + 1,
|
|
|
},
|
|
|
/* After mangle, schedule and forward local requests */
|
|
|
{
|
|
@@ -1798,7 +1798,7 @@ static struct nf_hook_ops ip_vs_ops[] __read_mostly = {
|
|
|
.owner = THIS_MODULE,
|
|
|
.pf = PF_INET,
|
|
|
.hooknum = NF_INET_LOCAL_OUT,
|
|
|
- .priority = -98,
|
|
|
+ .priority = NF_IP_PRI_NAT_DST + 2,
|
|
|
},
|
|
|
/* After packet filtering (but before ip_vs_out_icmp), catch icmp
|
|
|
* destined for 0.0.0.0/0, which is for incoming IPVS connections */
|
|
@@ -1824,7 +1824,7 @@ static struct nf_hook_ops ip_vs_ops[] __read_mostly = {
|
|
|
.owner = THIS_MODULE,
|
|
|
.pf = PF_INET6,
|
|
|
.hooknum = NF_INET_LOCAL_IN,
|
|
|
- .priority = 99,
|
|
|
+ .priority = NF_IP6_PRI_NAT_SRC - 2,
|
|
|
},
|
|
|
/* After packet filtering, forward packet through VS/DR, VS/TUN,
|
|
|
* or VS/NAT(change destination), so that filtering rules can be
|
|
@@ -1834,7 +1834,7 @@ static struct nf_hook_ops ip_vs_ops[] __read_mostly = {
|
|
|
.owner = THIS_MODULE,
|
|
|
.pf = PF_INET6,
|
|
|
.hooknum = NF_INET_LOCAL_IN,
|
|
|
- .priority = 101,
|
|
|
+ .priority = NF_IP6_PRI_NAT_SRC - 1,
|
|
|
},
|
|
|
/* Before ip_vs_in, change source only for VS/NAT */
|
|
|
{
|
|
@@ -1842,7 +1842,7 @@ static struct nf_hook_ops ip_vs_ops[] __read_mostly = {
|
|
|
.owner = THIS_MODULE,
|
|
|
.pf = PF_INET,
|
|
|
.hooknum = NF_INET_LOCAL_OUT,
|
|
|
- .priority = -99,
|
|
|
+ .priority = NF_IP6_PRI_NAT_DST + 1,
|
|
|
},
|
|
|
/* After mangle, schedule and forward local requests */
|
|
|
{
|
|
@@ -1850,7 +1850,7 @@ static struct nf_hook_ops ip_vs_ops[] __read_mostly = {
|
|
|
.owner = THIS_MODULE,
|
|
|
.pf = PF_INET6,
|
|
|
.hooknum = NF_INET_LOCAL_OUT,
|
|
|
- .priority = -98,
|
|
|
+ .priority = NF_IP6_PRI_NAT_DST + 2,
|
|
|
},
|
|
|
/* After packet filtering (but before ip_vs_out_icmp), catch icmp
|
|
|
* destined for 0.0.0.0/0, which is for incoming IPVS connections */
|