Configure Iptables to allow a PHP-app accessing a port-nr
Posted
by Camran
on Server Fault
See other posts from Server Fault
or by Camran
Published on 2010-05-30T10:05:14Z
Indexed on
2010/05/30
10:12 UTC
Read the original article
Hit count: 343
I have a php-application which connects to another app called Solr (database search engine). I can via this php app add/remove documents (records) from the Solr index.
However, the Solr security is low, and anybody with the right port nr can access Solr and remove documents (records).
I wonder, is it possible to ONLY allow my own php-app to have access to Solr somehow? Prefferably via Iptables. I am thinking I can only allow my own servers IP to that port, and it would solve my problem, because PHP is a server-side code. But I am not sure.
About the Php-app:
The website is a classifieds website, and when users wants to add or remove classifieds, they do so through a php app, which is this one.
The app has a function which connects to solr and updates the database (index).
I appreciate detailed answers...
Thanks
© Server Fault or respective owner