LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 06-05-2005, 10:52 AM   #1
Khalinsar
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
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

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

Code:
# 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 192.168.0.3
iptables -A INPUT -s 192.168.0.3 -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.
 
  


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
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 11:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration