dinangkur
2005-07-19, 11:24 PM CDT
Hi,
I'm sure this questions is being asked in this forum in different way and in different topics. But I haven't found any quality documentation regarding the senario that I'm going to describe here. I hope you gurus will help me out with this problem and I intend to put the solution in a document, so other new bies can get help from it later.
First I must say I'm not a net admin, I'm a modorate PHP programmer from Bangladesh. I work in a small firm, now my owner wants me to setup a linux server which will work as a internet gateway, testing server, CVS server, archiving developed projects, internal chat system. I bought a PC with following config:
Celeron 2Ghz
512 RAM
2 HDD (80GB each)
2 NIC card
CD-ROM
Thermal casing
UPS with 1 Hour power backup
I believe this is enough for us. Here in Bangladesh internet bandwidth is really expensive. So, we need to manage it well. Currently, most of the ISP provides VPN connection. Currently, the ISP which provides us bandwidth gave us a external modem which is connected to wireless antena and to a NIC card of our windows server. There is another NIC card in windows server which is connected to our LAN switch. Our LAN PCs are in windows XP.
Upto now, I installed FC3 and other required softwares in it and installed 2 NIC card. Installed PPTP client (created VPN tunnel) and asked ISP to provide the information to connect through VPN tunnel. They gave me static IP which is xxx.xx.xx.xx and userid and password. My eth1 is connected to LAN swtich with IP 192.168.0.10. After this I'm stuck.
Now, I like to know what IP I should assign to eth0 and after dialing how ppp0 will communicate with eth0.
How I will NAT (IPTABLES rules and where to put those permanently) this internet connection so, my LAN users can use internet? (as I'm going to assign static IP to each LAN PC)
How I can shape the bandwidth, as I'm thinking to do it through CBQ and SQUID.
-Dinangkur
I'm sure this questions is being asked in this forum in different way and in different topics. But I haven't found any quality documentation regarding the senario that I'm going to describe here. I hope you gurus will help me out with this problem and I intend to put the solution in a document, so other new bies can get help from it later.
First I must say I'm not a net admin, I'm a modorate PHP programmer from Bangladesh. I work in a small firm, now my owner wants me to setup a linux server which will work as a internet gateway, testing server, CVS server, archiving developed projects, internal chat system. I bought a PC with following config:
Celeron 2Ghz
512 RAM
2 HDD (80GB each)
2 NIC card
CD-ROM
Thermal casing
UPS with 1 Hour power backup
I believe this is enough for us. Here in Bangladesh internet bandwidth is really expensive. So, we need to manage it well. Currently, most of the ISP provides VPN connection. Currently, the ISP which provides us bandwidth gave us a external modem which is connected to wireless antena and to a NIC card of our windows server. There is another NIC card in windows server which is connected to our LAN switch. Our LAN PCs are in windows XP.
Upto now, I installed FC3 and other required softwares in it and installed 2 NIC card. Installed PPTP client (created VPN tunnel) and asked ISP to provide the information to connect through VPN tunnel. They gave me static IP which is xxx.xx.xx.xx and userid and password. My eth1 is connected to LAN swtich with IP 192.168.0.10. After this I'm stuck.
Now, I like to know what IP I should assign to eth0 and after dialing how ppp0 will communicate with eth0.
How I will NAT (IPTABLES rules and where to put those permanently) this internet connection so, my LAN users can use internet? (as I'm going to assign static IP to each LAN PC)
How I can shape the bandwidth, as I'm thinking to do it through CBQ and SQUID.
-Dinangkur