Freeradius ngadat



  • Masalah Freeradius 1.1.8 tidak running (msh pake versi lama )

    cek di konsol shell … Ketik radiusd -X

    lihat informasi errornya ..
    yang saya alami error pada bagian rlm_counter db.daily unknow error 0
    cek /usr/local/etc/raddb/db.daily

    cara perbaikannya ada di forum luar , tapi bahsanya simpel banget bingung pertamanya http://forum.pfsense.org/index.php?topic=43675.165

    dengan cara :
    edit pada bagian freeradius.inc mulai dari line 2544 - 2674 di /usr/local/pkg/freeradius.inc

    Edit pada bagian ini :

    original nya seperti ini ;

    counter daily {
    	filename = \${raddbdir}/db.daily
    	key = User-Name
    	count-attribute = Acct-Session-Time
    	reset = daily
    	counter-name = Daily-Session-Time
    	check-name = Max-Daily-Session
    	reply-name = Session-Timeout
    	cache-size = 5000
    }
    
    counter weekly {
    	filename = \${raddbdir}/db.weekly
    	key = User-Name
    	count-attribute = Acct-Session-Time
    	reset = weekly
    	counter-name = Weekly-Session-Time
    	check-name = Max-Weekly-Session
    	reply-name = Session-Timeout
    	cache-size = 5000
    }
    
    counter monthly {
    	filename = \${raddbdir}/db.monthly
    	key = User-Name
    	count-attribute = Acct-Session-Time
    	reset = monthly
    	counter-name = Monthly-Session-Time
    	check-name = Max-Monthly-Session
    	reply-name = Session-Timeout
    	cache-size = 5000
    }
    
    counter forever {
    	filename = \${raddbdir}/db.forever
    	key = User-Name
    	count-attribute = Acct-Session-Time
    	reset = never
    	counter-name = Forever-Session-Time
    	check-name = Max-Forever-Session
    	reply-name = Session-Timeout
    	cache-size = 5000
    }
    
    counter maxdailyupload {
    	filename = \${raddbdir}/db.maxdailyupload
    	key = User-Name
    	count-attribute = Acct-Input-Octets
    	reset = daily
    	counter-name = Daily-Input-Octets
    	check-name = Max-Daily-Input
    	reply-name = Acct-Input-Octets
    	cache-size = 5000
    }
    
    counter maxdailydownload {
    	filename = \${raddbdir}/db.maxdailydownload
    	key = User-Name
    	count-attribute = Acct-Output-Octets
    	reset = daily
    	counter-name = Daily-Output-Octets
    	check-name = Max-Daily-Output
    	reply-name = Acct-Output-Octets
    	cache-size = 5000
    }
    
    counter maxweeklyupload {
    	filename = \${raddbdir}/db.maxweeklyupload
    	key = User-Name
    	count-attribute = Acct-Input-Octets
    	reset = weekly
    	counter-name = Weekly-Input-Octets
    	check-name = Max-Weekly-Input
    	reply-name = Acct-Input-Octets
    	cache-size = 5000
    }
    
    counter maxweeklydownload {
    	filename = \${raddbdir}/db.maxweeklydownload
    	key = User-Name
    	count-attribute = Acct-Output-Octets
    	reset = weekly
    	counter-name = Weekly-Output-Octets
    	check-name = Max-Weekly-Output
    	reply-name = Acct-Output-Octets
    	cache-size = 5000
    }
    
    counter maxmonthlyupload {
    	filename = \${raddbdir}/db.maxmonthlyupload
    	key = User-Name
    	count-attribute = Acct-Input-Octets
    	reset = monthly
    	counter-name = Monthly-Input-Octets
    	check-name = Max-Monthly-Input
    	reply-name = Acct-Input-Octets
    	cache-size = 5000
    }
    
    counter maxmonthlydownload {
    	filename = \${raddbdir}/db.maxmonthlydownload
    	key = User-Name
    	count-attribute = Acct-Output-Octets
    	reset = monthly
    	counter-name = Monthly-Output-Octets
    	check-name = Max-Monthly-Output
    	reply-name = Acct-Output-Octets
    	cache-size = 5000
    }
    
    counter maxupload {
    	filename = \${raddbdir}/db.maxforeverupload
    	key = User-Name
    	count-attribute = Acct-Input-Octets
    	reset = never
    	counter-name = Forever-Input-Octets
    	check-name = Max-Forever-Input
    	reply-name = Acct-Input-Octets
    	cache-size = 5000
    }
    
    counter maxdownload {
    	filename = \${raddbdir}/db.maxforeverdownload
    	key = User-Name
    	count-attribute = Acct-Output-Octets
    	reset = never
    	counter-name = Forever-Output-Octets
    	check-name = Max-Forever-Output
    	reply-name = Acct-Output-Octets
    	cache-size = 5000
    }
    

    di edit jadi begini :

    counter daily {
    	filename = /tmp/db.daily
    	key = User-Name
    	count-attribute = Acct-Session-Time
    	reset = daily
    	counter-name = Daily-Session-Time
    	check-name = Max-Daily-Session
    	reply-name = Session-Timeout
    	cache-size = 5000
    }
    
    counter weekly {
    	filename = /tmp/db.weekly
    	key = User-Name
    	count-attribute = Acct-Session-Time
    	reset = weekly
    	counter-name = Weekly-Session-Time
    	check-name = Max-Weekly-Session
    	reply-name = Session-Timeout
    	cache-size = 5000
    }
    
    counter monthly {
    	filename = /tmp/db.monthly
    	key = User-Name
    	count-attribute = Acct-Session-Time
    	reset = monthly
    	counter-name = Monthly-Session-Time
    	check-name = Max-Monthly-Session
    	reply-name = Session-Timeout
    	cache-size = 5000
    }
    
    counter forever {
    	filename = /tmp/db.forever
    	key = User-Name
    	count-attribute = Acct-Session-Time
    	reset = never
    	counter-name = Forever-Session-Time
    	check-name = Max-Forever-Session
    	reply-name = Session-Timeout
    	cache-size = 5000
    }
    
    counter maxdailyupload {
    	filename = /tmp/db.maxdailyupload
    	key = User-Name
    	count-attribute = Acct-Input-Octets
    	reset = daily
    	counter-name = Daily-Input-Octets
    	check-name = Max-Daily-Input
    	reply-name = Acct-Input-Octets
    	cache-size = 5000
    }
    
    counter maxdailydownload {
    	filename = /tmp/db.maxdailydownload
    	key = User-Name
    	count-attribute = Acct-Output-Octets
    	reset = daily
    	counter-name = Daily-Output-Octets
    	check-name = Max-Daily-Output
    	reply-name = Acct-Output-Octets
    	cache-size = 5000
    }
    
    counter maxweeklyupload {
    	filename = /tmp/db.maxweeklyupload
    	key = User-Name
    	count-attribute = Acct-Input-Octets
    	reset = weekly
    	counter-name = Weekly-Input-Octets
    	check-name = Max-Weekly-Input
    	reply-name = Acct-Input-Octets
    	cache-size = 5000
    }
    
    counter maxweeklydownload {
    	filename = /tmp/db.maxweeklydownload
    	key = User-Name
    	count-attribute = Acct-Output-Octets
    	reset = weekly
    	counter-name = Weekly-Output-Octets
    	check-name = Max-Weekly-Output
    	reply-name = Acct-Output-Octets
    	cache-size = 5000
    }
    
    counter maxmonthlyupload {
    	filename = /tmp/db.maxmonthlyupload
    	key = User-Name
    	count-attribute = Acct-Input-Octets
    	reset = monthly
    	counter-name = Monthly-Input-Octets
    	check-name = Max-Monthly-Input
    	reply-name = Acct-Input-Octets
    	cache-size = 5000
    }
    
    counter maxmonthlydownload {
    	filename = /tmp/db.maxmonthlydownload
    	key = User-Name
    	count-attribute = Acct-Output-Octets
    	reset = monthly
    	counter-name = Monthly-Output-Octets
    	check-name = Max-Monthly-Output
    	reply-name = Acct-Output-Octets
    	cache-size = 5000
    }
    
    counter maxupload {
    	filename = /tmp/db.maxforeverupload
    	key = User-Name
    	count-attribute = Acct-Input-Octets
    	reset = never
    	counter-name = Forever-Input-Octets
    	check-name = Max-Forever-Input
    	reply-name = Acct-Input-Octets
    	cache-size = 5000
    }
    
    counter maxdownload {
    	filename = /tmp/db.maxforeverdownload
    	key = User-Name
    	count-attribute = Acct-Output-Octets
    	reset = never
    	counter-name = Forever-Output-Octets
    	check-name = Max-Forever-Output
    	reply-name = Acct-Output-Octets
    	cache-size = 5000
    }
    

    kemudian Save

    lalu buat file dengan nama db.daily di /tmp

    isinya :

    counter daily {
    	filename = /tmp/db.daily
    	key = User-Name
    	count-attribute = Acct-Session-Time
    	reset = daily
    	counter-name = Daily-Session-Time
    	check-name = Max-Daily-Session
    	reply-name = Session-Timeout
    	cache-size = 5000
    }
    
    counter weekly {
    	filename = /tmp/db.weekly
    	key = User-Name
    	count-attribute = Acct-Session-Time
    	reset = weekly
    	counter-name = Weekly-Session-Time
    	check-name = Max-Weekly-Session
    	reply-name = Session-Timeout
    	cache-size = 5000
    }
    
    counter monthly {
    	filename = /tmp/db.monthly
    	key = User-Name
    	count-attribute = Acct-Session-Time
    	reset = monthly
    	counter-name = Monthly-Session-Time
    	check-name = Max-Monthly-Session
    	reply-name = Session-Timeout
    	cache-size = 5000
    }
    
    counter forever {
    	filename = /tmp/db.forever
    	key = User-Name
    	count-attribute = Acct-Session-Time
    	reset = never
    	counter-name = Forever-Session-Time
    	check-name = Max-Forever-Session
    	reply-name = Session-Timeout
    	cache-size = 5000
    }
    
    counter maxdailyupload {
    	filename = /tmp/db.maxdailyupload
    	key = User-Name
    	count-attribute = Acct-Input-Octets
    	reset = daily
    	counter-name = Daily-Input-Octets
    	check-name = Max-Daily-Input
    	reply-name = Acct-Input-Octets
    	cache-size = 5000
    }
    
    counter maxdailydownload {
    	filename = /tmp/db.maxdailydownload
    	key = User-Name
    	count-attribute = Acct-Output-Octets
    	reset = daily
    	counter-name = Daily-Output-Octets
    	check-name = Max-Daily-Output
    	reply-name = Acct-Output-Octets
    	cache-size = 5000
    }
    
    counter maxweeklyupload {
    	filename = /tmp/db.maxweeklyupload
    	key = User-Name
    	count-attribute = Acct-Input-Octets
    	reset = weekly
    	counter-name = Weekly-Input-Octets
    	check-name = Max-Weekly-Input
    	reply-name = Acct-Input-Octets
    	cache-size = 5000
    }
    
    counter maxweeklydownload {
    	filename = /tmp/db.maxweeklydownload
    	key = User-Name
    	count-attribute = Acct-Output-Octets
    	reset = weekly
    	counter-name = Weekly-Output-Octets
    	check-name = Max-Weekly-Output
    	reply-name = Acct-Output-Octets
    	cache-size = 5000
    }
    
    counter maxmonthlyupload {
    	filename = /tmp/db.maxmonthlyupload
    	key = User-Name
    	count-attribute = Acct-Input-Octets
    	reset = monthly
    	counter-name = Monthly-Input-Octets
    	check-name = Max-Monthly-Input
    	reply-name = Acct-Input-Octets
    	cache-size = 5000
    }
    
    counter maxmonthlydownload {
    	filename = /tmp/db.maxmonthlydownload
    	key = User-Name
    	count-attribute = Acct-Output-Octets
    	reset = monthly
    	counter-name = Monthly-Output-Octets
    	check-name = Max-Monthly-Output
    	reply-name = Acct-Output-Octets
    	cache-size = 5000
    }
    
    counter maxupload {
    	filename = /tmp/db.maxforeverupload
    	key = User-Name
    	count-attribute = Acct-Input-Octets
    	reset = never
    	counter-name = Forever-Input-Octets
    	check-name = Max-Forever-Input
    	reply-name = Acct-Input-Octets
    	cache-size = 5000
    }
    
    counter maxdownload {
    	filename = /tmp/db.maxforeverdownload
    	key = User-Name
    	count-attribute = Acct-Output-Octets
    	reset = never
    	counter-name = Forever-Output-Octets
    	check-name = Max-Forever-Output
    	reply-name = Acct-Output-Octets
    	cache-size = 5000
    }
    

    lalu Save

    setelah itu reboot
    coba lihat di status services apakah freeradius running
    kalau error yg sy alami kemaren trik ini berhasil
    maaf kalo kurang jelas … maklum newbe
    baru belajar pfsense ...... ;) ;) ;)


Locked