Настраиваю accel-ppp для pptp-тоннелей на виртуальном Debian 7.7 Wheezy с ядром 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2 x86_64 GNU/Linux.
Accel-PPP 1.8.0, поставлен из пакета.
Radius - cisco-like.
Code: Select all
[radius]
#dictionary=/usr/local/share/accel-ppp/radius/dictionary
#vendor=Cisco
#attr=Cisco-AVPair
#attr=Framed-Pool
dictionary=/usr/share/accel-ppp/radius/dictionary
nas-identifier=accel-ppp
nas-ip-address=x.x.x.x
gw-ip-address=x.x.x.x
#auth-server=127.0.0.1:1812,testing123 (obsolete)
#acct-server=127.0.0.1:1813,testing123 (obsolete)
#server=127.0.0.1,testing123 (obsolete)
server=y.y.y.y,pass,auth-port=1812,acct-port=1813,req-limit=0,fail-time=0
#dae-server=127.0.0.1:3799,testing123
verbose=5
#timeout=3
#max-try=3
#acct-timeout=120
#acct-delay-time=0
#acct-on=0
[shaper]
vendor=Cisco
attr=Cisco-AVPair
#attr=Filter-Id
#down-burst-factor=0.1
#up-burst-factor=1.0
#latency=50
#mpu=0
##mtu=0
#r2q=10
#quantum=1500
#cburst=0
#ifb=ifb0
up-limiter=police
down-limiter=tbf
#leaf-qdisc=sfq perturb 10
#rate-multiplier=1
verbose=1
Code: Select all
Vendor Specific Attribute (26), length: 116, Value: Vendor: Cisco (9)
Vendor Attribute: 1, Length: 108, Value: lcp:interface-config#1=rate-limit output 10000000 1875000 3750000 conform-action continue exceed-action drop
Vendor Specific Attribute (26), length: 113, Value: Vendor: Cisco (9)
Vendor Attribute: 1, Length: 105, Value: lcp:interface-config#2=rate-limit input 5000000 937500 1875000 conform-action continue exceed-action drop
Code: Select all
[2014-11-13 15:01:48]: info: ppp0: connect: ppp0 <--> pptp(192.168.50.100)
[2014-11-13 15:01:51]: info: ppp0: send [RADIUS(1) Access-Request id=1 <User-Name "53492"> <NAS-Identifier "accel-ppp"> <NAS-IP-Address x.x.x.x> <NAS-Port 0> <NAS-Port-Type Virtual> <Service-Type Framed-User> <Framed-Protocol PPP> <Calling-Station-Id "192.168.50.100"> <Called-Station-Id "192.168.50.10"> <CHAP-Challenge > <CHAP-Password >]
[2014-11-13 15:01:51]: info: ppp0: recv [RADIUS(1) Access-Accept id=1 <Service-Type Framed-User> <Framed-Protocol PPP> <Idle-Timeout 86400> <Framed-IP-Address 255.255.255.254> <Framed-IP-Netmask 255.255.255.255> <Framed-MTU 1500><Cisco Cisco-AVPair "lcp:interface-config#1=rate-limit output 10000000 1875000 3750000 conform-action continue exceed-action drop"><Cisco Cisco-AVPair "lcp:interface-config#2=rate-limit input 5000000 937500 1875000 conform-action continue exceed-action drop"> <Message-Authenticator >]
[2014-11-13 15:01:51]: info: ppp0: 53492: authentication succeeded
[2014-11-13 15:01:51]: info: ppp0: send [RADIUS(1) Accounting-Request id=1 <User-Name "53492"> <NAS-Identifier "accel-ppp"> <NAS-IP-Address x.x.x.x> <NAS-Port 0> <NAS-Port-Type Virtual> <Service-Type Framed-User> <Framed-Protocol PPP> <Calling-Station-Id "192.168.50.100"> <Called-Station-Id "192.168.50.10"> <Acct-Status-Type Start> <Acct-Authentic RADIUS> <Acct-Session-Id "249926295ce0cbf0"> <Acct-Session-Time 0> <Acct-Input-Octets 0> <Acct-Output-Octets 0> <Acct-Input-Packets 0> <Acct-Output-Packets 0> <Acct-Input-Gigawords 0> <Acct-Output-Gigawords 0> <Framed-IP-Address 192.168.76.13>]
[2014-11-13 15:01:52]: info: ppp0: recv [RADIUS(1) Accounting-Response id=1]
А вот что видно в сессии:
Code: Select all
accel-ppp# show sessions
ifname | username | calling-sid | ip | rate-limit | type | comp | state | uptime
--------+----------+----------------+---------------+------------+------+------+--------+----------
ppp0 | 53492 | 192.168.50.100 | 192.168.76.13 | 10000/0 | pptp | | active | 00:07:38
Во-вторых, даже это значение не работает: спидтест вполне себе показывает 70-80Мбит/с.
В третьих, если вручную изменить скорость на любую (shaper change ppp0 SPEED temp), то скорость действительно ограничивается, но до некоего минимума (несколько Кбит/с).
В чем может быть проблема?