Mini HTTP service that takes a JSON with server information and check if it's accessible from the application.
In our use-case, we want the tested server to not be accessible from this application.
An unaddressable server is considered a success.
| Key | Requirement | Explanation |
|---|---|---|
| SHARED_KEY | mandatory | Secret shared between main app and this one. (Needs to be sent in the header Authorization) |
| APP_PORT | optional (default 80) | Port used for the application |
{
"server": "example.com",
"port": 25,
"mx": false
}
| Key | Explanation |
|---|---|
| server | Server to check |
| port | Port to use to attempt the connection |
| mx | Instead of resolving the IP, resolve the MX of the server first then check IPs |
{
"request": {
"server": "example.com",
"port": 25,
"mx": false
},
"success": true,
"details": [
{
"server": "example.com",
"ip": "0.0.0.0",
"result": true
},
{
"server": "example.com",
"ip": "0.0.0.1",
"result": true
},
]
}
{
"request": {
"server": "example.com",
"port": 25,
"mx": false
},
"success": false,
"details": [
{
"server": "example.com",
"ip": "0.0.0.0",
"result": false
},
{
"server": "example.com",
"ip": "0.0.0.1",
"result": false
},
]
}
{
"request": {
"server": "example.com",
"port": 25,
"mx": false
},
"success": false,
"details": [
{
"server": "example.com",
"ip": "0.0.0.0",
"result": false
},
{
"server": "example.com",
"ip": "0.0.0.1",
"result": true
},
]
}
Content type
Image
Digest
Size
3.5 MB
Last updated
over 7 years ago
docker pull zerospam/check-firewall