API reference
Firewall
A VPS firewall applies rule sets: templates defined once on the account, then applied to one or more VPS. Editing a rule set updates every VPS it is applied to.
To open a port to specific addresses:
- Create a rule set describing the allowed ports and addresses.
- Apply it to the VPS.
- Enable the firewall of the VPS if it is not already enabled.
Retrieve the firewall of a VPS shows the rules actually in place, including those enforced by LWS, such as the outgoing port 25 block, lifted on request.
9 operations
-
GET
Retrieve the firewall of a VPS
/servers/{vmid}/firewall -
PUT
Enable or disable the firewall
/servers/{vmid}/firewallDeferred Asynchronous · 202
-
GET
List rule sets
/firewall/sets -
POST
Create a rule set
/firewall/sets -
PUT
Edit a rule set
/firewall/sets/{id} -
DELETE
Delete a rule set
/firewall/sets/{id} -
POST
Apply a rule set
/servers/{vmid}/firewall/sets/{id}Deferred Asynchronous · 202
-
DELETE
Remove a rule set
/servers/{vmid}/firewall/sets/{id}Deferred Asynchronous · 202
-
POST
Request port 25 unblocking
/servers/{vmid}/firewall/unblock-port25