T
- @ProviderType public abstract class FirewallPortForwardConfigIP<T extends IPAddress> extends java.lang.Object implements FirewallPortForwardConfig
Constructor and Description |
---|
FirewallPortForwardConfigIP()
Creates and empty port forward configuration
|
FirewallPortForwardConfigIP(java.lang.String inboundIface,
java.lang.String outboundIface,
IP4Address address,
NetProtocol protocol,
int inPort,
int outPort,
boolean masquerade,
NetworkPair<T> permittedNetwork,
java.lang.String permittedMac,
java.lang.String sourcePortRange)
Creates a complete port forward configuration
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
IP4Address |
getAddress()
The LAN IP address to forward connections to
|
java.lang.String |
getInboundInterface()
The external (WAN) interface to listen for inbound connections on
|
int |
getInPort()
The inbound (WAN) port to use for this configuration
|
java.lang.String |
getOutboundInterface()
The internal (LAN) interface packets will be forwarded to
|
int |
getOutPort()
The outbound (LAN) port to use for this configuration
|
java.lang.String |
getPermittedMac()
Gets the (optional) permitted MAC address that is allowed to make inbound connections
|
NetworkPair<T> |
getPermittedNetwork()
Gets the (optional) permitted remote network that can make inbound connections
|
NetProtocol |
getProtocol()
Gets the type of network protocol (TCP or UDP) that is used for this configuration
|
java.lang.String |
getSourcePortRange()
Gets the (optional) permitted source port range that is allowed to make inbound connections
|
int |
hashCode() |
boolean |
isMasquerade()
Use masquerading
|
boolean |
isValid()
Checks whether or not this configuration is valid.
|
void |
setAddress(IP4Address address) |
void |
setInboundInterface(java.lang.String interfaceName) |
void |
setInPort(int inPort) |
void |
setMasquerade(boolean masquerade) |
void |
setOutboundInterface(java.lang.String interfaceName) |
void |
setOutPort(int outPort) |
void |
setPermittedMac(java.lang.String permittedMac) |
void |
setPermittedNetwork(NetworkPair<T> permittedNetwork) |
void |
setProtocol(NetProtocol protocol) |
void |
setSourcePortRange(java.lang.String sourcePortRange) |
java.lang.String |
toString() |
public FirewallPortForwardConfigIP()
public FirewallPortForwardConfigIP(java.lang.String inboundIface, java.lang.String outboundIface, IP4Address address, NetProtocol protocol, int inPort, int outPort, boolean masquerade, NetworkPair<T> permittedNetwork, java.lang.String permittedMac, java.lang.String sourcePortRange)
inboundIface
- The interface name on which this configuration will listen for inbound connectionsoutboundIface
- The inetrface name on which packet will be forwardedaddress
- The LAN address to forward toprotocol
- The protocol (TCP or UDP) to listen for and forwardinPort
- The inbound (WAN) port to listen onoutPort
- The outbound (LAN) port to listen onmasquerade
- Use masqueradepermittedNetwork
- The (optional) permitted network for inbound connectionspermittedMac
- The (optional) permitted MAC address for inbound connectionssourcePortRange
- The (options) permitted source port range for inbound connectionspublic java.lang.String getInboundInterface()
FirewallPortForwardConfig
getInboundInterface
in interface FirewallPortForwardConfig
public void setInboundInterface(java.lang.String interfaceName)
public java.lang.String getOutboundInterface()
FirewallPortForwardConfig
getOutboundInterface
in interface FirewallPortForwardConfig
public void setOutboundInterface(java.lang.String interfaceName)
public IP4Address getAddress()
FirewallPortForwardConfig
getAddress
in interface FirewallPortForwardConfig
public void setAddress(IP4Address address)
public NetProtocol getProtocol()
FirewallPortForwardConfig
getProtocol
in interface FirewallPortForwardConfig
public void setProtocol(NetProtocol protocol)
public int getInPort()
FirewallPortForwardConfig
getInPort
in interface FirewallPortForwardConfig
public void setInPort(int inPort)
public int getOutPort()
FirewallPortForwardConfig
getOutPort
in interface FirewallPortForwardConfig
public void setOutPort(int outPort)
public boolean isMasquerade()
FirewallPortForwardConfig
isMasquerade
in interface FirewallPortForwardConfig
public void setMasquerade(boolean masquerade)
public NetworkPair<T> getPermittedNetwork()
FirewallPortForwardConfig
getPermittedNetwork
in interface FirewallPortForwardConfig
public void setPermittedNetwork(NetworkPair<T> permittedNetwork)
public java.lang.String getPermittedMac()
FirewallPortForwardConfig
getPermittedMac
in interface FirewallPortForwardConfig
public void setPermittedMac(java.lang.String permittedMac)
public java.lang.String getSourcePortRange()
FirewallPortForwardConfig
getSourcePortRange
in interface FirewallPortForwardConfig
public void setSourcePortRange(java.lang.String sourcePortRange)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isValid()
NetConfig
public java.lang.String toString()
toString
in class java.lang.Object