Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-02-2014, 09:34 AM   #1
LQ Newbie
Registered: Feb 2014
Posts: 1

Rep: Reputation: Disabled
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)
Old 02-02-2014, 12:00 PM   #2
Ser Olmy
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 2,473

Rep: Reputation: Disabled
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:
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:
/sbin/service iptables save
Again, root privileges are required.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to open udp 67 port in linux zousheng Linux - Newbie 1 05-13-2013 02:25 AM
How to open a UDP port thiagarn Linux - Newbie 20 05-29-2008 10:00 AM
799 udp port open ddaas Linux - Security 4 07-13-2005 06:33 PM
TCP Port 53 Open - How to enable UDP 53? stardotstar Linux - Networking 6 03-16-2005 05:49 AM
How do I open up a UDP port? Dirt Linux - Networking 9 06-06-2003 06:50 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration