Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding proxy socks #87

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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