Networking :: Home Server



I'm setting up My DSL Home Server at my place in Petaling Jaya, Selangor, Malaysia. I got an idea from this document.

Components:-
- Dell Optiplex GX240 - P4 1.5GHz, RAM 256MB, HDD 20GB
- DSL-2.4 GRUB Frugal (Options: home=hda3 opt=hda3)
- iptables.dsl (in myDSL/System)
- 2 Mbps Broadband Internet Access
- XAMPP for Linux 1.5.5a
- Dynamic DNS

Network Diagram:
                                        |   Server (Routing)     |
| Private Network |------|  eth0 : 192.168.0.254 |         | ISP Connection         |
| 192.168.0.0/24     |        |---------------------------|        | REMOTE IP ADDR  |---> INTERNET
                                        |  61.4.107.81 : eth1     |------| 202.73.10.4                 |


This is gateway.sh that I'm using (from this document) :-
Code Sample
#!/bin/sh

 sudo ifconfig eth0 192.168.0.254 netmask 255.255.255.0 up
 sudo ifup eth1

 # Delete and flush. Default table is "filter". Others like "nat" must be explicitly stated.
 # - Flush all the rules in filter and nat tables
 iptables --flush
 iptables --table nat --flush

 # - Delete all chains that are not in default filter and nat table
 iptables --delete-chain
 iptables --table nat --delete-chain

 # Set up IP FORWARDing and Masquerading
 iptables --table nat --append POSTROUTING --out-interface eth1 -j MASQUERADE
 iptables --append FORWARD --in-interface eth0 -j ACCEPT

 # - Enables packet forwarding by kernel
 echo 1 > /proc/sys/net/ipv4/ip_forward


I put gateway.sh in /opt and call it from bootlocal.sh

You can test My DSL Home Server by: Bandwidth Speed Test and  2MB Download Speed Test.

DSL Mirror Site: http://dsl4asia.homelinux.org/mirrors/damnsmalllinux.org/  :D

Thank you for your testing:-

Speeds for 83.104.239.76 - Cholsey, United Kingdom - January 4th, 2007 12:16am - 18.3 kbps
Speeds for 190.82.8.23 - Lampa, Chile - January 4th, 2007 12:36am - 53.8 kbps
Speeds for 89.136.19.194 - Buzau, Romania - January 4th, 2007 5:57am - 111.5 kbps  :)

Undersea cables have been broken because Earthquake in Taiwan on 28-Dec-06.
I think that why connection speed for Asia - UK and Asia - US are not good enough.  :(

Thank you for your testing:-

Speeds for 166.166.228.197 - Hardenville, Missouri, United States - January 5th, 2007 3:50am - 32.6 kbps
Speeds for 66.234.49.92 - Ridgewood, New York, United States - January 5th, 2007 9:37am - 199.9 kbps   :)
Speeds for 85.124.120.203 - Dornbirn, Vorarlberg, Austria - January 5th, 2007 7:53pm - 134.5 kbps

Thank you for your testing:-

Speeds for 207.224.113.34 - Dixie, Washington, United States - January 6th, 2007 7:51am - 336.3 kbps  :D
Speeds for 205.161.210.247 - Cedar Falls, Iowa, United States - January 6th, 2007 10:12am - 68.3 kbps
Speeds for 74.135.227.68 - Springfield, Illinois, United States - January 6th, 2007 4:26pm - 216.3 kbps

Thank you for your testing:-

Speeds for 84.147.113.73 - Weiden, Bayern, Germany - January 7th, 2007 9:22pm - 24.7 kbps
Speeds for 81.232.50.70 - Östra Odarslöv, Sweden - January 7th, 2007 10:01pm - 103.3 kbps
Speeds for 62.216.125.65 - Hammaslahti, Finland - January 8th, 2007 4:15am - 220.5 kbps  :)

Next Page...
original here.