Hi, I am setting up a Hotspot using Freeradius on Fedora Core 6.
when I log in the Username and password in my internet browser the following happens:
–Freeradius running on Fedora Core 6 with SELINUX and Firewall disabled:
1.- Radiusd -x displays that it it receiving the username and password from the NAS (Mikrotik).
2.- It allso displays that its sending the reply to the NAS.
–RouterOs:
Running winbox I get:
ip—Firewall—Connections:
I get the radius server sending some paquets in to the RouterOS but nothing happens.
I have tried many things, I got the following scenario:
ADSL MODEM (SENDS DHCP)------>ROUTEROS-----
–>SWITCH/HUB----FREERADIUS SERVER RUNNING FC6
I am doing the testing on the same radius server (I am trying to log in to the hotspot using the machine witch is also the sever) would this represent a problem??
I am using WINBOX to do all the configuration, I don’t know how I could extract that configuration into command line so I can post it here.
But basicly this is what I did:
Interfaces:
–The NIC that is connected to the ADSL ROUTER I changed the name to “public”
–The NIC that is connected to the SWITCH/HUB I changed the name to “local”
ip/dhcp client:
/////////////////////////////////////////////////////////////
// --I added a DHCP CLIENT on interface “public”
//
// add default route: yes
// use peer DNS: yes
// use peer NTP: yes
//
// The rest is disabled
//////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
// --I added a radius server:
//
// service: hostpot: yes
// address: 17216.0.254
// secret: test
// authentification port: 1812
// accounting port: 1813
// timeout: 2000
//
//The rest is disabled or has no values
//////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
// --I ran the hotspot setup:
//
// interface: local
// local address of network: 172.16.0.1/16
// masquerade network: yes
// address pool of network: 172.16.0.2-172.16.0.254
// select certificate: none
// ip address of SMTP Server: 0.0.0.0
// DNS Servers: 192.168.1.254
// DNS Name:
// default user: admin, password: 1234
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// --I modified the hotspot server profile for this hotspot (hsprof1)
//
// —tab>general (No modifications where made here)
//
// Name: hsprof1
// hotspot address: 172.16.0.1
// (disabled) DNS name:
// HTML Directory: hotspot
// (disabled) Rate Limit (rx/tx):
// (disabled) HTTP Proxy:
// (disabled) HTTP Proxy port:
// (disabled) SMTP Server:
///////////////////////////////////////////////////////////////////////
//
// —tab>Login (Modified)
//
// Login By
//
// HTTP CHAP
// HTTP PAP
//
// (The rest of the options are unmarked)
//
//////////////////////////////////////////////////////////////////////
//
// tab>RADIUS
//
// Use Radius: yes
// Accounting: yes
// Interim Update: yes—> 00:01:00
// NAS Port Type: 15(Ethernet)
///////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////
// when I made this changes, other changes were automatically made:
//
/////////////////////////////////////////////////////////////////////////////////
// ip/routes (These I guess are made by default and are mandatory)
//
// Destination Gateway Pref. Source Distance interface
// DA 0.0.0.0/0 192.168.1.254 0 public
// DAC 172.16.0.0/16 172.16.0.10 local
// DAC 192.168.1.0/24 192.16.1.64
//////////////////////////////////////////////////////////////////////////////////
// ip/firewall–>NAT:
//
// chain: srcnat
// src Address: 172.16.0.0/16
// action: masquerade
///////////////////////////////////////////////////////////////////////////////////
Please, What could be wrong??
If my radius server is working fine and all the messages displayed by radiusd –x show good results, Then… I could Only think that the problem resides in RouterOs Configuration.
Is it anything else that I need to modify in the configuration in order for the RouterOs to recibe the replies from the Radius Server??
Thank you in advance, If you wish to contact me by MSN or e-mail, here are my addresses:
Yahoo: iron4umx@yahoo.com
Hotmail: iron4us@hotmail.com
![]()