Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 06-05-2005, 10:52 AM   #1
LQ Newbie
Registered: Aug 2003
Location: Porto Alegre/RS - Brasil
Distribution: SUSE Linux 10
Posts: 23

Rep: Reputation: 15
UDP ports

I'm a linux newbie. I'm using Suse 9.3.
How do I allow connections on udp ports? I tried through yast but I can't set a whole interval of ports. How do I do that?

Thank you very much.
Old 06-05-2005, 12:51 PM   #2
Senior Member
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 49
Check out iptables. Here are some rules:

# allow udp traffic on port 100
iptables -A INPUT -s 0/0 -p udp --dport 100 -j ACCEPT
# allow udp traffic on port 1-10000 from
iptables -A INPUT -s -p udp --dport 1:10000 -j ACCEPT
# allow udp traffic on all ports for everyone
iptables -A INPUT -s 0/0 -p udp --dport 1:65535 -j ACCEPT
man iptables should give you more info. rtfm.


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
question about udp ports mcd Linux - Networking 3 03-15-2005 04:13 AM
Open UDP ports ArnaudVR Linux - Security 6 06-25-2003 10:43 AM
UDP ports and IPTables estranged0877 Linux - Networking 4 02-18-2003 01:44 PM
Closing UDP ports in RHL 8.0 estranged0877 Linux - Security 2 01-26-2003 02:27 PM
IPChains & UDP ports Sonicsone Linux - Networking 9 12-17-2002 01:48 PM

All times are GMT -5. The time now is 10:40 AM.

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