# Path: wifiphisher/common/constants.py
# NETWORK_GW_IP = "10.0.0.1"
# 
# PORT = 8080
# 
# SSL_PORT = 443
# 
# Path: wifiphisher/common/utilities.py
# def execute_commands(commands):
#     """Execute each command and log any errors."""
#     for command in commands:
#         _, error = Popen(command.split(), stderr=PIPE, stdout=DN).communicate()
#         if error:
#             logger.error(
#                 "{command} has failed with the following error:\n{error}".
#                 format(command=command, error=error))


from wifiphisher.common.constants import NETWORK_GW_IP, PORT, SSL_PORT
from wifiphisher.common.utilities import execute_commands
"""Serves as an abstraction layer in front of iptables."""

from __future__ import (absolute_import, division, print_function,
                        unicode_literals)



class Fw():
    """Handles all iptables operations."""

    @staticmethod
    def nat(internal_interface, external_interface):
        # type: (str, str) -> None
        """Do NAT."""

# Path: wifiphisher/common/constants.py
# NETWORK_GW_IP = "10.0.0.1"
# 
# PORT = 8080
# 
# SSL_PORT = 443
# 
# Path: wifiphisher/common/utilities.py
# def execute_commands(commands):
#     """Execute each command and log any errors."""
#     for command in commands:
#         _, error = Popen(command.split(), stderr=PIPE, stdout=DN).communicate()
#         if error:
#             logger.error(
#                 "{command} has failed with the following error:\n{error}".
#                 format(command=command, error=error))


# Path: wifiphisher/common/firewall.py
from wifiphisher.common.constants import NETWORK_GW_IP, PORT, SSL_PORT
from wifiphisher.common.utilities import execute_commands

"""Serves as an abstraction layer in front of iptables."""

from __future__ import (absolute_import, division, print_function,
                        unicode_literals)



class Fw():
    """Handles all iptables operations."""

    @staticmethod
    def nat(internal_interface, external_interface):
        # type: (str, str) -> None
        """Do NAT."""

        execute_commands([