PDA

View Full Version : iptables log incoming traffic from specific IP



kraai
14-02-2005, 10:04
How can I log all incoming traffic from one specific (WAN) IP ?

something like;

iptables -A INPUT -i eth1 -s <ip2Blogged> -j LOGACCEPT

Or should it be done in an other way ?

kraai

kraai
16-02-2005, 12:25
OK I have been reading a lot about iptables. I think I've got it.
At least it works like this:

iptables -A INPUT -i eth1 -s x.x.x.x -j logaccept