#169075 - 2006-10-09 09:44 AM
Re: Need a web page to get MAC address
|
masken
MM club member
   
Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
|
I think you can get the GUID without the web page going insecure in the browser. Think that's what poll/voting-pages normally use.
It's even better than the MAC, you can change NIC without the GUID changing hehe 
In ASP.NET you have this: http://msdn2.microsoft.com/en-us/library...ionsection.aspx
Edited by masken (2006-10-09 09:48 AM)
|
Top
|
|
|
|
#169076 - 2006-10-09 09:58 AM
Re: Need a web page to get MAC address
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Quote:
I think you can get the GUID without the web page going insecure in the browser. Think that's what poll/voting-pages normally use.
That's windows only isn't it? I would have thought that cookies would be more portable.
Les, are you going to have problems with the user using another computer or terminal server / citrix logins? I can't imagine your users are going to remember their "usual" MAC address if they are not at their usual computer.
|
Top
|
|
|
|
#169079 - 2006-10-09 02:46 PM
Re: Need a web page to get MAC address
|
Les
KiX Master
   
Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
|
Thanks guys, will try to address all of your points.
1. The "users" are not my users. The HotSpot is not for company employees. It is for visitors/guests.
2. Initially, it is just for WiFi though I haven't ruled out wired clients.
3. The m0n0wall server is running a small version of linux in RAM from a CF card. There is little chance that there would be any server-side code.
4. There is no router between the client and the m0n0wall router/firewall.
5. If the computer has two NICs and they are both active, I would want to deny access.
6. If users roam to a different PC, they are to be denied access unless of course they have registered the other PC and received a password. In other words, I want access control per PC, not per user. If I simply put their MAC in the captive portal bypass list, they get access but no longer get the AUP/TOU that they need to consent to.
I suppose it doesn't have to be the MAC address, I just thought it was something easily had and unique. I was hoping is was as simple as the getting the IP like http://www.ipchicken.com/ . That GUID looks interesting but I think it is server-side. Computername is a possibility. What I need to do is have safeguards to ensure company employees do not gain access to the internet via this wireless HotSpot. Again, this is for non-employees only.
|
Top
|
|
|
|
#169080 - 2006-10-09 03:42 PM
Re: Need a web page to get MAC address
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Have a look at this page: http://doc.m0n0.ch/handbook/faq-macfilt.html
Specifically 16.6.1. Using Captive Portal and MAC pass-through looks like it might do what you want.
|
Top
|
|
|
|
#169081 - 2006-10-10 03:31 AM
Re: Need a web page to get MAC address
|
Les
KiX Master
   
Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
|
Quote:
If I simply put their MAC in the captive portal bypass list, they get access but no longer get the AUP/TOU that they need to consent to.
I know all about pass-through and am doing it now. The problem with that is as soon as you enter their MAC, they no longer get the AUP/TOU. Also, there is no authentication at all, so all someone needs to do is spoof an allowed MAC. Since I plan to change the password every week, spoofing a MAC that I hoped to pass as the UserID means they still need the password.
If everyone used the same hidden ID, only the PWD would need to be shared. If the users get to type in a unique UserID, they are still likely to share their ID/PWD and that is what I hope to avoid.
|
Top
|
|
|
|
#169082 - 2006-10-10 09:08 AM
Re: Need a web page to get MAC address
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
How about this technique then.
- Configure your DHCP server so that computers which are to be allowed access have a reserved IP address.
- Configure a firewall rule on the hotspot device that only allows access for the reserved IP addresses.
You could also use the DHCP server built into the device to issue the reserved IP addresses on a new "guest" subnet seperate from your normal user LAN if that would make control easier.
If your users do not have privilege to allocate static addresses to their NICs then they cannot steal a guest DHCP assigned address, so the reserved IP address is just about secure as a MAC address for this purpose.
|
Top
|
|
|
|
#169083 - 2006-10-15 04:21 PM
Re: Need a web page to get MAC address
|
Les
KiX Master
   
Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
|
Again, they (the intended captive portal users) are not "my users" and the computers not under my control. Also, the captive portal network is entirely separate from my "normal user LAN". That said, my users (potential unintended captive portal users) are what I am most concerned about as well as public trash trying to leech free internet and potential malfeasance. While I do control the domain member computers, I have also caught users bringing in from home their personal laptops. A couple of them have eluded me, disappearing before I can complete a switch traceroute. Catching a wireless leech would be that much tougher.
Presently, I have only two APs serving two buildings and I've located them so that the structure and terrain limit their range but as I build this out with more APs and more coverage, it will have a larger attack surface. I also plan to deploy another larger coverage area but that I intend to use WPA on and it will not be part of the hotspot.
Yes, I could setup a DHCP reservation for each user PC I authorize and have corresponding firewall rules. That way simple possesion of username/password would stop some of them. Still, it is not the same security as a three way match as may be had with some two factor authentication methods. I realize that I am changing the scope of requirements now since my first request was more "security by ignorance" than real two factor authentication.
I can also do static ARP in m0n0 to further encumber IP stealers but that too can be overcome by MAC spoofing. Oh, what a tangled web we weave, trying to implement security. As you see, it is starting to get overly complicated and labour intensive to grant a guest access for a day or a week.
I'm wondering if setting up a RADIUS server wouldn't make more sense and whether it would give me real two factor authentication.
I'm open to suggestions.
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 323 anonymous users online.
|
|
|