REFERENCE

v6.11.0

Web Proxy

HTTP/HTTPS CONNECT proxy settings, live status and ordered access rules (`/ip proxy`).

Tools

get_web_proxy

Get Web Proxy Settings · Risk: read

Read RouterOS /ip proxy settings, including enabled, port, outgoing source and cache.

No tool-specific parameters.

update_web_proxy

Update Web Proxy Settings · Risk: dangerous

Configure RouterOS /ip proxy. Enabling a listener does not restrict who may connect: configure IPv4/IPv6 input firewall rules and inspect web proxy access rules first. The outgoing src_address can select existing source-based policy routing; verify the route and NAT separately.

ParameterRequiredDefinition
enabledNo{"type":"boolean"}
portNo{"type":"integer","minimum":1,"maximum":65535}
src_addressNo{"type":"string"}
anonymousNo{"type":"boolean"}
max_cache_sizeNo{"type":"string"}
confirm_firewall_readyNoRequired when enabling: IPv4 and IPv6 input firewall access has been verified. {"type":"boolean"}

monitor_web_proxy

Monitor Web Proxy · Risk: read

Read one /ip proxy monitor once sample, including connection and request counters.

No tool-specific parameters.

list_web_proxy_access_rules

List Web Proxy Access Rules · Risk: read

Read ordered /ip proxy access rules and their .ids. An unmatched request is allowed by RouterOS; use firewall input rules to control source address lists.

No tool-specific parameters.

add_web_proxy_access_rule

Add Web Proxy Access Rule · Risk: write

Add an allow/deny rule to /ip proxy access. Order matters; place_before is an existing .id or zero-based row. Use dst_address to block private targets; the proxy firewall controls client sources.

ParameterRequiredDefinition
actionYes{"type":"string","enum":["allow","deny"]}
src_addressNo{"type":"string"}
dst_addressNo{"type":"string"}
commentNo{"type":"string"}
place_beforeNo{"type":"string"}

remove_web_proxy_access_rule

Remove Web Proxy Access Rule · Risk: destructive

Remove one /ip proxy access rule by .id or zero-based row, after inspecting the ordered list.

ParameterRequiredDefinition
rule_idYes{"type":"string"}

move_web_proxy_access_rule

Move Web Proxy Access Rule · Risk: write-idempotent

Move one /ip proxy access rule before the item at a zero-based destination position; reads back the resulting order.

ParameterRequiredDefinition
rule_idYes{"type":"string"}
destinationYes{"type":"integer","minimum":0,"maximum":9007199254740991}

On this page