OpenWRT 安裝 WireGuard 配置視頻教程(上)



OpenWRT 安裝 WireGuard Udp2Raw + UdpSpeeder + WireGuard 文檔教程
# 短網址: https://git.io/wrt.wg

4 comments
  1. # OpenWRT 安裝 WireGuard 配置 Udp2Raw + UdpSpeeder + WireGuard 文檔教程

    # 短網址: https://git.io/wrt.wg

    ### OpenWRT 安裝到U盤裡工具和命令

    – 下載工具 [physdiskwrite.zip](https://github.com/hongwenjun/vps_setup/blob/master/openwrt-18.06.2/physdiskwrite.zip)

    – 使用 [DiskGenius](http://www.diskgenius.cn/) 把U盤刪除所有分區保存

    – Windows 中找到 命令提示符 右鍵管理員許可權打開,或者WINPE下的命令窗口操作

    physdiskwrite.exe -u openwrt-18.img

    – -u 參數能夠寫大U盤和硬碟

    – 可以再使用 [DiskGenius](http://www.diskgenius.cn/) 把剩餘的空間分成 windows 支持的U盤分區,平常也可以裝點工具

    # U盤做好後,插入一台空閑的電腦,使用U盤啟動就可以運行 OPENWRT了

    # 視頻教程 還是使用虛擬機來測試,虛擬機網卡,網路注意要選擇橋接模式

    # 路由器默認的IP 192.168.1.1 ,會同主路由衝突,所以首先要改IP

    vi /etc/config/network

    passwd 把密碼也改了

    改成 192.168.1.254 然後就可以網頁路由器登陸了

    ### 如果 opkg update 更新軟體源失敗,可以添加DNS

    “`

    # vim /etc/resolv.conf

    search lan

    nameserver 127.0.0.1

    # 添加臨時的DNS,重啟後還是會丟失DNS

    nameserver 8.8.8.8

    nameserver 114.114.114.114

    # /etc/init.d/dnsmasq restart

    # 也可以添加DNS到 lan 介面里

    “`

    —————–

    # OpenWRT 安裝 WireGuard 配置 Udp2Raw + UdpSpeeder + WireGuard 文檔教程

    # 短網址: https://git.io/wrt.wg

    ### OpenWRT 安裝 WireGuard

    opkg update

    opkg list | grep wireguard

    opkg install wireguard wireguard-tools luci-i18n-wireguard-zh-cn

    # 安裝中文語言包和常用工具

    opkg update

    opkg install -y luci-i18n-base-zh-cn

    opkg install -y wget tmux ca-certificates htop

    # 虛擬機或者你實體機命令不好用,現在就用SSH遠程操作了

    # 網路可能會比較卡,或者DNS沒設定好,可以網頁設置,或者按文檔

    ### 如果 opkg update 更新軟體源失敗,可以添加DNS

    “`

    # vim /etc/resolv.conf

    search lan

    nameserver 127.0.0.1

    # 添加臨時的DNS,重啟後還是會丟失DNS

    nameserver 8.8.8.8

    nameserver 114.114.114.114

    # /etc/init.d/dnsmasq restart

    剛才沒法上網,是網關沒填 剛才錄製視頻,電腦內存不夠,崩潰了再簡單來一遍

    192.168.1.1

    短網址: https://git.io/wrt.wg 蘭雅sRGB YouTube頻道

    OpenWRT-18.06.2 編譯完成的 udp2raw-tunne udpspeeder luci-udptools 安裝包下載

    openwrt_udptools.zip

    使用 scp 命令 把 這些 ipk 上傳到 /tmp

    然後 opkg install *.ipk 安裝

    系統回自動下載運行庫的

    ## 下面都是乾貨,登陸到遠程伺服器,在已經安裝wg的伺服器上

    安裝 WireGuard + UdpSpeeder + Udp2Raw

    bash <(curl -L -s https://git.io/vps.sh) # 可以先使用這個安裝WG

    ## 剛才錄製視頻,電腦內存不夠,設置的視頻有沒法保存 等下期吧

  2. 大佬能帶個openwrt 路由器安裝wireguard手機在外面連接回家看nas的視頻嗎?我安裝的能連上不能上網。

  3. 你這個和koolshare里的2.30固件一樣嗎,我用lede軟路由,裡面的wireguard插件,總是不能訪問牆外網站,外部連接是叉叉

Comments are closed.