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

Re: Log with iptables

On Wed, Apr 10, 2002 at 11:29:51AM -0300, Eduardo Gon?alves wrote:
> with ipchains:
> #ipchains -A input -p icmp -j ACCEPT -l    --> accept and log
> with iptables, to do the same job:
> #iptables -A INPUT -p icmp -j LOG
> #iptables -A INPUT -p icmp -j ACCEPT
> Is this the correct?!

Yes, but you can also do something like this:

# Create a new chain called LOGACCEPT
iptables -N LOGACCEPT

# Make it log and then accept everything
iptables -A LOGACCEPT -j LOG

# Send stuff to the LOGACCEPT chain
iptables -A INPUT -p icmp -j LOGACCEPT

Michael Wood <mwood@its.uct.ac.za>

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

Reply to: