From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?RMOibmllbA==?= Fraga Subject: Re: Linux 4.3.1 regression: -m state returns "Protocol wrong type for socket" Date: Sat, 12 Dec 2015 14:06:55 -0200 Message-ID: <566c4622.936d810a.ece67.ffffdfc9@mx.google.com> References: <566BEF33.7090501@gmail.com> <566C09F5.6080606@gmail.com> <566C0E75.6080800@familie-kuntze.de> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:to:cc:subject:in-reply-to:references :organization:mime-version:content-type:content-transfer-encoding; bh=SlMZ/L5nZJsmdVHPCq7wItQS+5sghGQnd6hSLDUat40=; b=JO9fNEOK4EtlwgSqeStbISMjmupKuPBBnxugmO4zzPwbpqhzU+4G0ZpAHw/0d3/TxV tnYAFvOtj5dAS8+DqxLMwmLk67Z+6YrzP7ekWu434wFoPJcAADfKdIMECUju0hwS0TpA oPT2idto+XWg6fEud1YzJatDTgQmysXaF9khZnuDEtaGfSx6g49ciX8xjsHV64yNLi0D nhidbCkv48S5LWKccnVmJ7RIqmleSRrql5hv8ZZPxl6rWmFJ2FE/oKqLhuGCvG/iiegV 1WfaQa5VuXlA7w0Nara3wl8PDxBvhyy0sD9lg2goh6iVuXu9CDI8KgB/mH3eIPpmmReb 3Mrw== In-Reply-To: <566C0E75.6080800@familie-kuntze.de> Sender: netfilter-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Noel Kuntze Cc: Jozsef Kadlecsik , Remzi =?UTF-8?B?QUtZw5xa?= , netfilter@vger.kernel.org, netfilter-devel@vger.kernel.org On Sat, 12 Dec 2015 13:09:25 +0100 Noel Kuntze wrote: > - -m state has been deprecated for some time though. > Please try using -m conntrack instead. It offers more > functionality and is not considered deprecated. > Translation of -m state to --m conntrack: > - -m state --state foo,bar -> -m conntrack --ctstate foo,bar I tried this: iptables -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT And I got the same error: iptables: Protocol wrong type for socket. I'm afraid something has changed between 4.3.0 and 4.3.1 kernel and some module isn't loading correctly. Here are the loaded modules: xt_conntrack 3401 0 x_tables 15108 7 xt_comment,ip_tables,xt_tcpudp,xt_conntrack,xt_LOG,iptable_filter,ipt_REJECT nf_conntrack_ftp 6750 0 nf_conntrack 56108 2 xt_conntrack,nf_conntrack_ftp Is there something missing? -- Linux 4.3.2: Blurry Fish Butt http://www.youtube.com/DanielFragaBR http://exchangewar.info Bitcoin: 12H6661yoLDUZaYPdah6urZS5WiXwTAUgL