Results 1 to 2 of 2

Thread: Proxy with Squid.conf

Hybrid View

  1. #1

    Proxy with Squid.conf

    Hi all,

    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 namdn@fpt.com.vn, thank in advance.
    Best Regards,

  2. #2
    Senior Member
    Join Date
    May 2004
    Location
    Pakistan
    Posts
    253

    Re:

    Dear namdn,
    Salam,

    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.

    Best Regards.
    Frrkh hmd

Similar Threads

  1. Replies: 2
    Last Post: 05-26-2014, 09:12 PM
  2. Help for Squid 3 Proxy
    By ddlinux in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 04-26-2011, 09:15 PM
  3. need help about squid proxy
    By guozhang in forum Linux - General Topics
    Replies: 1
    Last Post: 12-06-2008, 09:45 PM
  4. Squid PROXY
    By brukutu in forum Windows - General Topics
    Replies: 1
    Last Post: 04-07-2008, 06:31 PM
  5. SLED 10 squid.conf
    By firak in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 12-20-2007, 09:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •