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

Re: how to use -j DROPLOG in iptables?



On Wed, 2002-05-08 at 22:25, Patrick Hsieh wrote:
> Hello,
> 
> When I use -j DROPLOG in iptables, my woody complains:
> iptables v1.2.6a: Couldn't load target `DROPLOG':/lib/iptables/libipt_DROPLOG.so: cannot open shared object file: No such file or directory
> 
> Try `iptables -h' or 'iptables --help' for more information.

The Quick'n Dirty way.

iptables -N DROPLOG
iptables -A DROPLOG -j LOG
iptables -A DROPLOG -j DROP


You may want to consider:
iptables -N DROPLOG
iptables -A DROPLOG -j LOG
iptables -A DROPLOG -p tcp -j REJECT --reject-with tcp-reset
iptables -A DROPLOG -p udp -j REJECT --reject-with icmp-port-unreachable
iptables -A DROPLOG -p udp -j DROP

--
David Stanaway

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: