com.eurotech.framework.net.firewall
Interface FirewallPortForwardConfig

All Superinterfaces:
NetConfig
All Known Subinterfaces:
FirewallPortForwardConfig4
All Known Implementing Classes:
FirewallPortForwardConfigIP, FirewallPortForwardConfigIP4

public interface FirewallPortForwardConfig
extends NetConfig

Marker interface for firewall port forward configurations

Author:
eurotech

Method Summary
 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<? extends IPAddress> 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
 
Methods inherited from interface com.eurotech.framework.net.NetConfig
isValid
 

Method Detail

getInterfaceName

String getInterfaceName()
The external (WAN) interface to listen for inbound connections on

Returns:
The interface name used for this port forward configuration

getAddress

IP4Address getAddress()
The LAN IP address to forward connections to

Returns:
The LAN IPAddress to forward connections to

getProtocol

NetProtocol getProtocol()
Gets the type of network protocol (TCP or UDP) that is used for this configuration

Returns:
The NetProtocol type associated with this interface

getInPort

int getInPort()
The inbound (WAN) port to use for this configuration

Returns:
The WAN port number

getOutPort

int getOutPort()
The outbound (LAN) port to use for this configuration

Returns:
The LAN port number

getPermittedNetwork

NetworkPair<? extends IPAddress> getPermittedNetwork()
Gets the (optional) permitted remote network that can make inbound connections

Returns:
The NetworkPair representing the permitted network

getPermittedMac

String getPermittedMac()
Gets the (optional) permitted MAC address that is allowed to make inbound connections

Returns:
The MAC address that is allowed to make inbound connections

getSourcePortRange

String getSourcePortRange()
Gets the (optional) permitted source port range that is allowed to make inbound connections

Returns:
The source port range that is allowed to make inbound connections


Copyright © 2013. All Rights Reserved.