LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-02-2014, 08:34 AM   #1
colonel-top
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, 11:00 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,445

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:
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.
 
  


Reply


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 01:25 AM
How to open a UDP port thiagarn Linux - Newbie 20 05-29-2008 09:00 AM
799 udp port open ddaas Linux - Security 4 07-13-2005 05:33 PM
TCP Port 53 Open - How to enable UDP 53? stardotstar Linux - Networking 6 03-16-2005 04:49 AM
How do I open up a UDP port? Dirt Linux - Networking 9 06-06-2003 05:50 PM


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

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