Sudheesh Krishnankutty <[EMAIL PROTECTED]> thus wrote: > I tried > iptables -A int -j REJECT ==> works but no logging > iptables -A int -j LOG ==> not able to find what happens
You need to log packets first and then, do what you are supposed to do with them. eg. I need to log the rejected packets from ip 192.168.100.1 $ iptables -A INPUT -i eth1 -s 192.168.100.1/32 -j LOG --log-prefix " REJECTED " $ iptables -A INPUT -i eth1 -s 192.168.100.1/32 -j REJECT Also, check out the limit module in iptables which helps you to limit the log messages in case you are rejecting a lot of packets -- arc_of_descent ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
