mpd5+radius+ipfw table

Help
Mechanicss
2014-03-09
2014-03-12
  • Mechanicss

    Mechanicss - 2014-03-09

    требуется передать радиус атрибут mpd-table-static.
    Помогите с формой передачи атрибута на перле
    $RAD_REPLY{'mpd-table-static'} = "10=$BILL_USER{'ip'} 2";

    но получаю rlm_perl: RAD_REPLY: mpd-table-static = 10=185.х.х.х 2
    в таблицы нечего не добавляется

     
  • Alexander Motin

    Alexander Motin - 2014-03-11

    Включи больше отладки (log +iface2) и посмотри какие именно команды исполняет mpd и что с ними не так.

     
  • Mechanicss

    Mechanicss - 2014-03-11

    ок попробую. смущает как передать атрибут вида mpd-table-static +=

     
  • Mechanicss

    Mechanicss - 2014-03-12

    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Adding server 10.17.254.3 1812
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_NAS_IDENTIFIER: vpn3.lan
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_NAS_IP_ADDRESS: 10.17.254.3
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put Message Authenticator
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_ACCT_SESSION_ID: 4608745-L_pptp-51
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_NAS_PORT: 51
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_NAS_PORT_TYPE: 5
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_SERVICE_TYPE: RAD_FRAMED
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_FRAMED_PROTOCOL: RAD_PPP
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_CALLING_STATION_ID: 10.17.70.47 / /
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_CALLED_STATION_ID:
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_MPD_LINK: L_pptp-51
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_MPD_PEER_IDENT: MSRASV5.20 MSRAS-0-USER-M-^OM- ЦЫвяM-^^'nL╗╧?M-^^8^MM-^R^^
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_TUNNEL_TYPE: 1
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_TUNNEL_MEDIUM_TYPE: 1
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_TUNNEL_SERVER_ENDPOINT: 10.17.254.3
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_TUNNEL_CLIENT_ENDPOINT: 10.17.70.47
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_TUNNEL_SERVER_AUTH_ID: vpn3.lan
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_USER_NAME: chehova6km114
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_MICROSOFT_MS_CHAP_CHALLENGE
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Put RAD_MICROSOFT_MS_CHAP2_RESPONSE
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Send request for user 'chehova6km114'
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Sending request for user 'chehova6km114'
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Get RAD_REPLY_MESSAGE: Success
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Get RAD_SESSION_TIMEOUT: 258900
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Get RAD_MICROSOFT_MS_MPPE_SEND_KEY
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Get (RAD_SERVICE_TYPE: 2)
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Get RAD_MICROSOFT_MS_MPPE_ENCRYPTION_TYPES: 6 (40 128 bit)
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Get RAD_MICROSOFT_MS_MPPE_ENCRYPTION_POLICY: 1 (Allowed)
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Get RAD_IDLE_TIMEOUT: 0
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Get RAD_ACCT_INTERIM_INTERVAL: 60
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Get RAD_USER_NAME: chehova6km114
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Get RAD_MICROSOFT_MS_MPPE_RECV_KEY
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Get RAD_MICROSOFT_MS_CHAP2_SUCCESS: S=0516816AEEDEBAC10F8D19A9E1B8B399E2D27483
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Get RAD_FRAMED_IP_ADDRESS: 185.x.x.x
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Get RAD_FRAMED_COMPRESSION: 0
    Mar 12 09:19:05 vpn3 mpd: [L_pptp-51] RADIUS: Get RAD_FRAMED_MTU: 1492
    Mar 12 09:19:32 vpn3 mpd: [A-51] IFACE: setting ng50 MTU to 1400 bytes
    Mar 12 09:19:32 vpn3 mpd: [A-51] IFACE: Connecting netflow (out)
    Mar 12 09:19:32 vpn3 mpd: [A-51] IFACE: Connecting tcpmssfix
    Mar 12 09:19:32 vpn3 mpd: [A-51] IFACE: Add address 172.17.0.254/32->185.x.x.x to ng50
    Mar 12 09:19:32 vpn3 mpd: [A-51] IFACE: session-timeout: 258900 seconds
    Mar 12 09:19:32 vpn3 mpd: [A-51] IFACE: Change interface flags: -0 +1

    Получается, что радиус вообще не передает параметр mpd-table-static, хотя в логах радиуса он есть

     
    Last edit: Mechanicss 2014-03-12
  • Alexander Motin

    Alexander Motin - 2014-03-12

    А mpd-шный словарь к RADIUS подключен? А то я вообще ни одного mpd-специфичного атрибута не вижу.

     
  • Mechanicss

    Mechanicss - 2014-03-12

    упс, я его в директорию добавил. а в файле конфигурации не поправил
    теперь все ок- стало передаваться
    Большое спасибо

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks