IPIPGO ip proxy pptp dial-up cluster: PPTP dial-up cluster setup and load balancing configuration

pptp dial-up cluster: PPTP dial-up cluster setup and load balancing configuration

PPTP dial-up clustering in the end can do what? Engaged in the network of the old iron should understand, stand-alone PPTP dial-up the biggest pain point is disconnected reconnected off the business. For example, when doing e-commerce data collection, suddenly disconnected from the network will have to manually redial, the yellow flowers are cold. At this time to engage in a dial-up cluster, like the equipment on the multiple security...

pptp dial-up cluster: PPTP dial-up cluster setup and load balancing configuration

What does PPTP dial-up trunking actually do?

Networking veterans should understand that the biggest pain point of stand-alone PPTP dial-up is that theDisconnect and reconnect to drop operations. For example, when you do e-commerce data collection, you have to manually redial when you suddenly disconnect from the network, and the yellow flowers are cold. At this time to engage in a dial-up cluster, as if the equipment on the multiple insurance - A server falls offline, B server immediately on top of the business flow is not jammed at all.

Here's the point! The clustering program must work withPremium Proxy IP PoolIn order to maximize the value. Here we have to favor our family ipipgo's dynamic residential package, the price of 7.67 yuan / GB with automatic switching carrier resources, especially suitable for the need for high-frequency IP switching scenarios.

Hands-on building of dial-up clusters

Prepare three physical servers (don't use virtual machines!) ), CentOS 7 is recommended. The core is just two points:Multi-Card Bindingrespond in singingDialing Script ProgrammingThe


 Install the necessary components
yum install pptp -y
 Create a dialup script template
cat > /etc/ppp/peers/ipipgo <<EOF
pty "pptp server address --nolaunchpppd"
name account
password Password
remotename PPTP
require-mppe-128
EOF

Attention! Each server should be configured with a different egress NIC, and it is recommended to use a USB external NIC (the kind that costs a few tens of dollars on the line). Dialing interval is recommended to set30-second polling mechanism, preventing simultaneous disconnection.

Load Balancing Practical Tips

It is recommended to use Nginx's stream module as a four-layer proxy, which is more efficient than seven-layer forwarding by more than 30%. Key configuration see here:


upstream pptp_cluster {
    upstream pptp_cluster {
        server 192.168.1.10:1723 weight=5;
        server 192.168.1.10:1723 weight=5; server 192.168.1.11:1723 weight=3;
        server 192.168.1.11:1723 weight=3; server 192.168.1.12:1723 weight=2;
    }
    server {
        server 192.168.1.12:1723 weight=2; } server { listen 1723;
        proxy_pass pptp_cluster; } server { listen 1723; proxy_pass pptp_cluster; }
    }
}

There's a trick to weight setting:Allocation of traffic according to operator's package. For example, with ipipgo enterprise package server weighting up, after all, 9.47 yuan / GB of traffic packages are more carry.

Guide to avoiding the pit

Three common fatal mistakes newbies make:

pothole symptomatic prescription
MTU value conflict It's connected, but it's not transferring data. ifconfig ppp0 mtu 1400
DNS contamination Domain name resolution anomaly Change to 8.8.8.8 Alternate DNS
concurrency explosion crash Limit the maximum number of connections to a single node

Don't panic when you encounter abnormal fluctuations in traffic, eighty percent of the IP pool needs to be refreshed. This time ipipgo API extraction function comes in handy, call example:


curl "https://api.ipipgo.com/get?key=你的密钥&count=10&format=pptp"

Frequently Asked Questions QA

Q: What is the difference between the Enterprise and Standard Dynamic Packages?
A: More for the enterprise versionDedicated ASN numberrespond in singingRequest Prioritization", suitable for crawling business that requires fixed regional IPs

Q: What should I do if the cluster nodes suddenly drop out en masse?
A: First check the physical network cable, and then use tcpdump to grab packets to see if it triggers the operator's wind control. It is recommended to open the ipipgo backgroundIntelligent Routing Mode

Q: Do I need a dedicated server for load balancing?
A: It is recommended to use a separate 2-core 4G machine, do not mix with dial-up nodes. If the budget is tight, you can buy ipipgo's cloud server business, which is cheaper than mainstream platforms around 20%

I'll tell you what's on my mind.

It's not the technology that's the most expensive part of this stuff.Stable Agent ResourcesThe first thing you need to do is to get your hands on a static IP address. Previously used an unknown service provider, said that the static IP results in three days to change the section, the father directly deducted the final payment. Later turned to use ipipgo static residential package, 35 yuan / IP / month, although expensive, but wins in the IP clean and stable, the project back and then did not have a moth.

Lastly, a reminder: the testing phase should neverDon't turn on the full bandwidth.! Start by buying a package for 1/3 of the estimated traffic, ipipgo supports expansion at any time, don't drop money on resources you can't use.

This article was originally published or organized by ipipgo.https://www.ipipgo.com/en-us/ipdaili/44755.html

business scenario

Discover more professional services solutions

💡 Click on the button for more details on specialized services

New 10W+ U.S. Dynamic IPs Year-End Sale

Professional foreign proxy ip service provider-IPIPGO

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact Us

13260757327

Online Inquiry. QQ chat

E-mail: hai.liu@xiaoxitech.com

Working hours: Monday to Friday, 9:30-18:30, holidays off
Follow WeChat
Follow us on WeChat

Follow us on WeChat