mirror of
https://github.com/containers/podman.git
synced 2025-07-04 18:27:33 +08:00
@ -26,6 +26,9 @@
|
|||||||
"portMappings": true
|
"portMappings": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "firewall"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "tuning"
|
"type": "tuning"
|
||||||
}
|
}
|
||||||
|
@ -209,6 +209,7 @@ func (r *LocalRuntime) NetworkCreateBridge(cli *cliconfig.NetworkCreateValues) (
|
|||||||
bridge := network.NewHostLocalBridge(bridgeDeviceName, isGateway, false, ipMasq, ipamConfig)
|
bridge := network.NewHostLocalBridge(bridgeDeviceName, isGateway, false, ipMasq, ipamConfig)
|
||||||
plugins = append(plugins, bridge)
|
plugins = append(plugins, bridge)
|
||||||
plugins = append(plugins, network.NewPortMapPlugin())
|
plugins = append(plugins, network.NewPortMapPlugin())
|
||||||
|
plugins = append(plugins, network.NewFirewallPlugin())
|
||||||
// if we find the dnsname plugin, we add configuration for it
|
// if we find the dnsname plugin, we add configuration for it
|
||||||
if network.HasDNSNamePlugin(runtimeConfig.CNIPluginDir) && !cli.DisableDNS {
|
if network.HasDNSNamePlugin(runtimeConfig.CNIPluginDir) && !cli.DisableDNS {
|
||||||
// Note: in the future we might like to allow for dynamic domain names
|
// Note: in the future we might like to allow for dynamic domain names
|
||||||
|
@ -110,7 +110,6 @@ func NewPortMapPlugin() PortMapConfig {
|
|||||||
func NewFirewallPlugin() FirewallConfig {
|
func NewFirewallPlugin() FirewallConfig {
|
||||||
return FirewallConfig{
|
return FirewallConfig{
|
||||||
PluginType: "firewall",
|
PluginType: "firewall",
|
||||||
Backend: "iptables",
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user