iptables +block country

Tom H tomh0665 at gmail.com
Mon Aug 16 07:36:17 UTC 2010


On Mon, Aug 16, 2010 at 3:32 AM, Sandy Harris <sandyinchina at gmail.com> wrote:
> On Mon, Aug 16, 2010 at 12:31 PM, NoOp <glgxg at sbcglobal.net> wrote:
>
>> /sbin/iptables -A INPUT -p tcp -s 58.14.0.0/15 -j REJECT
>> /sbin/iptables -A INPUT -p tcp -s 58.16.0.0/13 -j REJECT
>> /sbin/iptables -A INPUT -p tcp -s 58.24.0.0/15 -j REJECT
>>
>> Any advise as to if this is correct?
>
> I do not know if it is correct as far as it goes. It is certainly
> not complete. My current IP address (from China Telecom
> in Shanghai) is not on it.

The http://blacklist.linuxadmin.org/ has a long list when you select
China. The OP must have been giving some examples or chose the ranges
that were probing his router.




More information about the ubuntu-users mailing list