menu Jialezi chevron_right / chevron_right OS chevron_right OpeWrt
format_list_bulleted
/OS/OpeWrt/ - Jialezi
Onedrive
bubble_chart
Blog
message
Contact
info_outline
Telegram
face README.md

VPS安装OpenWrt系统

具体步骤:

1、进救援模式

apt-get update && apt-get install wget

wget -qO- 'https://downloads.openwrt.org/releases/19.07.4/targets/x86/64/openwrt-19.07.4-x86-64-combined-ext4.img.gz'|gunzip|dd of=/dev/vda

*2、没有救援系统,使用MoeClub脚本安装

bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -dd 'https://downloads.openwrt.org/releases/19.07.4/targets/x86/64/openwrt-19.07.4-x86-64-combined-ext4.img.gz'

3、退出救援模式,重启进入VNC(DD包是DHCP的可以忽略)

设置网卡信息

vi /etc/config/network
  config interface 'wan'
    option ifname   'eth0'
    option proto    'static'
    option ipaddr   'IP地址'
    option gateway  '网关'
    option netmask  '子网掩码'
    list dns        '1.1.1.1'

重启网卡

service network restart

防火墙防火墙

vi /etc/config/firewall
    config zone
    option name    'wan'
    list network   'wan'
    list network   'wan6'
    option input   'ACCEPT'
    option output  'ACCEPT'
    option forward 'ACCEPT'
    option masq    '1'
    option mtu_fix '1'

重启防火墙

service firewall restart

补充一些 OpenWrt 的镜像包:

官方的(需要配置网络信息):https://downloads.openwrt.org/releases/19.07.4/targets/x86/64/openwrt-19.07.4-x86-64-combined-ext4.img.gz

荒岛大佬的(DHCP的,但是包比较老,密码password):https://drive.google.com/file/d/1ULeYW8zh-z-tvB2qZ8dOTb6caWL057ld/view?usp=sharing

原帖:https://lala.im/7247.html

备份:https://od.lezi.me/OS/OpeWrt/openwrt-x86-64-generic-ext4-combined.img.gz/openwrt-19.07.4-x86-64-combined-ext4.img.gz

bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -dd 'https://od.lezi.me/OS/OpeWrt/openwrt-x86-64-generic-ext4-combined.img.gz/openwrt-19.07.4-x86-64-combined-ext4.img.gz'

.