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()
FirewallPortForwardConfiggetInboundInterface in interface FirewallPortForwardConfigpublic void setInboundInterface(java.lang.String interfaceName)
public java.lang.String getOutboundInterface()
FirewallPortForwardConfiggetOutboundInterface in interface FirewallPortForwardConfigpublic void setOutboundInterface(java.lang.String interfaceName)
public IP4Address getAddress()
FirewallPortForwardConfiggetAddress in interface FirewallPortForwardConfigpublic void setAddress(IP4Address address)
public NetProtocol getProtocol()
FirewallPortForwardConfiggetProtocol in interface FirewallPortForwardConfigpublic void setProtocol(NetProtocol protocol)
public int getInPort()
FirewallPortForwardConfiggetInPort in interface FirewallPortForwardConfigpublic void setInPort(int inPort)
public int getOutPort()
FirewallPortForwardConfiggetOutPort in interface FirewallPortForwardConfigpublic void setOutPort(int outPort)
public boolean isMasquerade()
FirewallPortForwardConfigisMasquerade in interface FirewallPortForwardConfigpublic void setMasquerade(boolean masquerade)
public NetworkPair<T> getPermittedNetwork()
FirewallPortForwardConfiggetPermittedNetwork in interface FirewallPortForwardConfigpublic void setPermittedNetwork(NetworkPair<T> permittedNetwork)
public java.lang.String getPermittedMac()
FirewallPortForwardConfiggetPermittedMac in interface FirewallPortForwardConfigpublic void setPermittedMac(java.lang.String permittedMac)
public java.lang.String getSourcePortRange()
FirewallPortForwardConfiggetSourcePortRange in interface FirewallPortForwardConfigpublic void setSourcePortRange(java.lang.String sourcePortRange)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean isValid()
NetConfigpublic java.lang.String toString()
toString in class java.lang.Object