LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need Help with Port Open UDP (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-with-port-open-udp-4175493432/)

colonel-top 02-02-2014 08:34 AM

Need Help with Port Open UDP
 
Hi guys I have a problem with iptables
i'm trying to open port udp 7778
make it listen
so how I can do that I want this help
can anyone help me plz ?
thank you very much ^^
(VPS CentOs)

Ser Olmy 02-02-2014 11:00 AM

You will need to add a rule to the INPUT chain permitting traffic to UDP port 7778, and you must make sure this rule appears before other rules blocking UDP traffic.

The simplest (but not necessarily best) way to accomplish this, is to insert a rule at the top of the chain:
Code:

iptables -I INPUT -p udp --dport 7778 -j ACCEPT
The command above must be run as root.

You will also have to save the ruleset to the CentOS configuration files, otherwise the change will be lost next time the system is rebooted. According to the CentOS documentation, you'll need to run the following command:
Code:

/sbin/service iptables save
Again, root privileges are required.


All times are GMT -5. The time now is 05:49 AM.