Duplicate release of IP ?

adrian.sandu at asandu.eu adrian.sandu at asandu.eu
Wed Apr 16 15:12:19 CEST 2014


Hello list,

For some time now, I've been getting some complaints that some users are 
getting duplicate ips and not doing any traffic ..

Allocated IP: x.x.x.42 from main   (did  cli 00:25:22 port 622 user szc)
Released IP x.x.x.42 (did  cli 00:25:22 user szc)
Allocated IP: x.x.x.42 from main   (did  cli C8:3A:35 port 25 user vii)
Released IP x.x.x.42 (did  cli C8:3A:35 user vii)
Allocated IP: x.x.x.42 from main   (did  cli 00:1B:B9 port 670 user cor)
Released IP x.x.x.42 (did  cli 00:1B:B9 user cor)
Allocated IP: x.x.x.42 from main   (did  cli 64:70:02 port 8 user tur)
Released IP x.x.x.42 (did  cli 64:70:02 user tur)
Released IP x.x.x.42 (did  cli C8:3A:35 user vii)
Allocated IP: x.x.x.42 from main   (did  cli 00:26:22 port 610 user fuv)
Released IP x.x.x.42 (did  cli 00:26:22 user fuv)
Allocated IP: x.x.x.42 from main   (did  cli 00:19:CB port 88 user stl)
Released IP x.x.x.42 (did  cli 00:19:CB user stl)
Allocated IP: x.x.x.42 from main   (did  cli 00:14:0B port 436 user per)
Released IP x.x.x.42 (did  cli 00:14:0B user per)

Allocated IP: x.x.x.244 from main   (did  cli 07:50:32 port 315 user 
visan
Released IP x.x.x.244 (did  cli 07:50:32 user visan
Allocated IP: x.x.x.244 from main   (did  cli 37:5B:5D port 175 user 
cristea
Released IP x.x.x.244 (did  cli 37:5B:5D user cristea
Allocated IP: x.x.x.244 from main   (did  cli 4A:69:39 port 140 user 
dinita
Released IP x.x.x.244 (did  cli 4A:69:39 user dinita
Allocated IP: x.x.x.244 from main   (did  cli DC:D9:2F port 503 user 
dragusin
Released IP x.x.x.244 (did  cli DC:D9:2F user dragusin
Allocated IP: x.x.x.244 from main   (did  cli 52:E2:FA port 33 user 
pamblica
Released IP x.x.x.244 (did  cli 52:E2:FA user pamblica
Allocated IP: x.x.x.244 from main   (did  cli 95:AB:62 port 431 user 
ocoleanu
Released IP x.x.x.244 (did  cli 95:AB:62 user ocoleanu
Allocated IP: x.x.x.244 from main   (did  cli 00:00:00 port 686 user 
lungu
Released IP x.x.x.244 (did  cli 00:00:00 user lungu
Released IP x.x.x.244 (did  cli 00:00:00 user lungu
Allocated IP: x.x.x.244 from main   (did  cli 17:AA:E8 port 643 user ene
Released IP x.x.x.244 (did  cli 17:AA:E8 user ene
Released IP x.x.x.244 (did  cli 00:00:00 user lungu
Allocated IP: x.x.x.244 from main   (did  cli EB:AF:CF port 173 user 
simion
Released IP x.x.x.244 (did  cli EB:AF:CF user simion
Allocated IP: x.x.x.244 from main   (did  cli 15:B2:E2 port 216 user 
coroiu
Released IP x.x.x.244 (did  cli 15:B2:E2 user coroiu
Allocated IP: x.x.x.244 from main   (did  cli 2D:AD:65 port 281 user 
stefan
Released IP x.x.x.244 (did  cli 2D:AD:65 user stefan
Allocated IP: x.x.x.244 from main   (did  cli 03:15:27 port 545 user 
spita
Released IP x.x.x.244 (did  cli 03:15:27 user spita
Allocated IP: x.x.x.244 from main   (did  cli 2D:AD:65 port 281 user 
stefan
Released IP x.x.x.244 (did  cli 2D:AD:65 user stefan
Allocated IP: x.x.x.244 from main   (did  cli 2F:58:05 port 376 user 
simion
Released IP x.x.x.244 (did  cli 2F:58:05 user simion

I also made a lil' script to monitor what is in radacct/radippool .. 
what ifconfig says and what radwho says...I can provide the source if 
wanted ..


2014-04-15 11:46:02 - 708 distinct ( 708 total ) framedipaddress in SQL 
radippool
2014-04-15 11:46:02 - Total Connected in radius SQL radacct : 380
2014-04-15 11:46:02 - Distinct IPs in radius SQL radacct: 379
2014-04-15 11:46:02 - Users sharing IP: x.x.x.x.42 - 2 - vii tur
2014-04-15 11:46:02 - There are a total of 15 reserved (SQL radreply) 
IPs that are connected (SQL radacct)
2014-04-15 11:46:02 - There are a total of 15 distinct reserved (SQL 
radreply) IPs that are connected (SQL radacct)
2014-04-15 11:46:02 - There are a total of 45 reserved IPs in SQL 
radreply
2014-04-15 11:46:02 - There are a total of 45 distinct reserved IPs in 
SQL radreply
2014-04-15 11:46:02 - There are 363 total connected users in radippool.
2014-04-15 11:46:02 - There are 363 distinct connected users in 
radippool.
2014-04-15 11:46:02 - There are 363 total connected user IPs in 
radippool.
2014-04-15 11:46:02 - There are 363 distinct connected user IPs in 
radippool.
2014-04-15 11:46:02 - Total IPs in radwho CLI: 380
2014-04-15 11:46:02 - Distinct IPs in radwho CLI: 379
2014-04-15 11:46:02 - Total IPs in ifconfig CLI: 380
2014-04-15 11:46:02 - Distinct IPs in ifconfig CLI: 379
2014-04-15 11:46:02 - FAIL: Total connected 15 (reserved) + 363 
(radippool) != 380 (radacct) - should be 378

2014-04-15 18:18:01 - 708 distinct ( 708 total ) framedipaddress in SQL 
radippool
2014-04-15 18:18:01 - Total Connected in radius SQL radacct : 404
2014-04-15 18:18:01 - Distinct IPs in radius SQL radacct: 403
2014-04-15 18:18:01 - Users sharing IP: x.x.x.244 - 2 - lungu ene
2014-04-15 18:18:01 - There are a total of 13 reserved (SQL radreply) 
IPs that are connected (SQL radacct)
2014-04-15 18:18:01 - There are a total of 13 distinct reserved (SQL 
radreply) IPs that are connected (SQL radacct)
2014-04-15 18:18:01 - There are a total of 45 reserved IPs in SQL 
radreply
2014-04-15 18:18:01 - There are a total of 45 distinct reserved IPs in 
SQL radreply
2014-04-15 18:18:01 - There are 390 total connected users in radippool.
2014-04-15 18:18:01 - There are 390 distinct connected users in 
radippool.
2014-04-15 18:18:01 - There are 390 total connected user IPs in 
radippool.
2014-04-15 18:18:01 - There are 390 distinct connected user IPs in 
radippool.
2014-04-15 18:18:01 - Total IPs in radwho CLI: 405
2014-04-15 18:18:01 - Distinct IPs in radwho CLI: 404
2014-04-15 18:18:01 - Total IPs in ifconfig CLI: 404
2014-04-15 18:18:01 - Distinct IPs in ifconfig CLI: 403
2014-04-15 18:18:01 - FAIL: Total connected 13 (reserved) + 390 
(radippool) != 404 (radacct) - should be 403

The script is ran every 2 minutes and only has selects. The "sharing" ip 
part goes on for some time .. I can provide full logs..

I'm running gentoo
[ebuild   R    ] net-dialup/ppp-2.4.6:0/2.4.6  USE="pam radius 
-activefilter -atm -dhcp -eap-tls -gtk -ipv6" 0 kB
[ebuild   R    ] net-dialup/rp-pppoe-3.11-r1  USE="-X" 0 kB
[ebuild   R    ] dev-db/mysql-5.5.32  USE="community perl ssl -cluster 
-debug -embedded -extraengine -jemalloc -latin1 -max-idx-128 -minimal 
-profiling (-selinux) -static -systemtap -tcmalloc {-test}" 0 kB
[ebuild   R    ] net-dialup/freeradius-2.2.0  USE="mysql pam readline 
ssl -bindist -debug (-firebird) -iodbc -kerberos -ldap -odbc -oracle 
-pcap -postgres -python -sqlite (-ruby%)" 0 kB

The machine seems idle ..
  16:06:50 up 2 days,  3:48,  2 users,  load average: 0.17, 0.27, 0.39

radius is running with -xx for the past few days so I can provide logs 
..
828M    /var/log/radius/radius.log
I've tried looking through them but can't figure out why it would do 
that ..


More information about the Freeradius-Users mailing list