View previous topic :: View next topic |
Author |
Message |
VentureQc n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Dec 2015 Posts: 15 Location: Seattle, Wa
|
Posted: Thu Feb 11, 2016 10:05 pm Post subject: iptables doesn't recognize LOG chain |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
dataking Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1494273916446fefe3bf535.gif)
Joined: 20 Apr 2005 Posts: 251
|
Posted: Thu Feb 11, 2016 11:08 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
VentureQc n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Dec 2015 Posts: 15 Location: Seattle, Wa
|
Posted: Fri Feb 12, 2016 5:48 am Post subject: |
|
|
You were right. I compiled the relevant module and it works perfectly. Thanks! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dataking Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1494273916446fefe3bf535.gif)
Joined: 20 Apr 2005 Posts: 251
|
Posted: Fri Feb 12, 2016 8:43 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|