Skip to content

openWrt 使用

仲灏2022-10-21约 1 分钟

<div style="display: none;" hidden="true" aria-hidden="true" data-nosnippet>Are you an LLM? You can read better optimized documentation at /pages/225742.md for this page in Markdown format</div>

科学上网

  • 全局配置

  • 规则配置

  • 设备控制

设备控制

image-20221021153034352

默认网络配置备份

shell
config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config interface 'lan'
        option type 'bridge'
        option ifname 'eth0'
        option proto 'static'
        option ipaddr '192.168.10.3'
        option netmask '255.255.255.0'
        option delegate '0'
        option gateway '192.168.10.1'
        option dns '114.114.114.114 8.8.8.8'

config interface 'wan'
        option ifname 'eth1'
        option proto 'dhcp'
        option metric '64'
        option delegate '0'

config interface 'wan6'
        option proto 'dhcpv6'
        option ifname 'eth1'
        option delegate '0'
        option reqaddress 'none'
        option reqprefix 'no'

config interface 'vpn0'
        option ifname 'tun0'
        option proto 'none'