Register NAT IP address to public IP address

This function pairs a local IP address with a public IP address on NAT-configured servers.

Authorizations:
query Parameters
local_ip
required
string <ipv4>

The local IPv4 address.

Example: local_ip=192.168.4.10
public_ip
required
string <ipv4>

The public IPv4 address.

Example: public_ip=10.5.3.33

Responses

Response Schema: application/json
object

Request samples

whmapi1 --output=jsonpretty \
  nat_set_public_ip \
  local_ip='192.168.4.10' \
  public_ip='10.5.3.33'

Response samples

Content type
application/json
{
  • "metadata": {
    • "command": "nat_set_public_ip",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}