Ubuntu and iptables?
Hi there
I have an ftp server (freenas) that i used to have up and running. However i have since shut it down because of an attack from korea(although they failed). I wish to block all international traffic in some way... The only real solution i've come up with is iptables.(However any other easy solutions would be welcomed :-) ) (this article http://gofishingforum.net/software-a...rver-t606.html) Is there an easy way to block all interntational traffic with iptables or some other way? as the only traffic i need coming in is from my own country (or even just my own city). I have a spare computer that i can convert to ubuntu which can be located between the modem and the network Cheers |
Quote:
|
For example, let's say you live in New Zealand. You could extract the IPs doing something like this:
Code:
zgrep "New Zealand" GeoIPCountryCSV.zip | awk -F"," {'print $1 $2'} | \ So to execute an iptables command for each range, you do something like this: Code:
iptables -N CHECK_NEW_ZEALAND |
Ok thanks. I'm not familiar with those commands. But i'll have a look on the internet for iptables and how it works.
Thanks for the heads up |
All times are GMT -5. The time now is 03:00 PM. |