This question already has an answer here:
- IPTables only allow localhost access 2 answers
I have setup one application 'phanthomjs' that is running of specific port 6423 I wish that it should be accessible to script that are run locally on the box 'localhost', not accessible from outside.
my current script make use of TCP and run on same box and we make use server name as
localhost for making connection to the application.
Is there any way to in Redhat Linux box to block the access to this port from outside?