Hello there,
I am trying to integrate a UCS into our infrastructure, such that the UCS acts as: DHCP-, DNS- and RADIUS Server for our network.
The setup is like that:
Our router is a UDM Pro and therein I have created a network like that:
iprange: 10.42.7.0/24
first IP: 10.42.7.10
last IP: 10.42.7.254
DHCP-Relay: 10.42.7.2
GATEWAY: 10.42.7.1
The UCS is running within a VM on my laptop, which itself has a fixed IP (10.42.7.3
)
The Network setup of the UCS is:
IP (static): 10.42.7.2
Gateway: 10.42.7.1
External DNS: 10.42.7.1
Additionally I have installed the radius
and dhcp
app. The Network is configured to use that dhcp and both - dhcp and dns - are working. Launching a second VM shows that a suitable ip is obtained as well as pinging the local domain of the UCS.
Logging into the UCS via ssh and running:
root@ucs:~# univention-radius-check-access --username=hans.wurst --station-id ""
…
INFO: [user=hans.wurst; mac=:::::] User is allowed to use RADIUS
DEBUG: [user=hans.wurst; mac=:::::] --- Thus access is ALLOWED.
Shows that the user may use the network.
BUT logging into the Access Point and running:
sudo tcpdump -npi eth0 port 1812
shows:
12:13:55.253682 IP 192.168.1.32.34550 > 10.42.7.2.1812: RADIUS, Access-Request (1), id: 0x01 length: 233
12:13:55.255011 IP 10.42.7.2.1812 > 192.168.1.32.34550: RADIUS, Access-Challenge (11), id: 0x01 length: 64
12:13:55.281334 IP 192.168.1.32.34550 > 10.42.7.2.1812: RADIUS, Access-Request (1), id: 0x02 length: 242
12:13:56.306366 IP 10.42.7.2.1812 > 192.168.1.32.34550: RADIUS, Access-Reject (3), id: 0x02 length: 44
12:14:06.636493 IP 192.168.1.32.34550 > 10.42.7.2.1812: RADIUS, Access-Request (1), id: 0x03 length: 233
12:14:06.639879 IP 10.42.7.2.1812 > 192.168.1.32.34550: RADIUS, Access-Challenge (11), id: 0x03 length: 64
12:14:06.662891 IP 192.168.1.32.34550 > 10.42.7.2.1812: RADIUS, Access-Request (1), id: 0x04 length: 242
12:14:07.685997 IP 10.42.7.2.1812 > 192.168.1.32.34550: RADIUS, Access-Reject (3), id: 0x04 length: 44
So when Authentication is issued from the AP it is rejected in each an every case. I guess that this is somewhat connected to the fact that the AP is in a different network (192.168.1.32
) - but that is nothing but a theory.
/etc/freeradius/3.0/clients.conf
contains:
client intranet {
ipaddr = 192.168.1.0/24
secret = testing123
}
What am I missing here?
UPDATE
Above I have not mentioned that I have tried to connect my Laptop, which is the host of the UCS, to the wlan and that just did not work. But using my mobile just worked.