LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-11-2012, 09:35 AM   #1
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Rep: Reputation: 1
iptables .....unable to add NAT table


hi,

i'm running squid with out any issue, recently i planned to set it as transparent proxy. in order to that i have add nating to iptables but i get this error

Quote:
[root@squid ~]# iptables -t NAT -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables v1.4.7: can't initialize iptables table `NAT': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
[root@squid ~]# uname -r
2.6.32-279.1.1.el6.i686
[root@squid ~]# iptables -V
iptables v1.4.7
i given current iptables version and kernel. i also updated kernel but no use.

pleaes help me

thank you.
 
Old 07-11-2012, 09:38 AM   #2
Peter Clark
LQ Newbie
 
Registered: Jun 2005
Posts: 16

Rep: Reputation: 0
Quote:
Originally Posted by Gil@LQ View Post
hi,

i'm running squid with out any issue, recently i planned to set it as transparent proxy. in order to that i have add nating to iptables but i get this error



i given current iptables version and kernel. i also updated kernel but no use.

pleaes help me

thank you.
Is it "-t NAT" or "-t nat"?
 
Old 07-21-2012, 03:37 AM   #3
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Original Poster
Rep: Reputation: 1
hi Peter Clark,

you are correct it was wrong it "-t nat" not "-t NAT"

thanks man
 
  


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(marking) + ip rule add fwmark 1 table 200 + ip route add via GW table 200 ?? amitsharma_26 Linux - Networking 9 05-26-2010 06:42 AM
iptables: can't initialize iptables table `NAT' linuxgentoo Linux - Kernel 3 01-17-2010 10:15 AM
iptables-restore: unable to initialize table 'nat' R03L Fedora 1 10-26-2008 02:19 PM
iptables help - nat table Tony/osIRIs Linux - Networking 7 03-05-2006 06:33 PM
Adding the NAT table into iptables logo Linux - Newbie 2 10-28-2004 01:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:57 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