From mboxrd@z Thu Jan 1 00:00:00 1970 From: ads nat Subject: Re: iptables installation problem Date: Fri, 5 Sep 2003 05:50:10 -0700 (PDT) Sender: netfilter-admin@lists.netfilter.org Message-ID: <20030905125010.458.qmail@web20708.mail.yahoo.com> References: <1062764916.1164.16.camel@india.nsecure.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0-255659646-1062766210=:99854" Return-path: In-Reply-To: <1062764916.1164.16.camel@india.nsecure.net> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: "Dharmendra.T" Cc: netfilter@lists.netfilter.org --0-255659646-1062766210=:99854 Content-Type: text/plain; charset=us-ascii Yes that was the error. It has worked. Thanks "Dharmendra.T" wrote: On Fri, 2003-09-05 at 17:39, ads nat wrote: Hi, It has got following commands : *** iptables --flush iptables --table nat --flush iptables --delete-chain iptables --table nat --delete-chain iptables --table nat --append POSTROUTING --out-interface tunnel0 -j MASQUERADE iptables --append FORWARD --in-interface eth1 -j ACCEPT iptables -t -nat -A PREROUTING -p TCP --dport 80 -j REDIRECT --to-port 3128 This should be iptables -t nat -A PREROUTING -p TCP --dport 80 -j REDIRECT --to-port 3128 Make sure that you have removed (-) from -nat above. This is a syntax error. Regards Dharmendra T. *** Thanks "Dharmendra.T" wrote: Hi, On Fri, 2003-09-05 at 16:47, ads nat wrote: Hi, I am trying to install iptables-1.2.8.tar.bz2 on Linux 8.0 server. I have downloaded iptables-1.2.8.tar.bz2 file from netfilter downloads to /root/iptables-1.2.8 directory. by using command "tar -xf iptables-1.2.8.tar" it has created iptables-1.2.8 directory in which all files are extracted. After this you have to compile the iptables. I don't know how to go further. I tried make and make install. Then when i gave command "/etc/rc.d/rc.local" it gives following error. Tell me what this file contais. Is this a script which has iptables rules? "[root@xyz iptables-1.2.8]# /etc/rc.d/rc.local SIOCDELRT: No such process RTNETLINK answers: File exists SIOCADDRT: File exists SIOCADDRT: File exists iptables v1.2.6a: can't initialize iptables table `-nat': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. How to go ahead now? Thanks --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software -- RegardsDharmendra.Tdharmu@nsecure.netThis message is intended for the addressee only. It may contain privileged or Confidential information. If you have received this message in error,please notify the sender and destroy the message immediately.Unauthorised use or reproduction of this message is strictly prohibited. --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software -- RegardsDharmendra.Tdharmu@nsecure.netThis message is intended for the addressee only. It may contain privileged or Confidential information. If you have received this message in error,please notify the sender and destroy the message immediately.Unauthorised use or reproduction of this message is strictly prohibited. --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software --0-255659646-1062766210=:99854 Content-Type: text/html; charset=us-ascii
Yes that was the error.
It has worked.
 
Thanks

"Dharmendra.T" <dharmu@nsecure.net> wrote:
On Fri, 2003-09-05 at 17:39, ads nat wrote:
Hi,
It has got following commands :
 
***
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
iptables --table nat --append POSTROUTING --out-interface tunnel0 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT

iptables -t -nat -A PREROUTING -p TCP --dport 80 -j REDIRECT --to-port 3128

This should be
iptables -t nat -A PREROUTING -p TCP --dport 80 -j REDIRECT --to-port 3128
Make sure that you have removed (-) from -nat above. This is a syntax error.

Regards
Dharmendra T.
***
 Thanks
 
 
"Dharmendra.T" <dharmu@nsecure.net> wrote:
Hi,

On Fri, 2003-09-05 at 16:47, ads nat wrote:
Hi,
I am trying to install iptables-1.2.8.tar.bz2 on Linux 8.0 server.
I have downloaded iptables-1.2.8.tar.bz2 file from netfilter downloads to /root/iptables-1.2.8 directory.
by using command
"tar -xf iptables-1.2.8.tar"
it has created iptables-1.2.8 directory in which all files are extracted.
After this you have to compile the iptables.
 
I don't know how to go further.
I tried make and make install.
 
Then when i gave command "/etc/rc.d/rc.local"
it gives following error.
Tell me what this file contais. Is this a script which has iptables rules?
"[root@xyz iptables-1.2.8]# /etc/rc.d/rc.local
SIOCDELRT: No such process
RTNETLINK answers: File exists
SIOCADDRT: File exists
SIOCADDRT: File exists
iptables v1.2.6a: can't initialize iptables table `-nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
 
How to go ahead now?
 
Thanks




Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
-- 
Regards
Dharmendra.T
dharmu@nsecure.net

This message is intended for the addressee only. It may contain privileged or Confidential information. If you have received this message in error,please notify the sender and destroy the message immediately.Unauthorised use or reproduction of this message is strictly prohibited.

Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
-- 
Regards
Dharmendra.T
dharmu@nsecure.net

This message is intended for the addressee only. It may contain privileged or Confidential information. If you have received this message in error,please notify the sender and destroy the message immediately.Unauthorised use or reproduction of this message is strictly prohibited.


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software --0-255659646-1062766210=:99854--