Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

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

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
jlmcp
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 134
Joined: Wed Apr 27, 2005 1:21 am

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

  • Quote

Post by jlmcp » Mon Feb 19, 2007 2:19 am

All,

So, I spent several hours with the Gentoo Wiki(s):

"Iptables for n00bs" - http://gentoo-wiki.com/HOWTO_Iptables_for_newbies
"HOWTO iptables & stateful firewalls" - http://gentoo-wiki.com/HOWTO_Iptables_a ... _firewalls

... and everything seems to work, except the following two rules I pulled from an example in the latter resource:

Code: Select all

iptables -A INPUT -p tcp -i eth0 -j REJECT --reject-with tcp-reset
iptables -A INPUT -p udp -i eth0 -j REJECT --reject-with icmp-port-unreachable
All the rules preceding and following load just fine, but for these two, I get the error:

Code: Select all

iptables: No chain/target/match by that name
Checked the syntax seven ways from Sunday with the iptables man page, et al, but I still get the error.

Hints?
Dell PowerEdge :: 3.8 GHz Pentium 4 :: 1 GB RAM :: Kernel: 2.6.36-gentoo-r2
Top
jtaylor72
Apprentice
Apprentice
User avatar
Posts: 197
Joined: Sun Feb 01, 2004 6:02 pm
Location: "the can", WA

  • Quote

Post by jtaylor72 » Mon Feb 19, 2007 2:40 am

I had this problem when getting this going as well. Check back and make sure you have all the options enabled in the kernel that the guide mentions. I was missing one when I did it.
Top
jlmcp
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 134
Joined: Wed Apr 27, 2005 1:21 am

  • Quote

Post by jlmcp » Mon Feb 19, 2007 5:28 pm

Thanks for the tip ... you were right. ;-)

The main problem is, the aforementioned wiki's are not updated for the peculiarities of how netfilter was implemented in the 2.6.20 kernel, which makes following their instructions somewhat problematic. After a few more hours on the forums here, I was able to figure out how to enable the desired kernel modules, some of which had to be manually switched on in the .config vs. "make menuconfig" before they would appear ... extremely annoying.

If this helps anyone, here are the options I have enabled in my 2.6.20 kernel to enable netfilter/iptables. (Note: some of the options below may be unneeded; just haven't had the time to investigate exactly what each does in order to rule them out.)

Comments definitely welcome!)

Code: Select all

Networking  --->
 Networking options  --->
  [*] Network packet filtering framework (Netfilter) --->

Core Netfilter Configuration  ---> 
 <*> Netfilter netlink interface
    <*> Netfilter NFQUEUE over NFNETLINK interface  
    <*> Netfilter LOG over NFNETLINK interface
 [*] Connection tracking flow accounting
 [*] Connection mark tracking support
 [*] Connection tracking events (EXPERIMENTAL)
 <*> Connection tracking netlink interface (EXPERIMENTAL) 
 <*> Netfilter Xtables support (required for ip_tables)
    <*> "connbytes" per-connection counter match support
    <*> "connmark" connection mark match support
    <*> "conntrack" connection tracking match support
    <*> "state" match support
    <*> "helper" match support

IP: Netfilter Configuration  --->
 <*> IPv4 connection tracking support (required for NAT)
    [*] proc/sysctl compatibility with old connection tracking
 <*> IP tables support (required for filtering/masq/NAT)
    < > ECN match support
    <*> Packet filtering
       <*> REJECT target support
    <*> LOG target support
    <*> Full NAT
 <*> MASQUERADE target support  
Cheers,

Jake
Dell PowerEdge :: 3.8 GHz Pentium 4 :: 1 GB RAM :: Kernel: 2.6.36-gentoo-r2
Top
jtaylor72
Apprentice
Apprentice
User avatar
Posts: 197
Joined: Sun Feb 01, 2004 6:02 pm
Location: "the can", WA

  • Quote

Post by jtaylor72 » Tue Feb 20, 2007 8:44 am

I'm glad I was able to point you in the right direction. It was too long ago for me to remember what the kernel options were, but I had the same experience, finding the right options in the 2.6 when the wiki was for the 2.4.
Top
madman2003
Apprentice
Apprentice
Posts: 178
Joined: Sun Feb 20, 2005 12:59 pm

  • Quote

Post by madman2003 » Fri Mar 02, 2007 3:19 pm

Thanks as well, was usefull.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic