If vps has multiple ip addresses (for example, brust.net and ds have two ip addresses), how can I change the vps egress ip address?
Haha, this problem has plagued me for a long time.
Today, google has finally found the answer. Laugh
In other words, is the egress ip address used to change the vps available? Well, you can find out if you need to change the ip address to collect data or use a proxy to access the Internet, especially the mjj who asks thieves for verification codes.
Generally, the egress ip address of a vps is the main ip address of vps. When ss5 or http proxy or ssh is set up on this vps, this ip address is used, that is, when you use a proxy to access the Internet or collect data in vps, the ip displayed by ip138.com is the main ip address.
For example, brust and ds have two ip addresses. If ip addresses are rotated to collect ip addresses, it is not easy for websites to use cc or be restricted for other reasons.
Okay, no worries. There is only one sentence for the command. It's very simple. You don't need to restart it, you don't need to contact customer service, and everyone can operate it.
Example:
Route add-net default gw 64.79.103. ** dev eth0: 0
First, you need to log on to the vps through ssh, and then enter:
Ifconfig-
Check the relationship between the NIC (eth0: 0) and ip (64.79.103. Then, use the above command to modify the ip address to take effect immediately.
Command to modify the VPS egress ip address