Suppose I have an internal service running on port 7676, how would I (On CentOS) block port 7676 from external sources, so that it can only be accessed locally - AKA 127.0.0.1, not using, for example, 64.222.33.44 - the external IP.
Asked
Active
Viewed 1,050 times
3 Answers
2
If the service software allows binding to specific IP addresses, you can bind it to 127.0.0.1
address.
This means it will listen to requests only arriving via the localhost interface.

Tero Kilkanen
- 36,796
- 3
- 41
- 63