AW: restrict access

2021-05-25 Thread Walter Harms
yes, under normal circumstances you would use iptables to block the port. But when you are forced to byte-counting and you do not want to install other programms (and maintains them) on your embedded system, this is clearly an option. re, wh Von:

AW: restrict access

2021-05-24 Thread Walter Harms
I did a little experiment and it worked. if (fnmatch("192.168.1.*",remote_host,FNM_PATHNAME) != 0) goto out; this will allow only connections from 192.168.1.* to the server that shows the change can be very simple. I did not try with more complicated situations. The

AW: restrict access

2021-05-20 Thread Walter Harms
Thx for the fast response, for the background: little system, far-far-away land, but some script-kiddie is filling the log ... so no iptables or other fancy stuff. Seems i have to change that, somehow. @matt: in case i get something working ... i am thinking about fnmatch and inet_ntoa would