Learn when you want, where you want with convenient online training courses. Sign up now!
[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More
Experts Exchange Solution brought to you by
"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.
Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.
Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.
ipset -L abc | head -n 20
Open in new window
ipset -L abc | less
ipset -L abc | grep '^1\.'
Header: family inet hashsize 8192 maxelem 65536
Size in memory: 558144
ipset create test hash:net
ipset add test 126.96.36.199
ipset add test 188.8.131.52
ipset add test 184.108.40.206/30
ipset test test 220.127.116.11
ipset del test 18.104.22.168
ipset -L test | grep '^2\.'
ipset flush test
ipset destroy test
ipset -L abc | grep '^213\.'
ipset create ALLOW-abc hash:net
ipset add ALLOW-abc 22.214.171.124.
iptables -A INPUT -m set --match-set ALLOW-abc -j ACCEPT # This line insert before the one that block traffic on abc list.
iptables -A INPUT -m set --match-set abc -j DROP
iptables-save | grep abc
iptables -L INPUT -n --line
Chain INPUT (policy DROP)
num target prot opt source destination
20 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 match-set abc src
iptables -I INPUT 20 -m set --match-set ALLOW-abc -j ACCEPT
iptables -L -n --line
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.