ConfigServer Security & Firewall allow port to specific ip Print

  • 0

Login to WHM and navigate to the "ConfigServer Security & Firewall" page.

On this page, press the “Firewall Allow IPs” button. 

  • From this we can see that the format we will be using is tcp/udp|in/out|s/d=port|s/d=ip
  • Create your desired rule. For example, if we want to create a rule to allow inbound MySQL connections from IP 192.168.1.1 it would look like this
  tcp|in|d=3306|s=192.168.1.1
  • Lets look at what we’ve defined above:
    • tcp defines the protocol we’re using. MySQL uses TCP sockets.
    • in defines that this rule pertains to inbound traffic or traffic coming into your system from an external one.
    • d=3306 is the port number which MySQL uses by default.
    • s=192.168.1.1 is the IP address we want to allow into our system on the port and protocol specified above.

IP ranges in CIDR format are accepted. Port ranges are not accepted and you must have one rule per line per port per protocol.

  • To apply this rule, on the next page click “Restart csf+lfd”.

Was this answer helpful?

« Back