hello back,

Yes we can intergrate anything into chillispot you wish!

what do you want?

52

(2 replies, posted in Radius Configuration)

can i offer radius a server for your usage?

willing to offer radius secret and chilli UAM secret shared per NAS if it helpfull

53

(1 replies, posted in Chillispot Configuration)

http://sohne.net/projects/chillispot-templates  < these templates are based on wlogin and should help you.

Andrew

54

(3 replies, posted in Debian)

Here you are, patch this with the chillispot source, i found it here   http://coova.org/phpBB3/viewtopic.php?f=4&t=60&sid=f4f80d1d7fdcb659fa8db141288bfe6b&start=0

---------------------------------------------------------------------------------------------

diff -urNp old/chilli.c new/chilli.c
--- old/chilli.c   2007-01-04 10:22:03.000000000 +0100
+++ new/chilli.c   2007-01-04 10:22:15.000000000 +0100
@@ -3072,6 +3072,15 @@ int cb_dhcp_request(struct dhcp_conn_t *
   if (appconn->dnprot == DNPROT_DHCP_NONE)
     appconn->dnprot = DNPROT_UAM;

+  /* ALPAPAD */
+  /* Add routing entry ;-) */
+  if(ipm->inuse == 2)
+  {
+      struct in_addr mask;
+      mask.s_addr = 0xffffffff;
+      printf("Adding route: %d\n", tun_addroute(tun,addr,&appconn->ourip,&mask));
+  }
+
   return 0;
}

@@ -3150,11 +3159,20 @@ int cb_dhcp_disconnect(struct dhcp_conn_

   conn->authstate = DHCP_AUTH_NONE; /* TODO: Redundant */

-  if (appconn->uplink)
+  /* ALPAPAD */
+  if (appconn->uplink) {
+    struct ippoolm_t *member;
+    member = (struct ippoolm_t *) appconn->uplink;
+    if(member->inuse  == 2) {
+         struct in_addr mask;
+         mask.s_addr = 0xffffffff;
+         printf("Removing route: %d\n", tun_delroute(tun,&member->addr,&appconn->ourip,&mask,1));
+    }
     if (ippool_freeip(ippool, (struct ippoolm_t *) appconn->uplink)) {
       sys_err(LOG_ERR, __FILE__, __LINE__, 0,
          "ippool_freeip() failed!");
     }
+    }
   
   (void) freeconn(appconn);

diff -urNp old/dhcp.c new/dhcp.c
--- old/dhcp.c   2007-01-04 10:22:03.000000000 +0100
+++ new/dhcp.c   2007-01-04 10:22:15.000000000 +0100
@@ -2027,16 +2027,26 @@ int dhcp_receive_ip(struct dhcp_t *this,
     ourip.s_addr = conn->ourip.s_addr;
   }
   else {
-    if (this->debug) printf("Address not found\n");
+    /* ALPAPAD */
+    struct in_addr reqaddr;
+    /* Get local copy */
+    memcpy(&reqaddr.s_addr, &pack->iph.saddr, DHCP_IP_ALEN);
+    if (this->debug) printf("Address not found (%s)\n",inet_ntoa(reqaddr));
+    /* Allocate new connection */
+    if (dhcp_newconn(this, &conn, pack->ethh.src))
+      return 0; /* Out of connections */
+
+    /* Request an IP address */
+    if (conn->authstate == DHCP_AUTH_NONE) {
+       this->cb_request(conn,&reqaddr);
+    }
+
+
     ourip.s_addr = this->ourip.s_addr;
     
     /* Do we allow dynamic allocation of IP addresses? */
     if (!this->allowdyn)
       return 0;
-   
-    /* Allocate new connection */
-    if (dhcp_newconn(this, &conn, pack->ethh.src))
-      return 0; /* Out of connections */
   }

   /* Request an IP address */
@@ -2207,10 +2217,11 @@ int dhcp_sendARP(struct dhcp_conn_t *con
   if (conn->hisip.s_addr == reqaddr.s_addr)
     return 0;

+  /* aNt1X: Commented out, we don't know his mask, we have to answer to every ARP request (AnyIP)
   /* If ARP request outside of mask: Ignore */
-  if ((conn->hisip.s_addr & conn->hismask.s_addr) !=
+  /*if ((conn->hisip.s_addr & conn->hismask.s_addr) !=
       (reqaddr.s_addr & conn->hismask.s_addr))
-    return 0;
+    return 0;*/

   /* Get packet default values */
   memset(&packet, 0, sizeof(packet));
@@ -2255,23 +2266,33 @@ int dhcp_receive_arp(struct dhcp_t *this
   }


+  /* aNt1X: Commented out, so that Chillispot answers to every ARP request (AnyIP)
   /* Check that MAC address is our MAC or Broadcast */
-  if ((memcmp(pack->ethh.dst, this->hwaddr, DHCP_ETH_ALEN)) && (memcmp(pack->ethh.dst, bmac, DHCP_ETH_ALEN))) {
+  /*if ((memcmp(pack->ethh.dst, this->hwaddr, DHCP_ETH_ALEN)) && (memcmp(pack->ethh.dst, bmac, DHCP_ETH_ALEN))) {
     if (this->debug) printf("Received ARP request for other destination!\n");
     return 0;
-  }
+  }*/

   /* Check to see if we know MAC address. */
   if (dhcp_hashget(this, &conn, pack->ethh.src)) {
-    if (this->debug) printf("Address not found\n");
+    /* ALPAPAD */
+    struct in_addr reqaddr;
+    /* Get local copy */
+    memcpy(&reqaddr.s_addr, &pack->arp.spa, DHCP_IP_ALEN);
+    if (this->debug) printf("Address not found (%s)\n",inet_ntoa(reqaddr));
+    /* Allocate new connection */
+    if (dhcp_newconn(this, &conn, pack->ethh.src))
+      return 0; /* Out of connections */
+
+    /* Request an IP address */
+    if (conn->authstate == DHCP_AUTH_NONE) {
+       this->cb_request(conn,&reqaddr);
+    }
+
     
     /* Do we allow dynamic allocation of IP addresses? */
     if (!this->allowdyn)  /* TODO: Experimental */
       return 0;
-   
-    /* Allocate new connection */
-    if (dhcp_newconn(this, &conn, pack->ethh.src)) /* TODO: Experimental */
-      return 0; /* Out of connections */
   }
   
   
@@ -2282,7 +2303,7 @@ int dhcp_receive_arp(struct dhcp_t *this
     return 0; /* Only reply if he was allocated an address */
   }
   
-  if (memcmp(&conn->ourip.s_addr, pack->arp.tpa, 4)) {
+  if (!memcmp(&conn->hisip.s_addr, pack->arp.tpa, 4)) {
     if (this->debug) printf("Did not ask for router address: %.8x - %.2x%.2x%.2x%.2x\n", conn->ourip.s_addr,
              pack->arp.tpa[0],
              pack->arp.tpa[1],
diff -urNp old/ippool.c new/ippool.c
--- old/ippool.c   2007-01-04 10:22:03.000000000 +0100
+++ new/ippool.c   2007-01-04 10:22:15.000000000 +0100
@@ -393,7 +393,7 @@ int ippool_newip(struct ippool_t *this,
   }

   /* If not found yet and dynamic IP then allocate dynamic IP */
-  if ((!p2) && (!statip)) {
+if ((!p2) && (!statip) && (!addr->s_addr)) {
     if (!this ->firstdyn) {
       sys_err(LOG_ERR, __FILE__, __LINE__, 0,
          "No more IP addresses available");
@@ -431,7 +431,7 @@ int ippool_newip(struct ippool_t *this,
   /* It was not possible to allocate from dynamic address pool */
   /* Try to allocate from static address space */

-  if ((addr) && (addr->s_addr) && (statip)) { /* IP address given */
+  if ((addr) && (addr->s_addr)) { /* IP address given */
     if (!this->firststat) {
       sys_err(LOG_ERR, __FILE__, __LINE__, 0,
          "No more IP addresses available");


---------------------------------------------------------------------------------------------

wink

i have a solution for this , taken from the code @ www.caferadius.com

it involves using php script for login, its about 6 files i think + config file, can email or you can get it out of caferadius. It does not open a new window to complete login, instead it opens in the login window and we need to minimise the window to logout. it works quite well really, but i prefer the popup.
works , iPhone, Max, Win, Lin etc etc

mount -o loop -offset=friend here to get into the image.... .

wink Andrew

56

(1 replies, posted in Whishlist)

Ill have a look for you. shouldnt be much different to BSD hopefully.


but then im a noob to Solaris, installed a couple of years ago then went back to win/lin combination.

Regards Andrew


gilzavala wrote:

Hi,
I currently working on fedora but, someone had ported chillispot to solaris (x86)? I will appreciate it.
gil

57

(8 replies, posted in Fedora Core)

its possible there is a MySQL 3.x.x or 4.x / 5.x conflict there. also have you created a root password for MySQL and tried using that in freeradius?



comandoBSD wrote:
j3j3j3j3 wrote:

happy to see that the page is online , i guess cant erecover the old forum smile

anyway i have a question : Witch version of chilli + mysql + phpmyprepaid we should use ? i mean what is the stable one and should work without errors?

for ex i have a fc3 with kernel 2.6.9-1.667 with mysql  Ver 11.18 Distrib 3.23.58, FreeRADIUS Version 1.1.7 , chillispot 1.1.0 , and phpmyprepaid 0.4 beta 3

the radius doesnt connect to mysql ( dunno why because the sql.conf file is good ) chilli is working fine ( ip, dns, routing, etc)  phpmyprepaid doesnt work he can not create the tables into mysql

soon someone will comment on this, I am not sure if ti is a problem in the mysql tables, you might want to look at the logs of MySql when you try connecting with the radius

58

(2 replies, posted in Special Configurations)

for me i enabled these 3 lines

eapolenable

coaport 3799
coanoipcheck


Vista reports my connection as WPA-Radius and my tunnels seem to be encrypted.

HI, i think the good old squid proxy will help you here, it can be installed on the same server as chilli.

you can download it here http://www.squid-cache.org/

Regards.

60

(7 replies, posted in Chillispot Configuration)

Paypal, i only managed to get this working by allowing about 8 ip addresses. its possible to do it with DNS but its a pain, or i didnt do it right.

here are my IP's
WALLEDGARDEN1:66.211.168.65
WALLEDGARDEN2:66.211.168.97
WALLEDGARDEN3:216.113.188.35
WALLEDGARDEN4:216.113.188.65
WALLEDGARDEN5:216.113.188.64
WALLEDGARDEN6:216.113.188.34
WALLEDGARDEN7:216.113.188.25
WALLEDGARDEN8:66.211.168.129
WALLEDGARDEN9:216.113.188.9


Regards. .

61

(614 replies, posted in News)

Chillispot is well and truly alive,

I have been using chillispot for over 3 years in a live hotspot system, and with products like caferadius.com using chillispot very nicely.

I installed my first caferadius.com last week in a local hotel its controlling the connections from 9 access points very well.

caferadius provides a complete ticket management system for chillispot, its embedded 256mb image includes MySQL, Radius, web admin and chillispot smile i cant recomend it enough to x86 hotspots. www.caferadius.com < nothing to do with me but fantastic chillispot implimentation. .

62

(8 replies, posted in Fedora Core)

I have had chillispot running for over 3 years now, full MySQL Logging and Radius backend with dialup_admin.

I also have i think all source since i started using ChilliSpot.org

do we know the status of chillispot AB? is this site run by the origional team?

Would users like a VMWARE or Qemu Virtual version of chillispot on a cutdown environment?

1 - chilli, mysql, radius, apache on one virtual machine?
2 - chilli seperate - radius and other features in another virtual????

I never myself got phpMyPrepaid working myself.



Regards

Andrew Smalley - Simplywifi.co.uk