New to IPSets - Not working as expected
I want to dump all packets coming from IP 192.168.1.18 in syslog. For this, I have created following ipset and iptable. But it is not working for me. Please guide me.
ipset -N test2 ipmap --from 192.168.1.1 --to
192.168.255.255
iptables -A INPUT -m set --set test2 src -j LOG
Best Regards,
Manish Jain
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Quoted 8 lines · Manish Jain
I want to dump all packets coming from IP 192.168.1.18 in syslog. For this, I have created following ipset and iptable. But it is not working for me. Please guide me.
ipset -N test2 ipmap --from 192.168.1.1 --to
192.168.255.255
iptables -A INPUT -m set --set test2 src -j LOG
You created an empty set without adding any element to it. Just add 192.168.1.18 to test2 and the iptables rule will match:
ipset -A test2 192.168.1.18
Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
H-1525 Budapest 114, POB. 49, Hungary