Find the answer to your Linux question:
Results 1 to 3 of 3
I have Red Hat Linux 7.3 with squid-2.4.STABLE6-1.7.2, kernel-2.4.18-3,iptables-1.2.5-3. I want to run cable network with 100 users with normal dialup. I have 4 PC PIII 733Mhz with 256MB RAM ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2003
    Posts
    5

    Proxy Setup


    I have Red Hat Linux 7.3 with squid-2.4.STABLE6-1.7.2, kernel-2.4.18-3,iptables-1.2.5-3.

    I want to run cable network with 100 users with normal dialup.

    I have 4 PC PIII 733Mhz with 256MB RAM and USR 56K External Modem with Linux 7.3 configure Squid and 4 telephone lines.

    Now I want all my request come on server1 ( for this I setup dhcp on server1 and define gateway,DNS to server1 to all clients),
    I also setup MASQUREAD on server1 so all clients are connected with Internet.

    But if any request come for browsing means tcp port 80 Linux automatically forward that request on server2, server3, server4.
    Actually I want to distribute all browsing request to server2, server3 and server4.

    I know 4 normal telephone line is not best for 100 users but right now I do not have any other resource.

    I am sending herewith my script which I am using on server1.


    # Flush all Rules
    /sbin/iptables --flush
    /sbin/iptables --table nat --flush
    /sbin/iptables --delete-chain
    /sbin/iptables --table nat --delete-chain


    # for transprent proxy
    /sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080


    # for MASQUREADE
    /sbin/iptables --table nat --append POSTROUTING -s 192.168.0.0/24 --out-interface ppp0 -j MASQUERADE
    /sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
    /sbin/iptables -A INPUT -m state --state NEW -i ! ppp0 -j ACCEPT
    /sbin/iptables -P INPUT DROP #only if the first two are succesful
    /sbin/iptables -A FORWARD -i ppp0 -o ppp0 -j REJECT


    echo "1" > /proc/sys/net/ipv4/ip_forward

  2. #2
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    What is the exact question here?
    The best things in life are free.

  3. #3
    Just Joined!
    Join Date
    Nov 2003
    Posts
    5

    Proxy Setup

    I have found answer from SQUID-CACHE.org.

    the solution is round-robin proxy on server1.

  4. $spacer_open
    $spacer_close

Posting Permissions

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