Constructor and Description |
---|
FirewallNatConfig()
Creates a null NAT configuration
|
FirewallNatConfig(String sourceInterface,
String destinationInterface,
boolean masquerade)
Creates a complete NAT configuration
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDestinationInterface() |
String |
getSourceInterface() |
int |
hashCode() |
boolean |
isMasquerade() |
boolean |
isValid()
Checks whether or not this configuration is valid.
|
void |
setDestinationInterface(String destinationInterface) |
void |
setMasquerade(boolean masquerade) |
void |
setSourceInterface(String sourceInterface) |
String |
toString() |
public FirewallNatConfig()
public FirewallNatConfig(String sourceInterface, 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 String getSourceInterface()
public void setSourceInterface(String sourceInterface)
public String getDestinationInterface()
public void setDestinationInterface(String destinationInterface)
public boolean isMasquerade()
public void setMasquerade(boolean masquerade)
public boolean isValid()
NetConfig
Copyright © 2013. All Rights Reserved.