2025年5月12日星期一

OpenWrt 24.10一键关闭IPV6

家里用不到IPV6,编译固件去掉IPV6的话,论坛里其他网友可能又有IPV6的需求

所以每次刷机后手动关闭吧,全部拷贝到ssh后台一键即可关闭。


uci set network.lan.ipv6='0'      

uci set network.wan.ipv6='0'      

uci set network.wan6.proto='none' 

uci set network.wan6.disabled='1'

uci set network.wan6.auto='0'

uci set dhcp.lan.dhcpv6='disabled'  

uci set dhcp.lan.ra='disabled'     

uci del firewall.cfg0892bd

uci del firewall.cfg0a92bd

uci del firewall.cfg0b92bd

uci del dhcp.lan.ra

uci del dhcp.lan.ra_slaac

uci del dhcp.lan.ra_flags

uci del dhcp.lan.dhcpv6

uci del network.lan.ip6assign

uci set network.lan.delegate='0'

uci del firewall.cfg0892bd

uci set firewall.cfg0992bd.family='ipv4'

uci set firewall.cfg0a92bd.family='ipv4'

uci commit

reboot

没有评论:

发表评论

CVE-2026-31431 漏洞验证和临时修复方案

昨天披露了一个漏洞,CVE-2026-31431。 简单说就是普通用户一旦拿到shell,就可以利用该漏洞直接提权到root。 漏洞验证: git clone https://github.com/rootsecdev/cve_2026_31431.git cd cve_2026...