InMotion Hosting Support Center

How do I set up a firewall UDP allow rule in WHM for VPS?

Category: How To

2011-10-24 2:29 pm EST

Hits: 14,588
I'm trying to add an "allow" rule for specific UDP ports using WHM. I can successfully allow traffic on all ports from a specific IP address, using s=[ip]. I can also allow TCP traffic to specific ports from anywhere, using d=[port]:s= These commands are accepted by the "Add IP to firewall" page in WHM and I have successfully tested sending traffic to the relevant TCP ports from different IP addresses.

However, doing the same for UDP traffic fails. I used the format "udp:d=[port]:s="; WHM accepts the rule, but when the firewall restarts, the relevant output is:

allow h to port [port]

and UDP packets to the specified port still seem to be blocked.

How do I allow UDP traffic (to specific ports from any IP) from within WHM? I have not requested root privileges on the VPS, so I cannot directly edit the firewall configuration files.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by User


Tim S
13,821 Points
2011-10-24 2:47 pm EST
Hi Taciturn,

Thanks for posting your question. The "Add IP to Firewall" tool in WHM was primarily written by our systems administrators so you can easily add your IP address to the firewall for WHM access. I have ran some tests, and it does not like the format that should be used such as:


Without root access, you will need to contact our support department so we can add the rule for you. You can either call our support department, or email support at:

If you email support your request, you will need to verify your account in the email as well. To verify the account, you will need to provide us with the last four digits of the credit card, or the current AMP password.

If you need further assistance please feel free to contact us. Or if you are looking for a VPS or thinking about upgrading, <a href="">click here</a> to see why our VPS plans are a great low cost option.

Thank You!

Tim S

You must login before you can post a comment about this answer.

Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!