Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Witam
googluje i niestety nie moge znalec czegos konkretnego do radiusa z pppoe.
Szukam instrukcji konfiguracji radiusa z mysql + pppoe.
czy ktos z was posiada takowe manuale??
Offline
Dzięki
A coś po polsku??
Offline
szkoda ze nie po angielsku albo po polsku.
Offline
w necie malo jest dokumentacji na temat freeradiusa + pppoe a wec kazdy art jest na wage zlota a wec trzeba czytac miedzy werszami nawet jak by to mialo byc po rosyjsku :P
Offline
no i ten artykul [url]http://linux.usr.ro/pppoe/[/url] mi pomogl. ruszylo.
zastosowalem sie rowniez do artykulu [url]http://netkod.pl/pppoe/[/url] i dziala z lms'em - ale nie do konca dobrze i to nie jest to czego oczekuje. chcialbym dodatkowo filtrowac po mac'adresie czyli mac > login > haslo
zastanawiam sie teraz jak przerobic freeradiusa, zeby korzystal z danych w bazie lms'a.
czy da sie zmusic freeradiusa+mysql, zeby pobieral dane z innej bazy??
dla radiusa zalkada sie m.in. taka tabele w bazie:
CREATE TABLE radcheck (
id int(11) unsigned NOT NULL auto_increment,
UserName varchar(64) NOT NULL default '',
Attribute varchar(32) NOT NULL default '',
op char(2) NOT NULL DEFAULT '==',
Value varchar(253) NOT NULL default '',
PRIMARY KEY (id),
KEY UserName (UserName(32))
) ;
w bazie lms jest tabela nodes, w ktorej trzymane sa wszstkie dane o hoscie:
CREATE TABLE nodes (
id int(11) NOT NULL auto_increment,
name varchar(16) NOT NULL default '',
mac varchar(20) NOT NULL default '',
ipaddr int(16) unsigned NOT NULL default '0',
ipaddr_pub int(16) unsigned NOT NULL default '0',
passwd varchar(32) NOT NULL default '',
ownerid int(11) NOT NULL default '0',
creationdate int(11) NOT NULL default '0',
moddate int(11) NOT NULL default '0',
creatorid int(11) NOT NULL default '0',
modid int(11) NOT NULL default '0',
netdev int(11) NOT NULL default '0',
linktype tinyint(1) NOT NULL default '0',
access tinyint(1) NOT NULL default '1',
warning tinyint(1) NOT NULL default '0',
lastonline int(11) NOT NULL default '0',
info text NOT NULL default '',
PRIMARY KEY (id),
UNIQUE KEY name (name),
UNIQUE KEY ipaddr (ipaddr),
INDEX netdev (netdev)
) TYPE=MyISAM;
w configu radiusa sql.conf sa linie:
----------------
authcheck_table = "radcheck"
[..]
authorize_check_query = "SELECT id, UserName, Attribute, Value, op
FROM ${authcheck_table}
WHERE Username = '%{SQL-User-Name}'
ORDER BY id"
authorize_reply_query = "SELECT id, UserName, Attribute, Value, op
FROM ${authreply_table}
WHERE Username = '%{SQL-User-Name}'
ORDER BY id"
authorize_group_check_query = "SELECT
${groupcheck_table}.id,${groupcheck_table}.GroupName,${groupcheck_table}.Attribute,${groupcheck_table}.Value,${groupcheck_table}.op
FROM ${groupcheck_table},${usergroup_table} WHERE
${usergroup_table}.Username = '%{SQL-User-Name}' AND
${usergroup_table}.GroupName = ${groupcheck_table}.GroupName ORDER BY
${groupcheck_table}.id"
authorize_group_reply_query = "SELECT
${groupreply_table}.id,${groupreply_table}.GroupName,${groupreply_table}.Attribute,${groupreply_table}.Value,${groupreply_table}.op
FROM ${groupreply_table},${usergroup_table} WHERE
${usergroup_table}.Username = '%{SQL-User-Name}' AND
${usergroup_table}.GroupName = ${groupreply_table}.GroupName ORDER BY
${groupreply_table}.id"
----------------------
jak to przerobic aby z bazy lms, z tabeli nodes wyciagnal te dane ktore mu
sa potrzebne?
prawie wszystkie dane zawarte w tabeli "radcheck" sa rowniez w tabeli "nodes" lms'a. wiec cane musialby pobrac z dwoch tabel jednoczesnie.
czy da sie tak zrobic jak ja mysle??
Offline
Time (s) | Query |
---|---|
0.00013 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00103 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.220.230.156' WHERE u.id=1 |
0.00074 | UPDATE punbb_online SET logged=1738363107 WHERE ident='18.220.230.156' |
0.00047 | SELECT * FROM punbb_online WHERE logged<1738362807 |
0.00049 | SELECT topic_id FROM punbb_posts WHERE id=24869 |
0.00005 | SELECT id FROM punbb_posts WHERE topic_id=3103 ORDER BY posted |
0.00057 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=3103 AND t.moved_to IS NULL |
0.00007 | SELECT search_for, replace_with FROM punbb_censoring |
0.00080 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=3103 ORDER BY p.id LIMIT 0,25 |
0.00142 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=3103 |
Total query time: 0.00581 s |