Protecting Iperf server over internet
I have a number of logging devices which connect home over the internet. Each device calls home using curl, authenticating part htpasswd then onto a php app.
I wanted to add iperf as a test to know where there are bandwidth issues but I need to protect iperf to allow only my own devices to use the server and iperf running as a daemon/service. Was wondering if anyone in this list might have to thoughts on how this could be done, so that I could retain my htpasswd/php authentication since I already have it in place. Might there be a way of having php allow the iperf connection perhaps? And if not iperf, perhaps another variation of it which I've not found on the net yet? Thanks kindly. |
How about starting iperf during boot-up, adding an iptables chain based on the destination port:
Code:
iptables -N IPerfIn Code:
<?PHP |
It isn't safe to let php have access to iptables but thanks.
The way I did it was basically to build a script which regularly processes the allowed IPs then updates the iptables. This is working fine. |
All times are GMT -5. The time now is 02:41 AM. |