惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
Google DeepMind News
Google DeepMind News
Hugging Face - Blog
Hugging Face - Blog
D
Docker
F
Fortinet All Blogs
博客园 - 三生石上(FineUI控件)
Project Zero
Project Zero
Engineering at Meta
Engineering at Meta
J
Java Code Geeks
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Simon Willison's Weblog
Simon Willison's Weblog
S
Security Affairs
NISL@THU
NISL@THU
T
Tor Project blog
A
About on SuperTechFans
宝玉的分享
宝玉的分享
腾讯CDC
S
Schneier on Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
P
Privacy & Cybersecurity Law Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Stack Overflow Blog
Stack Overflow Blog
P
Privacy International News Feed
雷峰网
雷峰网
C
Cyber Attacks, Cyber Crime and Cyber Security
Vercel News
Vercel News
Cisco Talos Blog
Cisco Talos Blog
D
DataBreaches.Net
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
L
LINUX DO - 热门话题
Microsoft Security Blog
Microsoft Security Blog
Latest news
Latest news
C
Check Point Blog
有赞技术团队
有赞技术团队
T
The Exploit Database - CXSecurity.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
云风的 BLOG
云风的 BLOG
SecWiki News
SecWiki News
Application and Cybersecurity Blog
Application and Cybersecurity Blog
爱范儿
爱范儿
月光博客
月光博客
V
Vulnerabilities – Threatpost
T
Threat Research - Cisco Blogs
P
Palo Alto Networks Blog
T
The Blog of Author Tim Ferriss
C
Cisco Blogs
Webroot Blog
Webroot Blog
S
Security @ Cisco Blogs

方永、南天紫雲

linux透明代理 技术的边界 停机问题通俗说明 Rust与oracle、redis集群的纠结 学习能力的增长 微信调试的原语 mac外接移动硬盘安装ArchLinux linux的死机问题 linux下全键盘操作 漂亮又好用的bspwm linux本机透明代理 ssh、mosh、autossh linux不能待机又一例 从WordPress切换到Hugo 折腾电脑开机 linux系统QQ新思路 Arch Linux的字体渲染 svn管理之submin OpenWrt自动fucking墙記錄 二维码(qrcode)名片的一些事儿 用lua nginx module搭建一个二维码(qr code)生成器 CentOS 7 安裝註記 php程序連接MySQL时只能127.0.0.1而localhost無法連接的問題 ThinkPad之FAN_ERROR、hi fi聲卡 jetty多端口部署 OpenWrt簡單暴力限網 linux中cron之PATH变量 再敘OpenWrt下的rtl8187無線中繼 sed之模擬tail 終端進化之二零一三 linux下的郵件服務器:postfix_dovecot_roundcube 一次性密碼/動態口令卡原理 xl2tp之VPN靜態地址分配 rtl2838U2832试用记 linux中pptp协议VPN搭建 glances监控工具安装 CentOS6.4硬盘安装 Debian Wheezy硬盤/U盤安裝小記 Kirby小試 zsh shell怎么打开常用的目录? OpenWrt SSH免密码使用密钥登录 linux中的vsftpd的匿名(anonymous)用户配置 無光驅無USB無軟驅,怎麼修復硬盤MBR? 那些個人網站 linuxFreeBSD下的dnspod动态域名客户端 Windows系统盘的32K之殇 一枚Chrome插件引起的大量磁盤IO問題 用批處理切換網卡的IP(適用Win7、Win8) Windows中的DHCP服务器 Win8啓動時出現“您的電腦需要修復”問題的解決辦法 Windows8睡眠(待机)模式异常处理 最强大好用而又小巧的计算器 Windows8運行不能保存歷史命令 Win8下的红警2尤里复仇 为cmd添加readline,如Bash Shell般使用cmd 手动添加修改win8 win+x菜单 Win8運行卸載程序時提示2503之解決一法 烽火HG110提权一法 缓解眼疲劳有效的办法 mintty乱码解决办法 糟糠美妾 免费易用的Win8 ArchLinux的類box環境音量調節二三事 使用OpenWrt与curl挂QQ OpenWrt的安全 OpenWrt BCM63xx rtl8187使用注意事项 Arch Linux之systmed使用简介 Archlinux 2012.07.15之后发布的镜像新手安装完全向导 FreeBSD 9.0 安装简记 记一由FreeBSD引发的午夜惊魂 Jekyll or handmade wi-fi无线破解过程与原理简要介绍 修复QQ影音异常卸载后的文件关联 吐槽一下000webhost 为OpenWrt的luci Web界面加速 最小的sed for Windows linux的磁盘自动挂载 OpenWrt中crontab -e的使用 sddns(dnspod client for OpenWrt)使用说明 OpenWrt中vsftp添加新用户 php+markdown写博客 linux arp防火墙之p2p终结者 墙外的世界很精彩 OpenWrt使用dnspod的动态域名解析(ddns)功能 OpenWrt架设nginx php网站 openwrt架设uhttpd+php+sqlite网站 vim自动跳到上次离开的光标位置 OpenWrt无线中继配置文件 修行八支 漫步者R201T打摩升级改造 阿里(Ali)3328系dvb接收机软件升级方法 db120刷OpenWrt固件并使用ppp方式ADSL拨号 移动短信助手 chrome tips一则 cdate,显示中国传统农历日期 更改硬盘模式为AHCI后Windows及linux的调整 使用grub2加载软盘和光盘镜像 电脑用数据线连接手机上网 电脑通过蓝牙连接手机GPRS上网 我与我的语言
OpenWrt的WDS無線橋接模式
zola · 2013-11-24 · via 方永、南天紫雲

之前用RTL8187做了無線中繼,使用情況並不理想,即使連接質量可以的情況下,掉包十分地嚴重,rtl8187的linux驅動都無力吐槽了。

還是Broadcom自家的板載無線好用,同樣的RG100A,內置天線,ping值也是很好的。

只是BCM的網卡板載没有多模式,即使sta模式,即使wds模式,都不能以ap模式做真正的無線轉發了Broadcom AP-to-AP WDS (brcm-2.4 only), 而RTL8187的linux驅動天生不支持ap模式,所以wds只能中繼到有線,無線是沒戲了。雖然如此,sta-wds橋接配置成功,記之以備忘。

整個過程參考Broadcom WDS按步就班,只是無線配置略有不同,轉述如下:

有兩臺路由器A與B,A的macaddr爲 00:00:00 ,B的macaddr爲 11:11:11 ,A作爲信號源,那麼有如下配置,

一、先配置路由器A,

  1. 編輯 /etc/config/wireless ,添加或修改如下內容:

    config wifi-iface
            option device      wl0
            option network     lan
            option mode        ap
            option wds         1
            option bssid       11:11:11
            option ssid        'wds-bri'
        # option encryption  psk2
        # option key         'secret_key'

    注意bssid要填B路由器的無線網卡的MAC地址。

  2. 編輯防火牆規則,打開lan zone的轉發, /etc/config/firewall ,並運行 /etc/init.d/firefall reload 保證防火牆是生效的:

    config zone
            option name     lan
            option input    ACCEPT
            option output   ACCEPT 
            option forward  ACCEPT
  3. 編輯 /etc/config/network ,打開STP協議:

    config interface lan
            option type     bridge
            option stp      1
            option ifname   eth0.0
            option proto    static
            option ipaddr   192.168.1.1
            option netmask  255.255.255.0

這樣,A路由器就配置好了。

二、B路由器的配置也很相似,

  1. 首先配置無線連接參數:

    config wifi-iface
            option device      wl0
            option network     lan
            option mode        sta
            option wds         1
            option bssid       00:00:00
            option ssid        'wds-bri'
        # option encryption  psk2
        # option key         'secret_key'
  2. 同樣打開防火牆的轉發:

    config zone
            option name     lan
            option input    ACCEPT
            option output   ACCEPT 
            option forward  ACCEPT
  3. 打開STP協議,並配置靜態地址:

    nterface lan
            option type     bridge
            option stp      1
            option ifname   eth0.0
            option proto    static
            option ipaddr   192.168.1.2
            option netmask  255.255.255.0
  4. B路由器多一步,要關閉lan的dhcp, /etc/config/dhcp

    config dhcp lan
            option ignore     1
            option interface  lan
            option start      100
            option limit      150
            option leasetime  12h

三、 好了,在兩個路由器確認執行

/etc/init.d/network reload
/etc/init.d/firewall reload
/etc/init.d/dnsmasq reload

連接B路由器試試吧。