linux限制pptp连接数_Linux PPTP 连接数限制

Linux 搭建PPTP Server连接超过100个后,就再无法拨号成功了。

查看log 发现有以下信息:

# logread |grep -v "GRE"

Nov 20 11:17:13 pptpd[21132]: CTRL: Received PPTP Control Message (type: 5)

Nov 20 11:17:13 pptpd[21132]: CTRL: Made a ECHO RPLY packet

Nov 20 11:17:13 pptpd[21132]: CTRL: I wrote 20 bytes to the client.

Nov 20 11:17:13 pptpd[21132]: CTRL: Sent packet to client

#man pptpd.conf

connections n

limits the number of client connections that may be accepted.

If pptpd is allocating IP addresses (e.g. delegate is not used)

then the number of connections is also limited by the remoteip

option. The default is 100.

PPTP Server 最大连接数,是connections和地址池数量一起控制的,connections默认是100,导致无法连接更多。

如果希望最大连接1000条,可以在pptpd.conf中添加一行配置(地址池要有1000个地址):

connections 1000

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值