Can php control access to a port?
Posted on 2014-11-15
I've been searching but can't seem to find anything on this.
Can php directly control a tcp port and allow/deny access to it?
Basically, the idea is to have a php function which allows only curl authenticated connections to run a test against the iperf service on the server.
I guess I could allow the client by having php allow it's IP for the connection to the port using iptables but I am hoping there might be a simpler way where php could control access to the port or the service based on the client being authenticated.