Using a Domestic VPS as an Intermediate Proxy to Forward Requests to a Foreign VPS¶
Original post: https://groups.google.com/g/go-gost/c/aLj9ruoSp4U.
A foreign VPS can help us access the open internet, but over time, it may suffer from rate limiting or instability. Using a domestic VPS as a relay can improve the situation.
Let's assume the domestic VPS address is aliyun.com and the foreign VPS address is linode.com. There are two approaches.
Bridge Method¶
First, set up the bridge piers:
On the foreign VPS (linode.com):
On the domestic VPS (aliyun.com):
Then connect the piers to cross the bridge:
Local machine:
This approach offers better flexibility since the VPS nodes are independent, allowing arbitrary combinations when multiple VPS are involved.
Chain Method¶
First, build a chain:
On the foreign VPS (linode.com):
On the domestic VPS (aliyun.com):
Then build the local chain:
Local machine:
Although less flexible than the bridge method, this approach allows the domestic VPS to act as an HTTPS or Shadowsocks proxy, enabling applications that support these proxy types to connect directly to the domestic VPS for internet access.