-
Hello, I have routers that are reachable only through proxies, I would like to know how to configure those devices to uses proxies rather than a direct SSH connection. Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Well, firstly that would depend on what kind of proxy you are talking about. Is it SOCKS5? ssh to jump host and run ssh command there? Something else? Let's assume it's SOCKS5. Then that would depend on Napalm having support for connecting via a SOCKS5 proxy. I don't see anything in their documentation that says it does. If Napalm can't do it, then Netbox can't either. You could try spinning up a set of TCP proxies, one per device, each listening on different IP addresses or ports, which forward to the target devices. That's completely external to Netbox of course. |
Beta Was this translation helpful? Give feedback.
-
This article was posted on the networktocode slack channel: https://www.oasys.net/posts/netbox-napalm-automation-with-bastion-host/ |
Beta Was this translation helpful? Give feedback.
Well, firstly that would depend on what kind of proxy you are talking about. Is it SOCKS5? ssh to jump host and run ssh command there? Something else?
Let's assume it's SOCKS5. Then that would depend on Napalm having support for connecting via a SOCKS5 proxy. I don't see anything in their documentation that says it does. If Napalm can't do it, then Netbox can't either.
You could try spinning up a set of TCP proxies, one per device, each listening on different IP addresses or ports, which forward to the target devices. That's completely external to Netbox of course.