Symptoms
Rules configured in "Host Access Control" in WHM do not take effect.
Description
The issue occurs when conflicting rules have been added outside of "Host Access Control."
Workaround
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Search for rules matching the target port.
nft list ruleset|egrep 'table|dport #'|grep -B1 "dport #"
Please note that "#" must be replaced with the target port number. - Identify the conflicting rule.
- Find the chain and handle ID of the conflicting rule.
nft -a list table $tablename |egrep 'chain|dport #' |grep -B1 "dport #"
Please note that "$tablename" and "#" must be replaced with the name of the table the rule is in and the target port number, respectively. - Delete the conflicting rule.
nft delete rule $tablename $chain handle $handleid
Please note that "$tablename," "$chain." and "$handleid" must be replaced with the name of the table the rule is in and the chain name and handle ID output from the previous command.
Comments
0 comments
Article is closed for comments.