mirror of
https://github.com/moby/moby.git
synced 2026-07-13 02:52:20 +00:00
Renamed driver config variable to EnableIP6Tables
Signed-off-by: Benjamin Böhmke <benjamin@boehmke.net>
This commit is contained in:
@@ -57,8 +57,8 @@ type iptablesCleanFuncs []iptableCleanFunc
|
||||
type configuration struct {
|
||||
EnableIPForwarding bool
|
||||
EnableIPTables bool
|
||||
EnableIP6Tables bool
|
||||
EnableUserlandProxy bool
|
||||
EnableIPv6 bool
|
||||
UserlandProxyPath string
|
||||
}
|
||||
|
||||
@@ -376,7 +376,7 @@ func (d *driver) configure(option map[string]interface{}) error {
|
||||
}
|
||||
|
||||
removeIPChains(iptables.IPv4)
|
||||
if config.EnableIPv6 {
|
||||
if config.EnableIP6Tables {
|
||||
removeIPChains(iptables.IPv6)
|
||||
}
|
||||
|
||||
@@ -384,7 +384,7 @@ func (d *driver) configure(option map[string]interface{}) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if config.EnableIPv6 {
|
||||
if config.EnableIP6Tables {
|
||||
natChainV6, filterChainV6, isolationChain1V6, isolationChain2V6, err = setupIPChains(config, iptables.IPv6)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -408,7 +408,7 @@ func (d *driver) configure(option map[string]interface{}) error {
|
||||
logrus.Warn(err)
|
||||
return err
|
||||
}
|
||||
if config.EnableIPv6 {
|
||||
if config.EnableIP6Tables {
|
||||
iptable := iptables.GetIptable(iptables.IPv6)
|
||||
if err := iptable.SetDefaultPolicy(iptables.Filter, "FORWARD", iptables.Drop); err != nil {
|
||||
logrus.Warnf("Setting the default DROP policy on firewall reload failed, %v", err)
|
||||
|
||||
@@ -16,7 +16,7 @@ func (n *bridgeNetwork) setupFirewalld(config *networkConfiguration, i *bridgeIn
|
||||
iptables.OnReloaded(func() { n.setupIPTables(config, i) })
|
||||
iptables.OnReloaded(n.portMapper.ReMapAll)
|
||||
|
||||
if driverConfig.EnableIPv6 == true {
|
||||
if driverConfig.EnableIP6Tables == true {
|
||||
iptables.OnReloaded(n.portMapperV6.ReMapAll)
|
||||
}
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@ func (n *bridgeNetwork) setupIPTables(config *networkConfiguration, i *bridgeInt
|
||||
return err
|
||||
}
|
||||
|
||||
if !driverConfig.EnableIPv6 || i.bridgeIPv6 == nil {
|
||||
if !driverConfig.EnableIP6Tables || i.bridgeIPv6 == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user