#1
|
|||
|
|||
Seesion Connect with Firewall
Hi there,
Is there a way to connect using Python script to crt.session.connect and specify the Firewall parameters? My devices are all behind firewalls and I am trying to connect using script. I know I can reference a session object with Firewall setting embedded, however not all users of the script have the same session object. Thanks in Advanced, Kevin |
#2
|
|||
|
|||
Hello Kevin,
Yes, similar to how you use crt.Session.Connect() to connect to a session, you can also use it to make an ad hoc connection. The arguments you include when making the Connect() call can include most of the same options available to command-line connections. For example: Code:
crt.Session.Connect("/Firewall=FW_name /SSH2 /PASSWORD p@$$w04d user@host")
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
#3
|
|||
|
|||
Hi Brenda,
Thanks for the reply, this method also require pre-configure Firewall "FW_name". Is it possible to specify Firewall settings in the command. For example my firewall settings are SOCKS version 5 (no authentication) IP: 192.168.1.1 Post: 1080 Is it possible to specify above setting in command instead of referencing a pre-configured Firewall ? Regards, Kevin |
#4
|
|||
|
|||
Hi Kevin,
No, sorry, currently you cannot configure a firewall or use an ad hoc firewall configuration via the command-line. I have created a feature request on your behalf in our product enhancement database for the ability to include an ad hoc firewall configuration from the command-line. Should a future release of SecureCRT include this feature, notification will be posted here. If you prefer direct email notification, contact support@vandyke.com and include "Feature Request - Forum Thread #12084" in the subject line. What is the reason you cannot configure the firewall(s) via the GUI? Do you have many firewalls to add?
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
#5
|
|||
|
|||
Thanks Brenda,
I am developing python script for our users to run in SecureCRT environment. However, not all users have the same Firewall name configured. Therefore the easiest way is just to specifying firewall setting during connect instead of specifying firewall name. I look forward to updated version. Regards, Kevin |
#6
|
|||
|
|||
Hi Kevin,
To clarify, creating the feature request is not a guarantee of implementation. ![]() It just lets the product director know there is interest in the functionality. Feature requests are typically prioritized based on a number of factors including, but not limited to, the number of requests and the amount of implementation work required.
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
#7
|
|||
|
|||
This is what I'm looking for too. It has been two years. Is it a feature yet?
I have a spreadsheet with all the jump host and remoter server creds, but haven't figured out a way to apply to get my results. Setting up 75 firewalls as saved sessions would be fine if I didn't have to manually add all the passwords. However needing to enter all the passwords makes the task too painful and time-consuming. Here's what I'm trying to do: Maybe you have a solution. Jump Host to Remote Server -All-Script Challenge -- https://s2-forums.vandyke.com/showth...8562#post48562 . |
#8
|
|||
|
|||
Hi VanDyke82nev,
I think the original requester was using firewall in the conventional sense, not as a dependent session as you are doing. I have added this thread to a feature request in our product enhancement database to allow users to create new sessions with passwords added using a script. Should a future release of SecureCRT include this feature, notification will be posted here. If you prefer direct email notification, send an email to support@vandyke.com and include "Feature Request - Forum Thread #12084" in the subject line or use this form from the support page of our website. It does look like my colleague, Eric, has come up with an example in the other post to help you get the data you are interested in.
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
![]() |
Tags |
firewall , python , session |
Thread Tools | |
Display Modes | Rate This Thread |
|
|