RE: not solve yet!!!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



John:

This is the rule I use on our servers:

"iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT
--to-port 3128"

The only difference I can see is in the order... I don't know if that
matters.

Hope that helps!

Anthony Sadler
Far Edge Technology
w: (02) 8425 1400
 
-----Original Message-----
From: netfilter-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:netfilter-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of john decot
Sent: Monday, 25 July 2005 4:08 PM
To: netfilter@xxxxxxxxxxxxxxxxxxx
Subject: not solve yet!!!

Hello all,
 i am facing a problem in iptables as follows:
  i have  single nic which ip is eth0= x.x.x.x(public_ip)
    alias is  eth0:1=y.y.y.y( private_ip) the proxy works when ip of server
and port 3128 at lan connection is configured at client side(windows os).
But doesn't work without that whenever i flow traffic to proxy server, again
i have used ip tables as:
 
iptables -A PREROUTING -t nat -p tcp --dport 80 -i eth0 -j REDIRECT
--to-port 3128
 
with above it doesn't work then i tried following iptables -A PREROUTING -t
nat -p tcp --dport 80 -i eth0 -j DNAT $public_ip or $private_ip:3128
 
again the same result.
client pc and server is connect at same switch. and clients have private ip
where as server has public as well as private ip.
any help will be appreciated.
 
thanks in advance.
john
 

		
---------------------------------
 Start your day with Yahoo! - make it your home page 



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux