LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ADSL CPE (Linux as Router) (https://www.linuxquestions.org/questions/linux-networking-3/adsl-cpe-linux-as-router-178425/)

naveedpta 05-05-2004 11:23 PM

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.

metalick 05-06-2004 03:51 AM

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.


All times are GMT -5. The time now is 07:45 AM.