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

logging iptables



Hi i have a fairly simple iptables script that blocks all except from port
22, 25, 110 and 113. it looks like this

---------------------------------------------------------------------------
iptables -P INPUT DROP

iptables -A INPUT -p tcp -m multiport -s 0/0 --dport 22,25,110,113 -i eth0
-j ACCEPT

iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
----------------------------------------------------------------------------

is there an easy way to set up logging so i can see both all that are
allowd through and all who gets droped. 

Thanks


___
Mvh./Yours sincerely

Lars 

========================================================================
Lars Roland Kristiansen             | Email:        m00lrk@math.ku.dk 
Stu. Sci. Math/Computer science     | TLF(home):    39670663 
Copenhagen University -             | Home address: Emdrupvej 175 
Institute for Mathematical Sciences | C/O Rune Bruhn 2400 Copenhagen NV 
Url: www.math.ku.dk                 |
========================================================================

   "Politics is for the moment, equations are forever"
                                                    - Albert Einstein



-- 
To UNSUBSCRIBE, email to debian-security-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: