Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-06-2004, 12:23 AM   #1
LQ Newbie
Registered: Nov 2003
Location: Pakistan
Posts: 6

Rep: Reputation: 0
ADSL CPE (Linux as Router)

I need some help in detail. i have got a 256kbps DSL connection from an ISP, they have provided me with a ADSL CPE with a 10BaseT ethernet port and a Wan port , now Wan port is terminated at ISP end.
I here have 70 users on my office LAN. now i want to give all of them access to the Internet through this ADSL CPE. i think i have to built a linux router with two ethernet cards, on having the my private ip(LAN), and one with public ip(WAN) as i have also purchased 10 public IPs. The CPE is already configured with a public IP.
Can any one help me how to setup the Linux router b/w the ethernet users and ADSL CPE.
Also can i use squid as cache server in this setup??
thank you in advance.
Old 05-06-2004, 04:51 AM   #2
Registered: Apr 2004
Location: Zagreb, Croatia
Distribution: SuSE 9.0
Posts: 44

Rep: Reputation: 15
yes u can use squid!
i know two way to do that either setup the squid machine as a proxy in the client browsers, or throughh iptables to set your linux box as a gateway, which i think is more efficient if you use dhcp. put the CPE and your linux box into one snet and connect them. and the other ethernet card of the linux box should have an ip that your lan uses. default gw in your linux box should be the ip of the cpe router (the private one). default gw of your lan's clients should be the ip of linux box (the one on your lan). Of course you have to brdge the two interfaces of your linux box. if you want a quick and efficient solution i would recomend you shrewall, which is a very good firewall based on iptables ( Through that you ll be able to forward the lan packets to the inet and vice versa. then the squid will act as a transoarent cache server, which can be good and bad depending on what you need.
The shorewall site has excellent documentation on how to set up shorewall and squid as gw.

good luck.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux internet using adsl router Wozl Linux - Networking 4 02-09-2005 06:01 AM
Using router as modem adsl under linux ralmenar Linux - Networking 0 11-14-2004 06:50 AM
ADSL Routers Setup- Microsom Deskporte router 100 and Planet ADSL modem router mabonline Linux - Hardware 1 02-27-2004 06:36 PM
ADSL Router + Linux Router + LAN = HELP!!! linuxlois Linux - General 2 09-16-2003 09:24 AM
Linux ADSL Router paintbox Linux - Hardware 3 09-02-2003 06:01 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration