T - public abstract class FirewallPortForwardConfigIP<T extends IPAddress> extends Object implements FirewallPortForwardConfig
| Constructor and Description |
|---|
FirewallPortForwardConfigIP()
Creates and empty port forward configuration
|
FirewallPortForwardConfigIP(String interfaceName,
IP4Address address,
NetProtocol protocol,
int inPort,
int outPort,
NetworkPair<T> permittedNetwork,
String permittedMac,
String sourcePortRange)
Creates a complete port forward configuration
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
IP4Address |
getAddress()
The LAN IP address to forward connections to
|
int |
getInPort()
The inbound (WAN) port to use for this configuration
|
String |
getInterfaceName()
The external (WAN) interface to listen for inbound connections on
|
int |
getOutPort()
The outbound (LAN) port to use for this configuration
|
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
|
String |
getSourcePortRange()
Gets the (optional) permitted source port range that is allowed to make inbound connections
|
int |
hashCode() |
boolean |
isValid()
Checks whether or not this configuration is valid.
|
void |
setAddress(IP4Address address) |
void |
setInPort(int inPort) |
void |
setInterfaceName(String interfaceName) |
void |
setOutPort(int outPort) |
void |
setPermittedMac(String permittedMac) |
void |
setPermittedNetwork(NetworkPair<T> permittedNetwork) |
void |
setProtocol(NetProtocol protocol) |
void |
setSourcePortRange(String sourcePortRange) |
String |
toString() |
public FirewallPortForwardConfigIP()
public FirewallPortForwardConfigIP(String interfaceName, IP4Address address, NetProtocol protocol, int inPort, int outPort, NetworkPair<T> permittedNetwork, String permittedMac, String sourcePortRange)
interfaceName - The interface name on which this configuration will listen for inbound connectionsaddress - 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 onpermittedNetwork - The (optional) permitted network for inbound connectionspermittedMac - The (optional) permitted MAC address for inbound connectionssourcePortRange - The (options) permitted source port range for inbound connectionspublic String getInterfaceName()
FirewallPortForwardConfiggetInterfaceName in interface FirewallPortForwardConfigpublic void setInterfaceName(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 NetworkPair<T> getPermittedNetwork()
FirewallPortForwardConfiggetPermittedNetwork in interface FirewallPortForwardConfigpublic void setPermittedNetwork(NetworkPair<T> permittedNetwork)
public String getPermittedMac()
FirewallPortForwardConfiggetPermittedMac in interface FirewallPortForwardConfigpublic void setPermittedMac(String permittedMac)
public String getSourcePortRange()
FirewallPortForwardConfiggetSourcePortRange in interface FirewallPortForwardConfigpublic void setSourcePortRange(String sourcePortRange)
public boolean isValid()
NetConfigCopyright © 2013. All Rights Reserved.