On 16 January 2016 at 15:48, Steve Matzura <s...@noisynotes.com> wrote: > On Sat, 16 Jan 2016 01:55:38 +0300, Reco wrote: > >>A simple solution: >> >>iptables -I INPUT -p dcp -s 59.46.71.0/24 -j DROP > > iptables v1.4.21: unknown protocol "dcp" specified > Try `iptables -h' or 'iptables --help' for more information. > > Should I try the complex solution, or find out what went wrong with > the simple one first?
There's a typo in the command Reco gave you. The dcp should be tcp, like the others. In full it should be: iptables -I INPUT -p tcp -s 59.46.71.0/24 -j DROP