only checking if i make correct custom chains

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

 



I only want to see if i interpret iptables custom chains correctly .In
this chain EXAMPLE i want to build a jump that make various things.This
is an example :
IPT=/sbin/iptables
$IPT -N EXAMPLE
$IPT -A EXAMPLE -p tcp --dport 80 -j ACCEPT
$IPT -A EXAMPLE -p tcp --dport 1:65535 DROP
$IPT -A EXAMPLE -p udp --dport 1024:65535 -j DROP
$IPT -A EXAMPLE -p icmp --icmp-type any -j ULOG --ulog-prefix
"DROPPED_ICMP :"
$IPT -A EXAMPLE -p icmp --icmp-type any -j DROP
$IPT -I INPUT -i eth0 -p all -d Myhost -j EXAMPLE
Is all this correct ???? i want for the jump EXAMPLE to accept tcp
connections on port 80 , drop all others , drop all udp on unprivileged
ports , ulog all icmp and than drop them all in one jump and that is
going to happen first of all "I".I'd correct ?Thanks for the attenction !!!

-- 
http://tor.gabrix.ath.cx



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux