How to disable external network access for tiup?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 请问tiup如何关闭外网访问呢?

| username: DBRE

How can I disable external network access for tiup?

| username: 啦啦啦啦啦 | Original post link

Refer to this:

| username: TiDBer_小阿飞 | Original post link

What do you mean? What external network? Is it a virtual machine set up on your local machine? Just turn off the external network of the virtual machine.

| username: zhanggame1 | Original post link

Follow these steps to switch to a local source:

  1. On the official download page, select the corresponding version of the TiDB server offline image package (which includes the TiUP offline component package). You need to download both the TiDB-community-server package and the TiDB-community-toolkit package.

  2. Extract and merge the offline images:

tar xzvf tidb-community-server-${version}-linux-amd64.tar.gz
tar xf tidb-community-toolkit-${version}-linux-amd64.tar.gz
ls -ld tidb-community-server-${version}-linux-amd64 tidb-community-toolkit-${version}-linux-amd64
cd tidb-community-server-${version}-linux-amd64/
cp -rp keys ~/.tiup/
  1. Switch tiup to the local source so that tiup will no longer download from the internet:
tiup mirror merge ../tidb-community-toolkit-${version}-linux-amd64
  1. If you need to switch back to the online environment, you can execute:
tiup mirror set https://tiup-mirrors.pingcap.com
| username: DBRE | Original post link

I’ll give it a try.

| username: Fly-bird | Original post link

After installation, enable the firewall to block connections to external networks.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.