Class IPTablesRestController


  • public class IPTablesRestController
    extends RestController
    The type Ip tables controller.
    • Constructor Detail

      • IPTablesRestController

        public IPTablesRestController()
    • Method Detail

      • addFilterRule

        public String addFilterRule​(FilterRule filterRule,
                                    String ip,
                                    Integer port)
        Add filter rule string.
        Parameters:
        filterRule - the filter rule
        ip - the ip
        port - the port
        Returns:
        the string
      • deleteFilterRule

        public String deleteFilterRule​(FilterRule filterRule,
                                       String ip,
                                       Integer port)
        Delete filter rule string.
        Parameters:
        filterRule - the filter rule
        ip - the ip
        port - the port
        Returns:
        the string
      • addChain

        public String addChain​(Chain chain,
                               String ip,
                               Integer port)
        Add chain string.
        Parameters:
        chain - the chain
        ip - the ip
        port - the port
        Returns:
        the string
      • deleteChain

        public String deleteChain​(Chain chain,
                                  String ip,
                                  Integer port)
        Delete chain string.
        Parameters:
        chain - the chain
        ip - the ip
        port - the port
        Returns:
        the string
      • saveIpTables

        public String saveIpTables​(String ip,
                                   Integer port)
        Save ip tables string.
        Parameters:
        ip - the ip
        port - the port
        Returns:
        the string