Ver Fonte

Merge pull request #933 from gravitl/feature_v0.12.1_port_forwarding

run iptables regularly
dcarns há 3 anos atrás
pai
commit
663445fd59
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      mq/publishers.go

+ 6 - 0
mq/publishers.go

@@ -96,6 +96,12 @@ func sendPeers() {
 	var force bool
 	peer_force_send++
 	if peer_force_send == 5 {
+
+		// run iptables update to ensure gateways work correctly and mq is forwarded if containerized
+		if servercfg.ManageIPTables() != "off" {
+			serverctl.InitIPTables()
+		}
+
 		force = true
 		peer_force_send = 0
 		err := logic.TimerCheckpoint() // run telemetry & log dumps if 24 hours has passed..