LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

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

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


Hi
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.
Naveed.
 
Old 05-06-2004, 04:51 AM   #2
metalick
Member
 
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 (www.shorewall.net). 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.
 
  


Reply


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


All times are GMT -5. The time now is 04:49 AM.

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