Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to enable CT target for iptables?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hanj
Veteran
Veteran


Joined: 19 Aug 2003
Posts: 1400

PostPosted: Thu Dec 01, 2016 3:26 am    Post subject: How to enable CT target for iptables? Reply with quote

Working on conntrack issue with FTP with hardened-source-4.7 and up. Looks like automatic helpers have been removed so conntrack_ftp is no longer, and it's recommended to do CT

Code:
$IPT -t raw -A PREROUTING -p tcp --dport 21 -j CT --helper ftp


But when I run that, I get

Code:
iptables: No chain/target/match by that name.


I'm not seeing anything obvious in the 4.8.10 kernel config I'm working on. Any ideas how to enable this?

Current version of iptables and USE flags..

Code:
[ebuild   R    ] net-firewall/iptables-1.4.21-r1::gentoo  USE="conntrack -ipv6 -netlink -static-libs" 0 KiB


Thanks!
hanji
_________________
Server Admin Blog - Uno-Code.com | Gentoo Hosting at Rackspace!
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Thu Dec 01, 2016 10:02 am    Post subject: Reply with quote

Do you have NETFILTER_XT_TARGET_CT in your kernel config?
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
hanj
Veteran
Veteran


Joined: 19 Aug 2003
Posts: 1400

PostPosted: Thu Dec 01, 2016 4:00 pm    Post subject: Reply with quote

massimo wrote:
Do you have NETFILTER_XT_TARGET_CT in your kernel config?


Not sure how I missed that.
Thanks!
hanji
_________________
Server Admin Blog - Uno-Code.com | Gentoo Hosting at Rackspace!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum