Hacking Your Linux-Based Wireless Router

基于RTL8367的实用千兆交换机设计 基于RTL8367的实用千兆交换机设计 描述 这是基于RTL8367RB设计的5口千兆交换机,性价比极高,超级实用,附外壳文件,媲美市面上的各种千兆交换机! RTL8367RB是一款LQFP128封装,高性能5 + 2端口千兆以太网交换机。集成低功耗Giga-PHY,每个端口都支持全双工10 / 100 / 1000M。外围电路简单,只需要3.3V和1.0V电源供电,一个25MHz无源晶振即可。对于特定应用,RTL8367RB支持两个额外的接口,可以将其配置为RGMII / MII接口,本工程为普通交换机, 阅读详情
  WRT54GL History
Linksys found a place in many a geek's heart when it released the original WRT54G router back in 2003. A network router, 10/100 Ethernet switch, and wireless access point all rolled into one, the WRT54G blazed a happy trail as one of the earliest home networking devices to have its firmware source code made publicly available under the GNU General Public License (GPL). Soon after, a number of third-party firmware options became available, letting networking and Linux enthusiasts utilize their routers in ever more powerful and creative ways.
Linksys WRT54GL Router
click on image for full view

Earlier this year, Linksys modified the design of its most recent WRT54G. They halved the amount of flash memory and RAM to just 2MB Flash and 8MB RAM and switched to a VxWorks firmware. According to Linksys, this change allowed them to decrease the memory footprint of the OS and reduce the hardware requirements while maintaining a similar feature set at a reduced cost.

Carrying on the Linux heritage for enthusiasts is the WRT54GL, a device with essentially the same Linux kernel, 200MHz processor, 4MB Flash, and 16MB RAM as the old WRT54G v4. Since the majority of aftermarket firmware won't work on the WRT54G v5's crippled hardware, the WRT54GL is now your only Linksys option for third-party-compatible fun if you can't score an older model. It's the same story with the neutered WRT54GS v5, Linksys's SpeedBooster–equipped line that flaunts enhanced Wireless-G speeds.

Here we'll show you how to use these firmware utilities to optimize your wireless internet performance for gaming, VOIP, security, or increased signal strength. Continued...

Memory

Aftermarket Firmware Options and Flashing the Firmware

Here's a list of some of the popular third-party firmware available for the WRT54GL:

Sveasoft (www.sveasoft.com): Comes in two versions: Alchemy  and Talisman. Alchemy is the free public release, but later versions of the WRT54G (v4.0 or higher), WRT54GS (v3.0 or higher), or the WRT54GL (v1.0) are not supported. If you own one of these, you can purchase the latest-release Talisman. The subscription fee is $20/year and includes unlimited support and access to new releases.

DD-WRT (www.dd-wrt.com): Created in response to Sveasoft's $20 fee, early versions of DD-WRT were based on Sveasoft's Alchemy. The current version (v23), however, is an entirely new project that boasts an extensive feature set. It comes in four flavors: Mini, Standard, VoIP (includes SIPatH, a tool for VoIP serving from a Broadcom-based router), and VPN (includes OpenVPN).

HyperWRT (Thibor, www.thibor.co.uk): Thibor 14, the latest version of HyperWRT, only works with the WRT54GS (v1-v4) and WRT54GL. The GUI retains the same look and feel of the Linksys factory firmware. It doesn't have as many features as DD-WRT, but the configuration instructions on the website are fairly straightforward.

OpenWRT (openwrt.org): Built from the ground up without using Linksys sources, this is a purely command-line-based firmware for the serious Linux enthusiast who doesn't need or want a GUI. Their warning states: "Users are expected to have working knowledge of the GNU/Linux command line and basic networking concepts".

This Linksys page has a nice breakdown of features supported by HyperWRT, Sveasoft Alchemy, Talisman, and DD-WRT.

Flashing the Firmware
You can install DD-WRT and HyperWRT using the Linksys firmware flashing utility in the GUI. It is highly recommended to flash over a wired connection. For command-line-only firmware, such as OpenWRT, you can use Trivial File Transfer Protocol (TFTP). This is also an option for restoring the firmware back to a working state if the GUI flashing utility is unreachable for some reason.

For the following examples, we tested DD-WRT.v23 and HyperWRT Thibor 14. We barely scratch the surface in terms of what one is capable of with the WRT54GL and various firmware options. Continued...

Flashing Firmware

Traffic Shaping Using DD-WRT

Traffic shaping  is a way of optimizing network performance with emphasis on latency and bandwidth. Normally, without any shaping, your home broadband router deals with requests on a first come, first served basis. This strategy works just fine at McDonald's, but it comes up short in situations where high and low-priority traffic compete for limited resources.

You may have noticed your network responsiveness suffer during heavy traffic. DSL modems employ large packet queues to maximize download speed and limit packet loss, but filling your upstream quota (mine is 384kbps at home) and maxing out the queue can result in high latency. That causes severe performance degradation for interactive applications where response time really matters—VoIP calls suck, VNC takes forever to respond, or you get killed easily when playing an online FPS. VoIP traffic is especially dependent on Quality of Service (QoS), a component of traffic shaping. Network aberrations like latency, packet loss, and jitter can have a crippling effect on call quality and cause delayed speech, overlapping, echoing, and other undesirable effects.

Lowering the uplink Kbps in DD-WRT's QoS settings is the first step to making traffic shaping more efficient. That is, we set aside some extra bandwidth to guarantee service for our high-priority applications. DD-WRT recommends limiting bandwidth allocation to 80% to 95% of maximum for uploads. The downlink speed is a different story, since downstream queuing is essentially controlled by the ISP. In other words, you don't have much say about when the packets arrive, but you can control how they go out. That's where you can free up the congestion bottleneck. DD-WRT suggests setting downlink Kbps between 80% to 100% of maximum.

Say you're sharing a DSL or cable connection over a WRT54GL with bandwidth-hogging BitTorrenters and need low pings for World of Warcraft and Battlefield 2. You can customize traffic prioritization by assigning different bandwidth classes to selected services, netmasks, MACs, or Ethernet ports. The four classes are broken down into premium, express, standard, and bulk. Premium, the highest priority class where you want minimum delay, should be assigned very selectively. It'll include top-priority traffic like ICMP, DNS, handshaking, maybe VoIP. Other interactive stuff that doesn't quite fit into premium, such as browsing and SSH, fits under express. Standard includes everything else. Down at the bottom there's the bulk classification for P2P, BitTorrent, FTP, and other applications for which latency isn't a vital consideration.

QoS

If you prefer the Telnet/SSH method, you could also classify packet priority with IPtables through the command line. Continued...

DD-WRT: Boosting Wireless Range

Under the Wireless>>Advanced Settings  tab, DD-WRT has a customizable setting for transmit power. Labeled "Xmit Power", this entry is 28Mw by default, but it can be set anywhere between 0 to 251mW. The "Help" menu indicates up to 70mW is safe for improving range. Raising the power level above that, they warn, may generate excess heat in the chipset, which could shorten the life of the router.

And setting it too high probably won't boost your wireless range by much. Additional power output might actually generate enough interference to diminish SNR, hurting range and throughput performance. Finally, clients, typically power-saving laptops, probably won't be able to generate an equivalent mW radio response at the edge of the router's maximum boosted range to capitalize on the gains on one side of the transmission anyway. Continued...

Transmit Power Tweaking

Wireless Repeating with WDS

Trying to extend your WiFi reach is by no means a lost cause. In fact, it's possible to get viable range extension with DD-WRT's Wireless Distribution System (WDS) protocol. WDS provides bridging and repeating capabilities for routers. For example, you might want to share a single broadband connection through two routers, using the second router to expand your wireless range.

With WDS, two or more routers are connected wirelessly by their MAC addresses. Both the router connected directly to the internet and the remote router can accept client connections. Regardless of which router they're on, clients share the same subnet and are visible to one another across the WDS link. They also share the same network channel and encryption keys. Under this configuration, if you're planning on using WPA encryption, the same SSID should be used for both routers. For WEP, assign a different SSID for each.

Because 802.11b/g radios are half-duplex and the routers share a single channel, the additional backhaul traffic for each additional node consumes some of the available bandwidth and degrades network performance to some degree.

WDS

Using directional or high-gain antennas with boosted signal power, WRT54G buffs have managed to extend stable WDS networks over distances of many miles. Such long links usually require line of sight, so you'll often find the routers perched high atop towers and buildings with some kind of protection from the elements.

DD-WRT: Other Features

Management: DD-WRT adds features like Samba FS Automount (to mount shared folders from Windows PCs), boot wait (creates a 5 second delay while booting for flashing new firmware, typically used when the firmware is unreachable through the web interface), and support for IPv6 and Journaling Flash File System 2 (JFFS2).

Management
click on image for full view

Chillispot: This tool is useful for configuring your own captive portal hotspot with RADIUS server authentication support.

Chillispot
click on image for full view

Firewall: Additional filter settings for proxies, cookies, java applets, and cookies.

Firewall
click on image for full view

Kai Daemon: Tunneling for LAN/system-link console gaming that works with the XBox, Playstation 2, PSP, and Gamecube.

HyperWRT Thibor: Screens

HyperWRT Thibor 14: Looks and feels just like the factory Linksys firmware with a few tweaks.

HyperWRT Thibor 14 Firmware
click on image for full view

Advanced Wireless Settings: Transmit power can be set to a maximum of 84mW. The transmission rate can also be set manually from 1 to 54Mbps.

Advanced Wireless Settings
click on image for full view

Port Triggers: Dynamically forward ports based on specific applications and customizable port ranges.

Port Triggering
click on image for full view

QoS: Additional QoS settings such as prioritizing ACK and ICMP. Low, medium, high, and highest classifications can be assigned to various P2P applications: BitTorrent, Kazaa, eDonkey, and Gnutella.

QoS
click on image for full view

Factory Defaults: There's an additional "Clear NVRAM" option added to "Restore factory defaults" option.

Restore Factory Defaults
click on image for full view

Firewall: Extra firewall options like filters for proxy, Java applets, cookies, ActiveX, P2P, and blocking port scans. Continued...

Firewall

What to Do If You Brick It

With any kind of tweaking or modding, you run the risk of bricking (rendering your router useless) with a bad flash or buggy software. If that unfortunate circumstance befalls you, there are a few methods of last resort you can try before assigning the black and blue plastic box permanent paperweight status.

Pointer Graphic for Fingerlinks Read more Wireless Networking articles on ExtremeTech.

Final Thoughts: Should You?
Not everyone needs a router that accepts customized firmware. Most home users would be perfectly happy with the lesser WRT54G. But the WRT54GL opens up a host of possibilities for more demanding users. So if your wireless networking environment needs more power, or if you're interested in VOIP, you need improved security for a Wi-Fi hotspot, or you have other needs not served by standard firmware in consumer routers, check out the WRT54GL and the wealth of emerging open-source firmware.
【瑞芯微px30】【RTL8363】【五】驱动移植-网卡驱动检测网线插拔 工作中遇到rk平台 px30 linux 4.4 内核移植完成之后,网卡拔插的时候不能检测到动态的拔插状态,调试完成之后,将调用逻辑记录一下 阅读详情

相关推荐

RTL8197FH-VG+RTL8367RB boot

只支持烧录器烧录

Linux内核2.4.6调试交换芯片RTL8364\RTL8367(kernel调试篇)

平台 主控芯片arm:ast1520 Linux内核版本:2.4.6 uboot版本:1.1.4 概述 现在uboot的网络功能调通了,采用的是mac to mac的方式,并且是千兆全双工的;现在要开始调试kernel的网络了,因为kernel的网络都是走的框架,但是ast1520代码的看了下,都是自己写的驱动框架,貌似没有看到mac to mac模式的兼容,那么就先对比日志开始吧。 分析过程 对比日志好像看不出啥太大区别,那么只能跟踪一下原来的流程了,由ftgmac100_init()开始 大概就是获取m

newbee_sccc的博客 4660

Realtek_API_Source.rar_REALTEK8367_Realtek switch_realtek switc

realtek 交换芯片 驱动程序 很有价值 值得参考

RTL8367s调试

8367

zyldw的博客 3469

EEGLAB安装、EDF数据导入、EEG预处理(Matlab)

目录下载和安装下载安装遇到问题及解决方案导入EDF数据EEG预处理 下载和安装 下载 链接:https://pan.baidu.com/s/17eMT6B7LgZ4PyqWvD5ixmg 提取码:12gz 安装 **第一步:**将下载下来的文件解压,修改名称为eeglab,将此文件夹存放在matlab的安装目录里的toolbox文件夹下,下图是我的路径,需要拷贝到自己相对应的路径中 第二步: 打开Matlab软件,点击主页中的设置路径 设置路径 点击添加并包含子文件夹,将eeglab文件夹添加进来,保

y18771025420的博客 1万+

拥有AI助手便能解放双手?——抖音直播脚本的生成

科技改变生活,AI助手帮你完成抖音创作!

Scientist_的博客 2353

init rtl8367

G:\sftp\a8\a8\a8\rootfs\rootfs\usr\sbin\init (1 hit)     Line 83: echo "init rtl8367" module.sh /lib/modules/3.1.0 echo "init rtl8367" rtlcfg -i rtlcfg -f -p 1 -s 1 -d 0 rtlcfg -f -p 2 -s 1 -d

q123456789098的专栏 2979

51单片机-点亮LED和蜂鸣器

ULN2003是高耐压、大电流达林顿陈列,由七个硅NPN达林顿管组成。ULN2003是大电流驱动陈列,多用于单片机、只能仪表、PLC、数字量输出卡等控制电路中。可直接驱动蜂鸣器、继电器等负载。void delay(u16 i) // i等于1大约10uswhile(i--);//取反,高低电平不断变化,产生脉冲delay(10);// 周期200us。

三日沐水 1130

RTL8367RB -CG

第2层管理的5 + 2-端口10/100/1000开关控制器 RTL8367RB是一款LQFP128 EPAD,高性能5 + 2端口千兆以太网交换机。 RTL8367RB具有支持1000Base-T,100Base-T和10Base-T的低功耗集成5端口Giga-PHY。 对于特定应用,RTL8367RB支持两个额外的接口,可以将其配置为RGMII / MII接口。 RTL8367RB集成了高速...

芒果木有籽 2万+

企业信息化系统的组成模块-核心业务系统

通过标准化的数据流形成完整的业务闭环,CRM生成的销售订单驱动ERP的生产和采购,ERP将生产计划传递给MES执行,MES报工数据返回ERP进行成本核算,ERP再将交付信息同步给CRM供客户查询。生产管理确保高效交付,缩短订单周期。某贸易公司实施ERP供应链模块后,库存周转率从每年4次提升到8次,库存资金占用从2000万降到1200万,释放800万现金流,同时缺货率从15%降到5%。│ │库存 │ │ MRP │ │ ERP │ │ 云ERP/ │ │。

weiyvyy的博客 697

WSOLA原理及matlab仿真

WSOLA原理 对于 OLA 算法来说,常常无法保持原信号中的周期性结构,在帧裁剪的过程中,不能保证每一个帧都能覆盖完整周期并保证其相位对齐,会产生相位跳跃失真。 为保证**基频不变**,就要使用 WSOLA 算法。 WSOLA 并不直接在 Ha 处找一帧进行直接拼接,而是在一个区间内寻找与理想帧最接近的一帧进行叠加。 ![在这里插入图片描述](https://img-blog.csdnimg.cn/8a234f4fde104fc69a9f3ddb7bcf3014.png?x-oss-process=ima

ManiacLook的博客 3216

1.3 px30驱动移植-网卡驱动框架

移植瑞芯微px30 网卡RTL8363的时候,不能识别到网卡 日志打印No found PHY, 只能调试一下代码,调试完成后,梳理网卡框架如下。

szembed的博客 1149

【精细解读】xapp585(多通道LVDS接口ADC)

xapp585的参考设计有Verilog和VHDL两种源码。

FPGA艺术家的博客 532

linux系统安装驱动rtl8188eu,rtl8188eu_USB_linux RTL8188EU驱动源码

【实例简介】RTL8188EU驱动源码【实例截图】【核心代码】8188eu_USB_linux├── document│ ├── Quick_Start_Guide_for_SoftAP.pdf│ ├── SoftAP_Mode_features.pdf│ ├── Wireless_tools_porting_guide.pdf│ └── linux_dhcp_server_not...

weixin_39841640的博客 812

【用unity实现100个游戏之15】开发一个类保卫萝卜的Unity2D塔防游戏5(附项目源码,完结)

本期是本项目的最后一篇,主要内容是配置环境、生成不同敌人、结束重开。

向宇的博客,专注php/web全栈 unity游戏开发,欢迎大家评论纠错 2575

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

uboot移植之网络驱动移植--移植操作--7.29

1、网卡驱动文件介绍 uboot/drivers/net/dm9000x.c和dm9000x.h。 这个驱动来自于linux kernel源代码。所以我们uboot中是移植而不是编写。 2、网卡移植的关键:初始化 (1)网卡初始化代码地方在: start_armboot init_sequence board_init dm9000_pre_init 这个函数就是移植的关

西江物联的博客 1742

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

Linux内核2.4.6调试交换芯片RTL8364\RTL8367(uboot调试篇)

Linux内核2.4.6调试交换芯片RTL8364\RTL8367 主控芯片arm:ast1520 Linux内核版本:2.4.6 uboot版本:1.1.4 概述 原来的主控芯片连接的是一个phy芯片,采用的是mac控制器连接phy芯片的方式。现在的需求是把phy芯片换成了交换芯片RTL8367,并且采用mac to mac的方式进行连接。也就是arm的mac控制器直接连接到交换芯片的mac口,连接速度与连接方式都是固定的。 分析 该交换芯片支持I2C、SPI、mdio通信,但是看ast1520的uboo

newbee_sccc的博客 1万+

android 蓝牙通讯demo

android 下蓝牙通讯demo,实现了发现蓝牙,使能蓝牙,通过蓝牙发送消息。

VC中sqlite的使用

在VC中对sqlite的使用,实现数据库大批数据的快速插入,读取数据库中的数据在ListCtrl中显示

RTL8367学习笔记1——基础知识

RTL8367学习笔记1——基础知识 文章目录RTL8367学习笔记1——基础知识写在前面一、RTL8367的应用举例1.5端口1000Base-T交换机二、使用步骤1.引入库2.读入数据总结 写在前面 最近开始学习RTL8367,发现自己真的像个文盲一样,这个领域对我来说实在是太陌生了,记录一下自己的学习过程,给以后的自己留一份回忆,看看现在像盲头苍蝇一样乱飞的自己。 一、RTL8367的应用举例 示例:8367可以作为5端口的1000Base-T交换机或者5端口双向MII/RGMII的1000Base

weixin_39276221的博客 1万+

求指点rtl8367s光口寄存器怎么配置

rtl8367s寄存器配置

weixin_36051159的博客 2056

基于RTL8364/RTL8367的vlan划分

vlan的划分

newbee_sccc的博客 4941

Linux route详解

route命令用于。要实现两个不同的子网之间的通信,需要一台连接,或者来实现。在系统中,设置路由通常是为了解决以下问题:该Linux系统在一个局域网中,局域网中有一个网关,能够让机器访问Internet,那么就需要将这台网关的IP地址设置为Linux机器的默认路由。要注意的是,直接在命令行下执行route命令来添加路由,不会永久保存,当网卡重启或者机器重启之后,该路由就失效了;要想永久保存,有如下方法:1、在/etc/rc.local里添加。

顺其自然~专栏 3428

10。1完整驱动

接下来,我们将根据您的需求,**实现RTL8367网口速率查询接口**,并**集成RTL8367芯片SDK支持IOCTL获取**,替换现有的`write`函数。- **RAII(资源获取即初始化)**:确保每一个`gpio_request`都有对应的`gpio_free`,每一个`alloc_chrdev_region`都有对应的`unregister_chrdev_region`。确保`rtl8367_driver_main.c`包含了驱动的主要逻辑,而`rtl8367_sdk.c`包含SDK的实现。

majhuaiii的博客 1845

RTL8367N与RTL8211直接相连(RK3588网口扩展5路网口)

RTL8367N与RTL8211直接相连。

君王羔羊 2326
上一篇: 什么是OpenWRT
下一篇: Passive Analysis of SSH (Secure Shell) Traffic
iiprogram
博客等级 码龄25年 1068粉丝 1515原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值