mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
Require xt_CONNMARK and define its kernel config values
This commit is contained in:
@@ -185,7 +185,7 @@ func (c *Config) AcceptOutputPublicOnlyNewTraffic(ctx context.Context) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
kernelErr := checkKernelModulesAreOK(c.modules.nfConntrack,
|
kernelErr := checkKernelModulesAreOK(c.modules.nfConntrack,
|
||||||
c.modules.xtConntrack, c.modules.xtConnmark)
|
c.modules.xtConntrack, c.modules.xtConnmark, c.modules.xtCONNMARK)
|
||||||
|
|
||||||
err = c.runIptablesInstructionsNoSave(ctx, ipv4Instructions)
|
err = c.runIptablesInstructionsNoSave(ctx, ipv4Instructions)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ type kernelModules struct {
|
|||||||
nfConntrack kernelModule
|
nfConntrack kernelModule
|
||||||
nfRejectIPv4 kernelModule
|
nfRejectIPv4 kernelModule
|
||||||
xtConnmark kernelModule
|
xtConnmark kernelModule
|
||||||
|
xtCONNMARK kernelModule
|
||||||
xtConntrack kernelModule
|
xtConntrack kernelModule
|
||||||
xtReject kernelModule
|
xtReject kernelModule
|
||||||
}
|
}
|
||||||
@@ -26,6 +27,7 @@ func newKernelModules() kernelModules {
|
|||||||
"nf_conntrack_netlink": &m.nfConntrack,
|
"nf_conntrack_netlink": &m.nfConntrack,
|
||||||
"nf_reject_ipv4": &m.nfRejectIPv4,
|
"nf_reject_ipv4": &m.nfRejectIPv4,
|
||||||
"xt_connmark": &m.xtConnmark,
|
"xt_connmark": &m.xtConnmark,
|
||||||
|
"xt_CONNMARK": &m.xtCONNMARK,
|
||||||
"xt_conntrack": &m.xtConntrack,
|
"xt_conntrack": &m.xtConntrack,
|
||||||
"xt_REJECT": &m.xtReject,
|
"xt_REJECT": &m.xtReject,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,8 +81,11 @@ func moduleNameToKernelFeatureGroups(moduleName string) (featureGroups [][]strin
|
|||||||
// Netfilter Matches
|
// Netfilter Matches
|
||||||
"xt_conntrack": {{"CONFIG_NETFILTER_XT_MATCH_CONNTRACK"}},
|
"xt_conntrack": {{"CONFIG_NETFILTER_XT_MATCH_CONNTRACK"}},
|
||||||
"xt_connmark": {
|
"xt_connmark": {
|
||||||
{"CONFIG_NETFILTER_XT_CONNMARK"},
|
{"CONFIG_NETFILTER_XT_MATCH_CONNMARK"},
|
||||||
{"CONFIG_NETFILTER_XT_MATCH_CONNMARK", "CONFIG_NETFILTER_XT_TARGET_CONNMARK"},
|
},
|
||||||
|
"xt_CONNMARK": {
|
||||||
|
{"CONFIG_NETFILTER_XT_MATCH_CONNMARK"},
|
||||||
|
{"CONFIG_NETFILTER_XT_TARGET_CONNMARK"}, // older kernels
|
||||||
},
|
},
|
||||||
"xt_mark": {
|
"xt_mark": {
|
||||||
{"CONFIG_NETFILTER_XT_MARK"},
|
{"CONFIG_NETFILTER_XT_MARK"},
|
||||||
|
|||||||
Reference in New Issue
Block a user