Skip to content

Commit 530f97d

Browse files
dmitshurgopherbot
authored andcommitted
cmd/buildlet: update vcs-test.golang.org IP
It's changing as part of the move to GKE. Keep the old IP temporarily accessible while the DNS change gradually propagates. For golang/go#53889. Updates golang/go#51444. Change-Id: I324623c3b79d1b7af0dd2d8f3aea5acec4b849f7 Reviewed-on: https://go-review.googlesource.com/c/build/+/418777 Reviewed-by: Heschi Kreinick <[email protected]> Run-TryBot: Dmitri Shuralyov <[email protected]> Reviewed-by: Carlos Amedee <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 33f3ec2 commit 530f97d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/buildlet/buildlet.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2011,7 +2011,9 @@ func disableOutboundNetwork() {
20112011

20122012
func disableOutboundNetworkLinux() {
20132013
const iptables = "/sbin/iptables"
2014-
const vcsTestGolangOrgIP = "35.184.38.56" // vcs-test.golang.org
2014+
const vcsTestGolangOrgIPOnVM = "35.184.38.56" // vcs-test.golang.org, on previous VM
2015+
runOrLog(exec.Command(iptables, "-I", "OUTPUT", "1", "-m", "state", "--state", "NEW", "-d", vcsTestGolangOrgIPOnVM, "-p", "tcp", "-j", "ACCEPT"))
2016+
const vcsTestGolangOrgIP = "34.110.184.62" // vcs-test.golang.org, on GKE
20152017
runOrLog(exec.Command(iptables, "-I", "OUTPUT", "1", "-m", "state", "--state", "NEW", "-d", vcsTestGolangOrgIP, "-p", "tcp", "-j", "ACCEPT"))
20162018
runOrLog(exec.Command(iptables, "-I", "OUTPUT", "2", "-m", "state", "--state", "NEW", "-d", "10.0.0.0/8", "-p", "tcp", "-j", "ACCEPT"))
20172019
runOrLog(exec.Command(iptables, "-I", "OUTPUT", "3", "-m", "state", "--state", "NEW", "-p", "tcp", "--dport", "443", "-j", "REJECT", "--reject-with", "icmp-host-prohibited"))

0 commit comments

Comments
 (0)