Aslam o Alaikum
After a very long searched and trying to many things i have now posting over here ..
problem is very simple
squid that allows outlook
but its not happening for me
scenario
adslroute---->dynamicip(eth1-192.168.1.3)-----------------------(linux-b0x)---eth0(192.168.2.1)---internal lan
now squid is running very fine
but outlook is not working
i have executed this script
#!/bin/bash
/sbin/iptables -F
/sbin/iptables -t nat -F
/sbin/iptables -t mangle -F
/sbin/iptables -X
#-----------------------------------INPUT CHAIN-------------------------------------------#
/sbin/iptables -A INPUT -s 192.168.1.3 -p icmp --icmp-type echo-request -j ACCEPT
/sbin/iptables -A INPUT -s 192.168.1.3 -p tcp --dport Squid Port -j ACCEPT
/sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
/sbin/iptables -A INPUT -m state --state NEW -i ! eth1 -j ACCEPT
/sbin/iptables -A INPUT -p tcp --dport 80 -j ACCEPT
/sbin/iptables -A INPUT -p tcp --dport 3128 -j ACCEPT
/sbin/iptables -I FORWARD -p tcp --dport 25 -j ACCEPT
/sbin/iptables -I FORWARD -p tcp --dport 110 -j ACCEPT
/sbin/iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT
#---------------------------Transparent Proxy(PREROUTING)-------------------------------#
/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
################################Source Nating(POSTROUTING)------------------------------#
/sbin/iptables -t nat -A POSTROUTING -s 192.168.1.3 -j MASQUERADE
echo '1' > /proc/sys/net/ipv4/ip_forward
i know this scripts turns on transparent proxy
and since m using squid-2.6 i have changed.conf
http_port 192.168.2.1:3128 transparent
and have also tried
http_port 3128 transparent
but now nether the transparent proxy nor outlook is working further
when i used nmap
[root@dhcppc1 ~]# nmap localhost
Starting Nmap 4.11 (
http://www.insecure.org/nmap/ ) at 2010-05-24 13:42 PKT
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 1675 closed ports
PORT STATE SERVICE
22/tcp open ssh
111/tcp open rpcbind
631/tcp open ipp
841/tcp open unknown
3128/tcp open squid-http
Nmap finished: 1 IP address (1 host up) scanned in 0.106 seconds
nothing is open for smtp and pop3
plz help me out