Package org.apache.sshd.server.forward
Interface TcpForwardingFilter
- All Known Subinterfaces:
ForwardingFilter
- All Known Implementing Classes:
AcceptAllForwardingFilter
,AllowTcpForwardingValue
,RejectAllForwardingFilter
,StaticDecisionForwardingFilter
public interface TcpForwardingFilter
- Author:
- Apache MINA SSHD Project
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The type of requested connection forwarding. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canConnect
(TcpForwardingFilter.Type type, SshdSocketAddress address, Session session) Determine if the session may create an outbound connection.boolean
canListen
(SshdSocketAddress address, Session session) Determine if the session may listen for inbound connections.
-
Field Details
-
DEFAULT
-
-
Method Details
-
canListen
Determine if the session may listen for inbound connections.
This server process will open a new listen socket on the address given by the client (usually 127.0.0.1 but may be any address). Any inbound connections to this socket will be tunneled over the session to the client, which the client will then forward the connection to another host on the client's side of the network.
- Parameters:
address
- address the client has requested this server listen for inbound connections on, and relay them through the client.session
- TheSession
requesting permission to listen for connections.- Returns:
- true if the socket is permitted; false if it must be denied.
-
canConnect
Determine if the session may create an outbound connection.
This server process will connect to another server listening on the address specified by the client. Usually this is to another port on the same host (127.0.0.1) but may be to any other system this server can reach on the server's side of the network.
- Parameters:
type
- TheTcpForwardingFilter.Type
of requested connection forwardingaddress
- address the client has requested this server listen for inbound connections on, and relay them through the client.session
- session requesting permission to listen for connections.- Returns:
- true if the socket is permitted; false if it must be denied.
-