View Single Post
  #1  
Old 04-14-2011, 01:12 AM
seesea's Avatar
seesea seesea is offline
Registered User
 
Join Date: Jun 2010
Posts: 20
Question How to connect in script using a firewall

Hi,
My version is 5.5, I have a firewall settings named "MyFirewall" in global options, how can I specify it in my script? Or can I specify the firewall settings instead of the firewall name?

I'v tried the following ways, but didn't work...
  1. firewall in script
    start.bat
    Code:
    SecureCRT.EXE /SCRIPT script.js
    script.js
    Code:
    ...
    crt.session.ConnectInTab("/FIREWALL /SSH2 /ACCEPTHOSTKEYS /L .. /PASSWORD .. /P .. MyIP")
    ...
  2. firewall in command
    start.bat
    Code:
    SecureCRT.EXE /FIREWALL /SCRIPT script.js
    script.js
    Code:
    ...
    crt.session.ConnectInTab("/SSH2 /ACCEPTHOSTKEYS /L .. /PASSWORD .. /P .. MyIP")
    ...

Thanks for help.
ss
Reply With Quote