How to block UDP packets on all ports except one

Posted by: admin  :  Category: Firewall, Security
closeThis post was published 6 months 26 days ago which may make its actuality or expire date not be valid anymore. This site is not responsible for any misunderstanding.

This example block all incoming packets except port number 27005.:

 -A INPUT -p udp --dport 27005 -j ACCEPT
iptables -A INPUT -p udp -i lo -j ACCEPT #You may ignore this rule
iptables -A INPUT -p udo -s 0/0 -j DROP
VN:F [1.9.14_1148]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.14_1148]
Rating: +1 (from 1 vote)
How to block UDP packets on all ports except one, 10.0 out of 10 based on 1 rating

Popularity: 20% [?]




Related posts

coded by nessus

One Response to “How to block UDP packets on all ports except one”

  1. Linux ip tables job - Web Hosting Talk Says:

    Kramer auto Pingback[...] is here: http://rack-admins.com/how-to-block-…ts-except-one/ __________________ Linux Guru can do magic… cure DDOS example or cast [...]