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 IOException
local
- The local addressremote
- The remote addressSshdSocketAddress
IOException
- If failed to create the requested bindingvoid stopLocalPortForwarding(SshdSocketAddress local) throws IOException
local
- The local addressIOException
- If failed to cancel the requested bindingSshdSocketAddress startRemotePortForwarding(SshdSocketAddress remote, SshdSocketAddress local) throws 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
IOException
- If failed to create the requested bindingvoid stopRemotePortForwarding(SshdSocketAddress remote) throws IOException
remote
- The remote addressIOException
- If failed to cancel the requested bindingSshdSocketAddress startDynamicPortForwarding(SshdSocketAddress local) throws IOException
local
- The local addressSshdSocketAddress
IOException
- If failed to create the requested bindingvoid stopDynamicPortForwarding(SshdSocketAddress local) throws IOException
local
- The local addressIOException
- If failed to cancel the requested bindingCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.