Use a more targeted iptables rule to block access to control port
Only block the specific port Weave Net is listening on. Add a comment so users know what the rule is for. Remove the rule added in v2.6.3 because it was too coarse.
This commit is contained in:
1 parent
95c020fbe0
commit
a46d18da0c
3 files changed
+17
-4
No files matched your search
@@ -307,6 +307,11 @@ func main() {
|
||||
|
||||
bridgeConfig.Mac = name.String()
|
||||
bridgeConfig.Port = config.Port
|
||||
if httpAddr != "" {
|
||||
if _, port, err := net.SplitHostPort(httpAddr); err == nil {
|
||||
bridgeConfig.ControlPort = port
|
||||
}
|
||||
}
|
||||
ips := ipset.New(common.LogLogger(), 0)
|
||||
bridgeType, err := weavenet.EnsureBridge(procPath, &bridgeConfig, Log, ips)
|
||||
checkFatal(err)
|
||||
|
||||
Reference in new issue
Block a user