Koozali.org: home of the SME Server
Obsolete Releases => SME 8.x Contribs => Topic started by: masotsha on July 20, 2015, 08:31:52 AM
-
I added DHCP manager to my SME SERVER. While I can see devices connected. I cannot tell exactly which device it is and whose it is. All the names are represented as follows: pc-00013.mydomain.com and an IP address. How do I tell who pc-00013 is considering that the ip address was DHCP assigned? I also want to be able to disconnect a client from the network at my discretion. Is that possible?
-
Do some searching for 'dhcpactiv.sh' (a script to list active leases & more).
Here's the bug listing with the script attached:
http://bugs.contribs.org/show_bug.cgi?id=2641
I don't know if anyone ever made a server-manager panel that incorporates this info.
-
I wikised the bug 2641 sometime ago...see http://wiki.contribs.org/Dhcpd_lease_time
The special name pc-00013.mydomain.com comes because smeserver is not able to retrieve the client hostame.
It is cover by the bug http://bugs.contribs.org/show_bug.cgi?id=2388 but it is still in development since a really long time.
Probably i will propose that feature as a contrib first and we will see later if we can push it to the core.
Concerning the disconnection of clients (I suppose that you want to revoque the dhcp lease) I worry that you can have the same IP several time because the old client keeps its ip and a new client can get by the server the same ip.
-
masotsha
This may assist you.
Where the workstations are known & accessible to you, you can add hostnames (in the server manager Hostnames panel) for each workstation & assign a fixed IP address that is based on the workstations NIC MAC address.
That way you know which PC is connected by identifying the IP.
You can also allocate fixed IP addresses for VPN connections (done elsewhere IIRC by db command).
-
Where the workstations are known & accessible to you, you can add hostnames (in the server manager Hostnames panel) for each workstation & assign a fixed IP address that is based on the workstations NIC MAC address.
That way you know which PC is connected by identifying the IP.
You can also allocate fixed IP addresses for VPN connections (done elsewhere IIRC by db command).
Great answer
-
The special name pc-00013.mydomain.com comes because smeserver is not able to retrieve the client hostame.
It is cover by the bug http://bugs.contribs.org/show_bug.cgi?id=2388 but it is still in development since a really long time.
Probably i will propose that feature as a contrib first and we will see later if we can push it to the core.
please can you test -> http://forums.contribs.org/index.php/topic,50859.msg264323.html#msg264323