LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   UDP ports (https://www.linuxquestions.org/questions/linux-security-4/udp-ports-330574/)

Khalinsar 06-05-2005 10:52 AM

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.

Ephracis 06-05-2005 12:51 PM

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. ;)


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