Change UPnP, DMZ and Firewall Switches
set_security_switchesTurn UPnP, DMZ host, firewall, IP/MAC/URL filters, and WAN ping blocking on or off, changing only specified switches. Check current state with get_router_settings first.
Instructions
Turn the router's UPnP, DMZ host, firewall, its IP, MAC and URL filters, and the WAN ping block on or off. Send only the switches to change; the others stay as they are. get_router_settings shows the current state. A DMZ host is reachable from the internet on every port, and turning the firewall off removes the filters' protection.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"confirm": "<confirm>"
},
"name": "set_security_switches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true: the user explicitly asked for this change. | |
| dmzEnabled | No | true forwards every incoming connection to the DMZ host (dmzIpAddress); false turns the DMZ host off. | |
| upnpEnabled | No | true lets devices on the network open ports on the router by themselves (UPnP); false stops it. | |
| dmzIpAddress | No | The LAN IPv4 address of the device to make the DMZ host. | |
| firewallMainSwitch | No | The router's firewall as a whole; the filters below work only while it is on. | |
| firewallIpFilterSwitch | No | The firewall's IP address filter. | |
| firewallMacFilterSwitch | No | The firewall's MAC address filter (for wired and Wi-Fi devices; the Wi-Fi MAC filter is set_wifi_mac_filter). | |
| firewallUrlFilterSwitch | No | The firewall's website (URL) filter. | |
| firewallWanPortPingSwitch | No | true blocks ping requests from the internet; false lets the router answer them. |