xebd / accel-ppp

High performance PPTP/L2TP/PPPoE/IPoE server for Linux
GNU General Public License v2.0
296 stars 109 forks source link

probably bonding problem #4

Closed elcanner closed 8 years ago

elcanner commented 8 years ago

Hi. This is the clone of http://accel-ppp.org/forum/viewtopic.php?f=10&t=673&p=2509#p2509 post. accel version - 1.10.2/3 I need to configure accel-ppp ipoe for shaping on linux server with 2 bond interfaces. first of all i've configured accel on test server without any bond and vlan.... all was great.

to router:
eth0      Link encap:Ethernet  HWaddr 00:18:f3:68:99:35  
          inet addr:192.168.5.123  Bcast:192.168.5.127  Mask:255.255.255.128
Client side:
eth1      Link encap:Ethernet  HWaddr 00:18:f3:68:57:3b  
          inet addr:192.168.5.144  Bcast:192.168.5.255  Mask:255.255.255.128

# accel-cmd show sessions
 ifname |   username    |    calling-sid    |      ip       | rate-limit  | type | comp | state  |  uptime  
--------+---------------+-------------------+---------------+-------------+------+------+--------+----------
 ipoe0  | 192.168.5.250 | b8:27:eb:d8:8f:b9 | 192.168.5.250 | 10000/10000 | ipoe |      | active | 00:02:47

 ############## ############## ############## ############## ##############

 mtr from client side:

  1. 192.168.5.144    0.0%     9    0.3   
 2. 192.168.5.3  0.0%     9    0.5   
 3. 10.0.0.17 75.0%     9    0.9   
 4. 78.*.*.145 0.0%     9    0.9   
 5. 185.1.62.69
 ......

than i've installed accel on main server (ubuntu server 16.04) and get routing problems ... nothing goes through however session is up and even shaping rules are here.

[2016-07-12 08:55:28]:  info: ipoe0: create interface ipoe0 parent bond1.207:0
[2016-07-12 08:55:28]: debug: ipoe0: radius(1): req_enter 1
[2016-07-12 08:55:28]:  info: ipoe0: send [RADIUS(1) Access-Request id=1 <User-Name "10.0.0.250"> <NAS-Identifier "Accel-PPP"> <NAS-IP-Address 127.0.0.1> <NAS-Port 1606> <NAS-Port-Id "ipoe0"> <NAS-Port-Type Ethernet> <Calling-Station-Id "00:15:17:cb:46:d4"> <Called-Station-Id "bond1.207:0"> <Framed-IP-Address 10.0.0.250> <User-Password >]
[2016-07-12 08:55:28]: debug: ipoe0: radius(1): req_exit 0
[2016-07-12 08:55:28]:  info: ipoe0: recv [RADIUS(1) Access-Accept id=1<Cisco Cisco-AVPair "lcp:interface-config#1=rate-limit output 1000000 8000 8000 conform-action transmit exceed-action drop"><Cisco Cisco-AVPair "lcp:interface-config#1=rate-limit input 1000000 8000 8000 conform-action transmit exceed-action drop">]
[2016-07-12 08:55:28]:  info: ipoe0: 10.0.0.250: authentication succeeded
[2016-07-12 08:55:28]: debug: ipoe0: radius(1): req_enter 1
# accel-cmd show sessions
ifname | username | calling-sid | ip | rate-limit | type | comp | state | uptime 
--------+------------+-------------------+------------+------------+------+------+--------+----------
ipoe0 | 10.0.0.250 | 00:15:17:cb:46:d4 | 10.0.0.250 | 1000/1000 | ipoe | | active | 00:00:02

config:

[modules]
log_file
log_syslog
ipoe
auth
#auth_mschap_v2
#auth_mschap_v1
#auth_chap_md5
#auth_pap
radius
shaper

[core]
log-error=/var/log/accel-ppp/core.log
thread-count=4
[common]

[log]
log-file=/var/log/accel-ppp/accel-ppp.log
log-emerg=/var/log/accel-ppp/emerg.log
log-fail-file=/var/log/accel-ppp/auth-fail.log
copy=1
level=5

[auth]
any-login=1

[client-ip-range]
10.0.0.0/8

[ipoe]
verbose=9
unit-cache=2000
#interface=bond0.510,shared=1,ifcfg=0,mode=L3,start=up
#,range=10.0.0.0/8
#interface=bond1.207,shared=1,ifcfg=0,mode=L3,start=up    
interface=bond1.207:0,shared=1,ifcfg=0,mode=L3,start=up
#interface=bond1,shared=1,ifcfg=0,mode=L3,start=up,range=10.0.0.0/8
ip-unnumbered=1
proxy-arp=0
proto=100
local-net=10.0.0.0/8

[radius]
dictionary=/usr/share/accel-ppp/radius/dictionary
nas-identifier=Accel-PPP
nas-ip-address=127.0.0.1
server=127.0.0.1,ntfam004,auth-port=1812,acct-port=1813,req-limit=50,fail-timeout=0,max-fail=10,weight=1
verbose=1
max-try=3
acct-timeout=120
acct-on=0
#gw-ip-address=192.168.5.3

[shaper]
#attr=Filter-Id
vendor=Cisco
attr=Cisco-AVPair
ifb=ifb0
up-limiter=htb
down-limiter=htb
#cburst=1375000
#r2q=10
#quantum=1500
#leaf-qdisc=sfq perturb 10
verbose=1
#down-burst-factor=0.1
#up-burst-factor=1.0
#rate-multiplier=1
#fwmark=1
verbose=1

[cli]
verbose=1
telnet=127.0.0.1:2000
tcp=127.0.0.1:2001

But ping goes down after starting accel-ppp ping from client side:

1. 10.0.0.17 10.4% 903 
2. 78.*.*.145 10.5% 903 
3. google-ix.giganet.ua 10.2% 903
4. 209.85.248.105 
....

i've tryed all variants,many accel versions (1.8,1.10.*, git version) , subinterface and vlan interface as listening interface, various config options such as vlan-mon gw-ip-addr and other ... dont see any reasons why is shouldnt work except bond problem in accel. May be im wrong, but dont see any other reasons.

If im right , than would be fantastic to have supporting of bond interfaces in next releases. Thx