EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Multi-Port Forwarding

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#23614
Posted: 02/21/2013 15:43:32
by Carlton  (Basic support level)
Joined: 02/21/2013
Posts: 45

How do I automatically accept the key from the server
#23615
Posted: 02/21/2013 15:51:35
by Ken Ivanov (EldoS Corp.)

Handle the OnKeyValidate event and set the Validate parameter to true inside the handler. We strongly encourage you to have a look at the simple forwarding sample. It illustrates all the aspects you should take into account when configuring the component.
#23616
Posted: 02/21/2013 16:18:11
by Carlton  (Basic support level)
Joined: 02/21/2013
Posts: 45

I have look at it


I am receiving this error

Exception:Thrown: "An invalid IP address was specified." (System.FormatException)
A System.FormatException was thrown: "An invalid IP address was specified."
#23617
Posted: 02/21/2013 16:28:44
by Ken Ivanov (EldoS Corp.)

Did you check the correctness of all the IP addresses and DNS names you assign to the components' properties? If all of them look good for you, please post a piece of your code here and we will have a look at it.
#23618
Posted: 02/21/2013 16:36:14
by Carlton  (Basic support level)
Joined: 02/21/2013
Posts: 45

The add Tunnel is not working for me.

I added to your demo.

int tunnelIdx = forwarding.AddTunnel();
forwarding.get_Tunnels(tunnelIdx).AutoOpen = true;
forwarding.get_Tunnels(tunnelIdx).DestHost = "10.20.10.204";
forwarding.get_Tunnels(tunnelIdx).DestPort = 7018;
forwarding.get_Tunnels(tunnelIdx).ForwardedHost = "";
forwarding.get_Tunnels(tunnelIdx).ForwardedPort = 7018;
#23619
Posted: 02/21/2013 16:44:46
by Ken Ivanov (EldoS Corp.)

The above configuration appears to be correct. And what values are you assigning to the 1) main component's Address property; 2) main component's DestHost property?
#23620
Posted: 02/21/2013 16:53:18
by Carlton  (Basic support level)
Joined: 02/21/2013
Posts: 45

AutoOpen is not working. It seem that when I moved and changed to Open instead of Auto Open it worked

int tunnelIdx = forwarding.AddTunnel();
forwarding.get_Tunnels(tunnelIdx).DestHost = "10.20.10.204";
forwarding.get_Tunnels(tunnelIdx).DestPort = 7018;
forwarding.get_Tunnels(tunnelIdx).ForwardedHost = "";
forwarding.get_Tunnels(tunnelIdx).ForwardedPort = 7018;
forwarding.get_Tunnels(tunnelIdx).Open();
#23621
Posted: 02/21/2013 16:59:23
by Ken Ivanov (EldoS Corp.)

It would be great if you let us know what exactly do you mean by AutoOpen 'not working'. Do you get any exceptions or error messages? Is the local port opened? Is there anything reported in the sample's log control at the bottom of the main form?
#23622
Posted: 02/21/2013 17:19:28
by Carlton  (Basic support level)
Joined: 02/21/2013
Posts: 45

""""""""
int tunnelIdx = forwarding.AddTunnel();
forwarding.get_Tunnels(tunnelIdx).AutoOpen = true;
forwarding.get_Tunnels(tunnelIdx).DestHost = "10.20.10.204";
forwarding.get_Tunnels(tunnelIdx).DestPort = 7018;
forwarding.get_Tunnels(tunnelIdx).ForwardedHost = "";
forwarding.get_Tunnels(tunnelIdx).ForwardedPort = 7018;
""""""""""

The port did not open when I try to access to port
#23623
Posted: 02/21/2013 17:25:25
by Ken Ivanov (EldoS Corp.)

When exactly is the above code executed? Is it executed *before* you call TElSSHLocalPortForwarding.Open() or after that?
Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.

Reply

Statistics

Topic viewed 13825 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!