Skip to main content

IPtables Question

More
14 years 10 months ago #33347 by kogula14
IPtables Question was created by kogula14
Hi,

I would like to know if for an example, i want to block a range of IP address let say 124.217.0.0/16 so the command should be as below:-

iptables -A INPUT -s 124.217.0.0/255.255.0.0 -j DROP

Now my question is, how about if i want to ONLY allow certain IP address from the above range? What command should I use? Let say I want to ALLOW IP 124.217.120.15, in this case, what command should i use since this IP already been blocked in the list???

Thanks!
Time to create page: 0.108 seconds