Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iptables doesn't recognize LOG chain
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
VentureQc
n00b
n00b


Joined: 09 Dec 2015
Posts: 15
Location: Seattle, Wa

PostPosted: Thu Feb 11, 2016 10:05 pm    Post subject: iptables doesn't recognize LOG chain Reply with quote

Until recently I was running a Gentoo machine that was extremely outdated. Since I was unable to updated it, I did a fresh install. Everything went smoothly until I started configuring iptables. My old rule sets throw errors they never used to. I was able to narrow it down to the LOG chain.

Running the following script:
Code:

/sbin/iptables -N LOG_DROP
/sbin/iptables -A LOG_DROP -j LOG --log-prefix "iptables drop: " --log-level 7
/sbin/iptables -A LOG_DROP -j DROP


Results in the following:
Quote:

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


I've tried researching the problem but I've come up dry. Any suggestions?
Back to top
View user's profile Send private message
dataking
Apprentice
Apprentice


Joined: 20 Apr 2005
Posts: 251

PostPosted: Thu Feb 11, 2016 11:08 pm    Post subject: Reply with quote

Make sure you have the LOG target enabled in the kernel. Since you did a fresh install, you likely have a new kernel, and it may not have that option enabled. I've stubbed my toe on this multiple times.

Do a kernel config/build with your method of choice (i prefer genkernel, but there are arguments both for and against); reboot into the new kernel and you should be good to go.
_________________
-= the D@7@k|n& =-
Back to top
View user's profile Send private message
VentureQc
n00b
n00b


Joined: 09 Dec 2015
Posts: 15
Location: Seattle, Wa

PostPosted: Fri Feb 12, 2016 5:48 am    Post subject: Reply with quote

You were right. I compiled the relevant module and it works perfectly. Thanks!
Back to top
View user's profile Send private message
dataking
Apprentice
Apprentice


Joined: 20 Apr 2005
Posts: 251

PostPosted: Fri Feb 12, 2016 8:43 am    Post subject: Reply with quote

VentureQc wrote:
You were right. I compiled the relevant module and it works perfectly. Thanks!


Great! Glad to help.

If you could add a "Solved" to the original post's subject, maybe others will find it useful, as well.
_________________
-= the D@7@k|n& =-
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