I have a Redhat Linux AS 2.1 server working as proxy server. I have an ADSL line to connect to the internet, my server has 2 NIC, one connected to LAN, the other connected to ADSL modem. I have configured squid.conf file for all workstations connect to internet through my server. Everything is OK. But I also want all clients behind proxy can check mail POP3 with Outlook Express integrated in Windows and extra clients can use YM, webcam. I have known that POP3 and SMTP needed to open ports 110 and 25, but I have tried, not successfully.
Please instruct me to solve this problem.
and send me to email@example.com, thank in advance.
Edit your /etc/rc.d/rc.local and place following rules.
echo "1" > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A PREROUTING -i eth0 -s ! 192.168.0.1 -p tcp --dport 80 -j DNAT --to 8080
/sbin/iptables -t nat -A POSTROUTING -o eth1 -s 192.168.0.0/24 -d squid-box -j SNAT --to 192.168.0.1
/sbin/ iptables -A FORWARD -s 192.168.0.0/24 -d 192.168.0.1 -i eth0 -o eth1 -p tcp --dport 8080 -j ACCEPT
Note: where 192.168.0.1 is your Linux Server IP Address for LAN and 192.168.0.0/24 is your IP Pool.