public interface PortForwardingManager extends PortForwardingInformationProvider
Modifier and Type | Method and Description |
---|---|
SshdSocketAddress |
startDynamicPortForwarding(SshdSocketAddress local)
Start dynamic local port forwarding using a SOCKS proxy.
|
SshdSocketAddress |
startLocalPortForwarding(SshdSocketAddress local,
SshdSocketAddress remote)
Start forwarding the given local address on the client to the given address on the server.
|
SshdSocketAddress |
startRemotePortForwarding(SshdSocketAddress remote,
SshdSocketAddress local)
Start forwarding tcpip from the given address on the server to the given address on the client.
|
void |
stopDynamicPortForwarding(SshdSocketAddress local)
Stop a previously started dynamic port forwarding.
|
void |
stopLocalPortForwarding(SshdSocketAddress local)
Stop forwarding the given local address.
|
void |
stopRemotePortForwarding(SshdSocketAddress remote)
Stop forwarding of the given remote address.
|
getBoundLocalPortForward, getBoundRemotePortForward, getLocalForwardsBindings, getRemoteForwardsBindings, getStartedLocalPortForwards, getStartedRemotePortForwards, isLocalPortForwardingStartedForPort, isRemotePortForwardingStartedForPort
SshdSocketAddress startLocalPortForwarding(SshdSocketAddress local, SshdSocketAddress remote) throws java.io.IOException
local
- The local addressremote
- The remote addressSshdSocketAddress
java.io.IOException
- If failed to create the requested bindingvoid stopLocalPortForwarding(SshdSocketAddress local) throws java.io.IOException
local
- The local addressjava.io.IOException
- If failed to cancel the requested bindingSshdSocketAddress startRemotePortForwarding(SshdSocketAddress remote, SshdSocketAddress local) throws java.io.IOException
Start forwarding tcpip from the given address on the server to the given address on the client.
The remote host name is the address to bind to on the server:local
- The local addressremote
- The remote addressSshdSocketAddress
java.io.IOException
- If failed to create the requested bindingvoid stopRemotePortForwarding(SshdSocketAddress remote) throws java.io.IOException
remote
- The remote addressjava.io.IOException
- If failed to cancel the requested bindingSshdSocketAddress startDynamicPortForwarding(SshdSocketAddress local) throws java.io.IOException
local
- The local addressSshdSocketAddress
java.io.IOException
- If failed to create the requested bindingvoid stopDynamicPortForwarding(SshdSocketAddress local) throws java.io.IOException
local
- The local addressjava.io.IOException
- If failed to cancel the requested binding