Hi,
i want to add an option in dhcpd.conf:
on commit {
set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
execute("/dhcpevent.sh", clhw);
}
and a script /dhcpevent.sh with:
#!/bin/sh
echo $1 | nc -c 192.168.0.10 32123
This way i can inform a computer that a new device is in the network (for example a friend with his mobile phone) and fire an notification.
I copied all needed binaries (bash, nc) and libs in the chroot: /var/chroot-dhcps/
but when i try to send or receive something via netcat, it isn't working.
Netcat doesnt throw an error or exits, it does nothing.
Seems that the traffic is blocked.
2 Questions:
a: How i can i allow sending via netcat in chroot on a specific port?
b: When i do a firmware upgrade, will my files be overwritten?
Maybe there is an other way to do that, but i dont think so.
Generally i want to get a notification on my computer when a mobile phone connects to my network via wlan. Wlan is not handled via the Sophos UTM,
it is an normal consuper AP, connected to the internal LAN.
thanks for you help and excuse by bad english
i want to add an option in dhcpd.conf:
on commit {
set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
execute("/dhcpevent.sh", clhw);
}
and a script /dhcpevent.sh with:
#!/bin/sh
echo $1 | nc -c 192.168.0.10 32123
This way i can inform a computer that a new device is in the network (for example a friend with his mobile phone) and fire an notification.
I copied all needed binaries (bash, nc) and libs in the chroot: /var/chroot-dhcps/
but when i try to send or receive something via netcat, it isn't working.
Netcat doesnt throw an error or exits, it does nothing.
Seems that the traffic is blocked.
2 Questions:
a: How i can i allow sending via netcat in chroot on a specific port?
b: When i do a firmware upgrade, will my files be overwritten?
Maybe there is an other way to do that, but i dont think so.
Generally i want to get a notification on my computer when a mobile phone connects to my network via wlan. Wlan is not handled via the Sophos UTM,
it is an normal consuper AP, connected to the internal LAN.
thanks for you help and excuse by bad english