How about starting iperf during boot-up, adding an iptables chain based on the destination port:
Code:
iptables -N IPerfIn
iptables -I INPUT -p tcp --dport 5201 -j IPerfIn
iptables -A IPerfIn -j DROP
...then when your clients "check in" to your PHP app, insert a rule allowing access:
Code:
<?PHP
...
$extCommand='iptables -I IPerfIn -p tcp -s ' . $_SERVER['REMOTE_ADDR'] . ' -j ACCEPT';
$last_line = system($extCommand, $retval);
...
?>
Guess you'd want to remove those rules after a while.....