Re: help me in IPTABLES

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Vivek Mangal wrote:
hello all,

  Can you help me to understand iptables Problem in below line

iptables -A OUTPUT -p udp -o eth0 --dport 53 --sport 1024:65535 -j ACCEPT

iptables -A INPUT -p udp -i eth0 --sport 53 --dport 1024:65535 -j ACCEPT

I have confeusion that in first line Destination Port is 53 and Source
Port 1024
to 65535
means any request come from 1024 to 65535 ports goes to 53  port.

And in second line Destination Port is 1024 to 65535 and Source Port 53
means any request come from 53 port goes to 1024 to 65535 ports.

it open all 1024 to 65535 and 53 ports then what the use of Iptable ?

Please help me........

Vivek Mangal

you can disregard the INPUT line and put INPUT with ESTABLISHED, RELATED instead.
something like
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

Budi Febrianto
   www.indomino.net/blog

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux