Skip to content

Conversation

@kacem-expereo
Copy link

Adding proxy socks in the constructor
One can add the following parameters to the RouterOSApiPool constructor : proxy_socks_host and proxy_socks_port.
API requests are then transmitted via the proxy socks. This can be helpful when one can not directly communicate with the mikrotik routers and must use an intermediate machine.

Example :

connection=routeros_api.RouterOsApiPool(
    "1.1.1.1",
    username='mikrotik',
    password='mikrotikpassword',
    port=8729,
    plaintext_login=True,
    proxy_socks_host="127.0.0.1",
    proxy_socks_port=9090,
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant