- 0
- 0
- 约2.76万字
- 约 20页
- 2023-04-25 发布于上海
- 举报
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:
您可能关注的文档
- 2021年pep小升初英语模拟测试题.docx
- 02197概率论与数理统计重点复习资料.docx
- 06001惠港酒店发文格式.docx
- 06005 统一打卡通知.docx
- 06092工作分析八套试卷 答案.docx
- 10000汉字起笔部首表.docx
- 11000地形测量技术设计.docx
- 20000字起笔部首检字表.docx
- 20148小继教培训心得体会.docx
- 20151人教版三年级数学上册教学工作总结.docx
- 中国国家标准 GB/Z 37551.300-2026海洋能 波浪能、潮流能及其他水流能转换装置 第300部分:河流能转换装置发电性能评估.pdf
- GB/T 44937.3-2025集成电路 电磁发射测量 第3部分:辐射发射测量 表面扫描法.pdf
- 中国国家标准 GB/T 44937.3-2025集成电路 电磁发射测量 第3部分:辐射发射测量 表面扫描法.pdf
- 《GB/T 44937.3-2025集成电路 电磁发射测量 第3部分:辐射发射测量 表面扫描法》.pdf
- 中国国家标准 GB/T 44937.1-2025集成电路 电磁发射测量 第1部分:通用条件和定义.pdf
- GB/T 44937.1-2025集成电路 电磁发射测量 第1部分:通用条件和定义.pdf
- 《GB/T 44937.1-2025集成电路 电磁发射测量 第1部分:通用条件和定义》.pdf
- 中国国家标准 GB/T 4937.37-2025半导体器件 机械和气候试验方法 第37部分:采用加速度计的板级跌落试验方法.pdf
- 《GB/T 4937.10-2025半导体器件 机械和气候试验方法 第10部分:机械冲击 器件和组件》.pdf
- 中国国家标准 GB/T 44937.2-2025集成电路 电磁发射测量 第2部分:辐射发射测量TEM小室和宽带TEM小室法.pdf
最近下载
- 新人教版九年级上册初中化学全册重点习题课件.pptx VIP
- 2025年全国《考评员》专业技能鉴定考试题库与答案.docx VIP
- 招商定位—2018九江铜锣湾广场总体发展思路与招商汇报方案.pptx VIP
- 新冀教版九年级下册初中数全册教学课件.ppt VIP
- (高清版)B-T 23331-2020 能源管理体系 要求及使用指南.pdf VIP
- NB∕T 20596-2021 压水堆核电厂控制区墙体孔洞辐射防护封堵准则.pdf
- 轧制与退火工艺对铜铝复合板结合性能的多维度解析.docx VIP
- geogebra入门_简体中文新.pdf VIP
- 便携式无人机探测和反制系统编制说明.docx VIP
- 保障农民工工资支付条例(2020版)培训解读课件.pptx VIP
原创力文档

文档评论(0)