Constructor and Description |
---|
FirewallAutoNatConfig()
Creates a null NAT configuration
|
FirewallAutoNatConfig(java.lang.String sourceInterface,
java.lang.String destinationInterface,
boolean masquerade)
Creates a complete auto NAT configuration
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDestinationInterface() |
java.lang.String |
getSourceInterface() |
int |
hashCode() |
boolean |
isMasquerade() |
boolean |
isValid()
Checks whether or not this configuration is valid.
|
void |
setDestinationInterface(java.lang.String destinationInterface) |
void |
setMasquerade(boolean masquerade) |
void |
setSourceInterface(java.lang.String sourceInterface) |
java.lang.String |
toString() |
public FirewallAutoNatConfig()
public FirewallAutoNatConfig(java.lang.String sourceInterface, java.lang.String destinationInterface, boolean masquerade)
sourceInterface
- The source interface (LAN interface) for the NAT configurationdestinationInterface
- The destination interface (WAN interface) for the NAT configurationmasquerade
- Whether or not MASQUERADE should be enabledpublic java.lang.String getSourceInterface()
public void setSourceInterface(java.lang.String sourceInterface)
public java.lang.String getDestinationInterface()
public void setDestinationInterface(java.lang.String destinationInterface)
public boolean isMasquerade()
public void setMasquerade(boolean masquerade)
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