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 3128Make sure that you have removed (-) from -nat above. This is a syntax error.
Regards
Dharmendra T.
***
Thanks
"Dharmendra.T" <dharmu@xxxxxxxxxxx> wrote:Hi,
On Fri, 2003-09-05 at 16:47, ads nat wrote:Hi,After this you have to compile the iptables.
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.Tell me what this file contais. Is this a script which has iptables rules?
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."[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@xxxxxxxxxxx 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@xxxxxxxxxxx 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. |