首先 看看你磁盘分区
这里默认是sda 有些 vda 还有些fdisk -l 自己查吧
这个openwrt x86 版本众多 我这里用的是koolshare.cn 家的 你们有自己编译的可以选择自己需要的
wget -O- https://firmware.koolshare.cn/LEDE_X64_fw867/openwrt-koolshare-mod-v2.33-r12074-007caa48d1-x86-64-combined-squashfs.img.gz |gunzip|dd of=/dev/sda
默认密码 koolshare
正常执行完了 等个5分钟 如果没有重启 自己强制重启一下
照理说 再次启动应该是 Openwrt 了 但是这个时候根本无法上网
附上配置方法
如图1
没有命令行 记得按回车就会出现 默认是不需要授权的 直接登陆成功的
我们这里要修改2个路径的配置文件
我直接附上我的配置文件
第一个 /etc/config/network
————————————————————————————————-
config interface ‘loopback’
option ifname ‘lo’
option proto ‘static’
option ipaddr ‘127.0.0.1’
option netmask ‘255.0.0.0’
config globals ‘globals’
option ula_prefix ‘fd6b:e284:33c7::/48’
option multipath ‘disable’
option mptcp_path_manager ‘fullmesh’
option mptcp_scheduler ‘default’
option mptcp_checksum ‘0’
option mptcp_debug ‘0’
option mptcp_syn_retries ‘5’
option mptcp_fullmesh_num_subflows ‘1’
option mptcp_fullmesh_create_on_err ‘1’
option mptcp_ndiffports_num_subflows ‘1’
option congestion ‘cubic’
config interface ‘wan’
option ifname ‘eth0’
option proto ‘static’
option ipaddr ‘IP’
option gateway ‘网关’
option netmask ‘子网掩码’
option multipath ‘off’
list dns ‘8.8.8.8’
list dns ‘8.8.4.4’
—————————————————————————————–
子网掩码填写你vps的 不知道就默认
这里最关键的是 删除Lan 我默认已经删除了 如果不删除 eth0 会被占用
第二个 /etc/config/firewall
—————————————————————————————–
config defaults
option syn_flood ‘1’
option input ‘ACCEPT’
option output ‘ACCEPT’
option forward ‘REJECT’
config zone
option name ‘lan’
option input ‘ACCEPT’
option output ‘ACCEPT’
option forward ‘ACCEPT’
option network ‘ ‘
config zone
option name ‘wan’
option input ‘REJECT’
option output ‘ACCEPT’
option forward ‘REJECT’
option masq ‘1’
option mtu_fix ‘1’
option fullcone ‘1’
option network ‘wan’
config forwarding
option src ‘lan’
option dest ‘wan’
config rule
option name ‘Allow-DHCP-Renew’
option src ‘wan’
option proto ‘udp’
option dest_port ’68’
option target ‘ACCEPT’
option family ‘ipv4’
config rule
option name ‘Allow-Ping’
option src ‘wan’
option proto ‘icmp’
option icmp_type ‘echo-request’
option family ‘ipv4’
option target ‘ACCEPT’
config rule
option name ‘Allow-IGMP’
option src ‘wan’
option proto ‘igmp’
option family ‘ipv4’
option target ‘ACCEPT’
config rule
option name ‘Allow-DHCPv6’
option src ‘wan’
option proto ‘udp’
option src_ip ‘fc00::/6’
option dest_ip ‘fc00::/6’
option dest_port ‘546’
option family ‘ipv6’
option target ‘ACCEPT’
config rule
option name ‘Allow-MLD’
option src ‘wan’
option proto ‘icmp’
option src_ip ‘fe80::/10’
list icmp_type ‘130/0’
list icmp_type ‘131/0’
list icmp_type ‘132/0’
list icmp_type ‘143/0’
option family ‘ipv6’
option target ‘ACCEPT’
config rule
option name ‘Allow-ICMPv6-Input’
option src ‘wan’
option proto ‘icmp’
list icmp_type ‘echo-request’
list icmp_type ‘echo-reply’
list icmp_type ‘destination-unreachable’
list icmp_type ‘packet-too-big’
list icmp_type ‘time-exceeded’
list icmp_type ‘bad-header’
list icmp_type ‘unknown-header-type’
list icmp_type ‘router-solicitation’
list icmp_type ‘nei**our-solicitation’
list icmp_type ‘router-advertisement’
list icmp_type ‘nei**our-advertisement’
option limit ‘1000/sec’
option family ‘ipv6’
option target ‘ACCEPT’
config rule
option name ‘Allow-ICMPv6-Forward’
option src ‘wan’
option dest ‘*’
option proto ‘icmp’
list icmp_type ‘echo-request’
list icmp_type ‘echo-reply’
list icmp_type ‘destination-unreachable’
list icmp_type ‘packet-too-big’
list icmp_type ‘time-exceeded’
list icmp_type ‘bad-header’
list icmp_type ‘unknown-header-type’
option limit ‘1000/sec’
option family ‘ipv6’
option target ‘ACCEPT’
config rule
option name ‘Allow-IPSec-ESP’
option src ‘wan’
option dest ‘lan’
option proto ‘esp’
option target ‘ACCEPT’
config rule
option name ‘Allow-ISAKMP’
option src ‘wan’
option dest ‘lan’
option dest_port ‘500’
option proto ‘udp’
option target ‘ACCEPT’
config include
option path ‘/etc/firewall.user’
config include ‘miniupnpd’
option type ‘script’
option path ‘/usr/share/miniupnpd/firewall.include’
option family ‘any’
option reload ‘1’
config include ‘unblockmusic’
option type ‘script’
option path ‘/var/etc/unblockmusic.include’
option reload ‘1’
config rule
option name ‘Allow-http’
option src ‘wan’
option dest_port ’80’
option target ‘ACCEPT’
option proto ‘tcp’
config rule
option name ‘Allow-SSH’
option target ‘ACCEPT’
option src ‘wan’
option dest_port ’22’
option proto ‘tcp’
option family ‘ipv4’
—————————————————————————————–
看清楚 加粗的 是我添加的
设置好了 如果懒得重启2次服务 直接 Reboot 就可以访问面板了
后续还要许多坑,自己尝试跳过!
内蒙古网友:那问题来了,我dd装黑裙晖,不比它香吗?
澳门网友:可以直接DD到虚拟机的硬盘上? 引导啥的没问题吗
内蒙古网友:X86架构的 引导没有任何问题
上海网友:wan口dhcp就行了吧
海南网友:这刷了这个有撒用??
河南网友:好像没啥用
香港网友:需要交互,没VNC就傻了
湖南网友:
失败了 还有就是如何扩盘 硬盘有50G 没利用起来啊
dd成功了 升级也不成功 安装什么东西也安装不上 毛用没有
山西网友:软件中心有扩展盘的工具
上海网友:软件中心有扩展盘的工具
江西网友:我dd在腾讯云香港vps上 能连网了 dns用的是腾讯云他家的 然后想安装软件 和更新 都是提示得30秒 然后就返回控制台了 结果一个软件都装不上 纠结
重庆网友:你注意一下 版本号 长时间提示更新 强制刷新一下 如果还弹出更新 说明 DNS不对 用4个114 或者4个8