Constructor and Description |
---|
FirewallNatConfig(java.lang.String srcIface,
java.lang.String dstIface,
java.lang.String protocol,
java.lang.String src,
java.lang.String dst,
boolean masquerade)
Deprecated.
since version 2.2. It will be removed in the next major release. Use instead
FirewallNatConfig(String, String, String, String, String, boolean, RuleType) |
FirewallNatConfig(java.lang.String srcIface,
java.lang.String dstIface,
java.lang.String protocol,
java.lang.String src,
java.lang.String dst,
boolean masquerade,
RuleType type)
Create a configuration for a NAT rule
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDestination() |
java.lang.String |
getDestinationInterface() |
java.lang.String |
getProtocol() |
RuleType |
getRuleType() |
java.lang.String |
getSource() |
java.lang.String |
getSourceInterface() |
int |
hashCode() |
boolean |
isMasquerade() |
boolean |
isValid()
Checks whether or not this configuration is valid.
|
java.lang.String |
toString() |
@Deprecated public FirewallNatConfig(java.lang.String srcIface, java.lang.String dstIface, java.lang.String protocol, java.lang.String src, java.lang.String dst, boolean masquerade)
FirewallNatConfig(String, String, String, String, String, boolean, RuleType)
public FirewallNatConfig(java.lang.String srcIface, java.lang.String dstIface, java.lang.String protocol, java.lang.String src, java.lang.String dst, boolean masquerade, RuleType type)
srcIface
- the source network interface (WAN interface)dstIface
- the destination network interface (LAN interface)protocol
- the network protocol (i.e. tcp, udp)src
- the source network/host address in CIDR notationdst
- the destination network/host address in CIDR notationmasquerade
- whether or not MASQUERADE should be enabledtype
- the type of the rule (IP forwarding, Port forwarding or generic)public java.lang.String getSourceInterface()
public java.lang.String getDestinationInterface()
public java.lang.String getProtocol()
public java.lang.String getSource()
public java.lang.String getDestination()
public boolean isMasquerade()
public RuleType getRuleType()
public boolean isValid()
NetConfig
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object