How do I deny Particular port from particular country ?
Linux Fully Managed Dedicated Server has a full root access to customize all settings and change the required modification which you required. Its having a plugin called “ConfigServer Security & Firewall” option to restrict the incoming and outgoing connections and ports etc. By using the same option you can enable or disable particular port easily in TCP_IN and TCP_OUT option for IPV4 connections.
If you want to restrict one particular port alone from one single or specified countries you can do it using same “ConfigServer Security & Firewall“.
You can follow the below procedure for the same,
1. Login to your WHM as a root
2.Choose Firewall Configuration under csf – ConfigServer Firewall
3.Under Country Code Lists and Settings Enter the Ports which you want to deny in “CC_DENY_PORTS = ” and the exact country from which you want to disable the port in,
“CC_DENY_PORTS_TCP = ” and “CC_DENY_PORTS_UDP = ”
IMPORTANT NOTE:
———-
This option uses the same format as TCP_IN/UDP_IN. The ports listed should NOT be removed from TCP_IN/UDP_IN
By this way this option denies access from the mentioned countries to specific ports listed in CC_DENY_PORTS_TCP and CC_DENY_PORTS_UDP.