LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-24-2010, 07:43 AM   #1
jimmy99
LQ Newbie
 
Registered: Jul 2009
Posts: 6

Rep: Reputation: 0
Iptables error No chain/target/match by that name


greetings
I am trying to append the following rule:
iptables -A PREROUTING -d xxx.xxx.88.172 -i eth0 -p tcp -m tcp --dport 80 -j DNAT --to-destination xxx.xxx.244.2

but I get the following error message:
iptables: No chain/target/match by that name

any useful suggestions on where to look for a solution?
 
Old 05-24-2010, 08:10 AM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
PREROUTING is in the nat table. If no table is specified the filter table is used by default.

try:
Code:
iptables -t nat -A PREROUTING -d xxx.xxx.88.172 -i eth0 -p tcp -m tcp --dport 80 -j DNAT --to-destination xxx.xxx.244.2
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables: No chain/target/match by that name secretlydead Linux - Networking 2 04-08-2010 10:42 PM
iptables: No chain/target/match by that name amdy Linux - Networking 2 04-07-2010 11:59 PM
iptables: No chain/target/match by that name - with 2.6.17.7 tp11235 Linux - Kernel 10 03-24-2010 02:15 AM
iptables: No chain/target/match by that name serpentor Linux - Server 4 02-05-2009 10:02 AM
iptables: No chain/target/match by that name qanopus Linux - Networking 6 01-04-2009 09:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration