Home Router Guide分析和总结分析和总结.docxVIP

  • 0
  • 0
  • 约2.76万字
  • 约 20页
  • 2023-04-25 发布于上海
  • 举报

Home Router Guide分析和总结分析和总结.docx

Home Router Guide Content: Introduction Building your own routerout of old spare parts has many advantages over buying a pre-made canned router by say Linksys. The biggest one by far is control over theconnection. The other advantages are left up to your imagination; just about anything can be done in this scenario, its just a matter of needing it. This guide will show you how to setup Network Address Translation (NAT) on the router (kernel and iptables), add and configure common services (Domain Name System (DNS) via dnsmasq, dhcp via dhcpcd, ADSL via ppp), and conclude with more elaborate and fun things that can be done (port forwarding, traffic shaping, proxies/caching, etc...). Before getting started, theres a few basic requirements you must meet. First, youll need a computer that has at least 2 Network Interface Cards (NICs) in it. Next, youll need the configuration settings for your internet connection (may include things like IP/DNS/Gateway/username/password). Finally, youll need a bit of spare time and some Gentoo loving. The conventions used in this guide are: eth0 - NIC connected to the Local Area Network (LAN) eth1 - NIC connected to the Wide Area Network (WAN) LAN utilizes the private 192.168.0.xxx network router is hardcoded to the standard IP router is running Linux 2.4 or 2.6; youre on your own with 2.0/2.2 Important: Important: Due to security precautions, I would highly suggest you shut down any unneeded services on the router until we have a chance to get the firewall up and rolling. To view the currently running services, just run rc-status. Kernel setup (know thyself first) Your kernel needs to have the drivers running for both your NICs. To see if your cards are already setup, just run ifconfig. Your output may differ slightly from the following, thats fine. What matters is that the interface shows up at all. Code Listing 2.1: Checking NICs Code Listing 2.1: Checking NICs # ifconfig -a eth0 Link encap:Ethernet BROADCAST MULTICAST HWaddr 00:60:

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档