urgent help required

General discussion about Linux, Linux distribution, using Linux etc.

urgent help required

Postby smk08 » Wed Jan 06, 2010 3:43 pm

Asslamu Alaikum

i have local interface eth0 172.16.0.1/16 and outgoing (internet ) interface eth1 192.168.15.1
and i am using squid 2.6 stable version.
i add the following rule for transparent proxy

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

but this configuration does not work

kindly guide me how congfigure transparent proxy .


JAZAK ALLAH.
Shahid Mahmood
0321-4538113
i am crazy to learn linux
smk08
Naik
 
Posts: 56
Joined: Fri Aug 08, 2008 1:44 pm
Location: Sheikhupura, Pakistan

W.salam,

Postby xeon » Fri Jan 08, 2010 12:30 am

Dear First of all add this command:
echo 1 > /proc/sys/net/ipv4/ip_forward

Now add Iptables:
iptables -t nat -A POSTROUTING -o eth1 -p tcp -j MASQUERADE

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

Regards,
Asif Ali
Pink Link Network
+92-333-7849320
www.pinklinknetwork.com
xeon
Cadet
 
Posts: 10
Joined: Tue Feb 24, 2009 9:02 pm
Website: http://www.pinklinknetwork.com
WLM: great_victor@hotmail.com
Yahoo Messenger: asifalirp@yahoo.com
Location: Pakistan


Return to “%s” General

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron