I understand the situation, I have tried it in the past, I gave you the above information, I hope that someone will be able to make ipv6 work for my configuration as well....
Greetings!
Updates
Gargoyle network config
Code: Select all
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 94,
"l3_device": "pppoe-wan",
"proto": "pppoe",
"device": "eth1.2",
"updated": [
"addresses"
],
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
{
"address": "75",
"mask": 32,
"ptpaddress": "10.0.0.1"
}
],
"ipv6-address": [
{
"address": "fa5",
"mask": 128
}
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
{
"target": "0.0.0.0",
"mask": 0,
"nexthop": "10.0.0.1",
"source": "0.0.0.0/0"
}
],
"dns-server": [
"193.231.252.1",
"213.154.124.1"
],
"dns-search": [
],
"neighbors": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
]
},
"data": {
}
}
root@Gargoyle:~# ifstatus wan_6
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": true,
"uptime": 119,
"l3_device": "pppoe-wan",
"proto": "none",
"device": "pppoe-wan",
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
],
"ipv6-address": [
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
]
},
"data": {
}
}
root@Gargoyle:~# cat /etc/config/firewall
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan'
list network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
config zone
option name 'wan'
list network 'wan'
list network 'wan6'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
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 'neighbour-solicitation'
list icmp_type 'router-advertisement'
list icmp_type 'neighbour-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'
option reload '1'
config include
option type 'script'
option path '/usr/lib/gargoyle_firewall_util/gargoyle_additions.firewall'
option family 'any'
option reload '1'
config include 'miniupnpd'
option type 'script'
option path '/usr/share/miniupnpd/firewall.include'
option family 'any'
option reload '1'
config include 'openvpn_include_file'
option path '/etc/openvpn.firewall'
option reload '1'
config include 'wireguard_include_file'
option path '/etc/wireguard.firewall'
option reload '1'
config include 'tor_include_file'
option path '/etc/tor.firewall'
option reload '1'
config remote_accept 'ra_22_22_any'
option local_port '22'
option remote_port '22'
option proto 'tcp'
option zone 'wan'
option family 'any'
root@Gargoyle:~# cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option authoritative '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
option readethers '0'
list addnhosts '/plugin_root/adblock/block.hosts'
list rebind_domain '.bit'
list rebind_domain '.glue'
list rebind_domain '.parody'
list rebind_domain '.dyn'
list rebind_domain '.bbs'
list rebind_domain '.free'
list rebind_domain '.fur'
list rebind_domain '.geek'
list rebind_domain '.gopher'
list rebind_domain '.indy'
list rebind_domain '.ing'
list rebind_domain '.null'
list rebind_domain '.oss'
list rebind_domain '.micro'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv6 'server'
option ra 'server'
option ra_management '1'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
root@Gargoyle:~# ifconfig
br-lan Link encap:Ethernet HWaddr 5:CF
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fd:1/60 Scope:Global
inet6 addr: fe8f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3774 errors:0 dropped:0 overruns:0 frame:0
TX packets:4142 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:720426 (703.5 KiB) TX bytes:2829748 (2.6 MiB)
eth0 Link encap:Ethernet HWaddr 5A:E:CF
inet6 addr: ff/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1135 errors:0 dropped:0 overruns:0 frame:0
TX packets:1086 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:196812 (192.1 KiB) TX bytes:200662 (195.9 KiB)
Interrupt:37
eth0.1 Link encap:Ethernet HWaddr 5A::CF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1057 errors:0 dropped:0 overruns:0 frame:0
TX packets:1054 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:171065 (167.0 KiB) TX bytes:192274 (187.7 KiB)
eth1 Link encap:Ethernet HWaddr 58:CF
inet6 addr: fe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3899 errors:0 dropped:0 overruns:0 frame:0
TX packets:3321 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:2858787 (2.7 MiB) TX bytes:765272 (747.3 KiB)
Interrupt:36
eth1.2 Link encap:Ethernet HWaddr 58:CF
inet6 addr: fe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3899 errors:0 dropped:0 overruns:0 frame:0
TX packets:3315 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2788605 (2.6 MiB) TX bytes:751280 (733.6 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:30 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2327 (2.2 KiB) TX bytes:2327 (2.2 KiB)
pppoe-wan Link encap:Point-to-Point Protocol
inet addr:79.117.240.165 P-t-P:10.0.0.1 Mask:255.255.255.255
inet6 addr: fe5/10 Scope:Link
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:3889 errors:0 dropped:0 overruns:0 frame:0
TX packets:3283 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2756873 (2.6 MiB) TX bytes:672740 (656.9 KiB)
wlan0 Link encap:Ethernet HWaddr 00:17
inet6 addr: f7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:172 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:37487 (36.6 KiB)
wlan1 Link encap:Ethernet HWaddr 00:16
inet6 addr: fe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2716 errors:0 dropped:0 overruns:0 frame:0
TX packets:3310 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:587379 (573.6 KiB) TX bytes:2748559 (2.6 MiB)
root@Gargoyle:~# uci show network
network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd::/48'
network.lan=interface
network.lan.type='bridge'
network.lan.ifname='eth0.1'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6ifaceid='::1'
network.lan.dns='192.168.1.1'
network.lan.ip6assign='60'
network.wan=interface
network.wan.ifname='eth1.2'
network.wan.proto='pppoe'
network.wan.username='C'
network.wan.password=''
network.wan.keepalive='3 5'
network.wan.ipv6='auto'
network.wan6=interface
network.wan6.ifname='eth1.2'
network.wan6.proto='dhcpv6'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].ports='0 1 2 3 5t'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].vlan='2'
network.@switch_vlan[1].ports='4 6t'
root@Gargoyle:~#
OpenWrt config
Code: Select all
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
SuperWRT SNAPSHOT, r12288-1173719817
-----------------------------------------------------
root@swrt:~# opkg list-installed
6in4 - 25-1
adblock - 3.8.15-1
banip - 0.3.11-1
base-files - 213-r12288-1173719817
block-mount - 2020-01-21-deb745f8-1
busybox - 1.31.1-1
ca-bundle - 20190110-2
cgi-io - 18
chat - 2.4.8-2
collectd - 5.10.0-3
collectd-mod-conntrack - 5.10.0-3
collectd-mod-contextswitch - 5.10.0-3
collectd-mod-cpu - 5.10.0-3
collectd-mod-cpufreq - 5.10.0-3
collectd-mod-df - 5.10.0-3
collectd-mod-disk - 5.10.0-3
collectd-mod-dns - 5.10.0-3
collectd-mod-filecount - 5.10.0-3
collectd-mod-interface - 5.10.0-3
collectd-mod-iptables - 5.10.0-3
collectd-mod-irq - 5.10.0-3
collectd-mod-iwinfo - 5.10.0-3
collectd-mod-load - 5.10.0-3
collectd-mod-memory - 5.10.0-3
collectd-mod-netlink - 5.10.0-3
collectd-mod-network - 5.10.0-3
collectd-mod-openvpn - 5.10.0-3
collectd-mod-ping - 5.10.0-3
collectd-mod-processes - 5.10.0-3
collectd-mod-protocols - 5.10.0-3
collectd-mod-rrdtool - 5.10.0-3
collectd-mod-tcpconns - 5.10.0-3
collectd-mod-uptime - 5.10.0-3
collectd-mod-vmem - 5.10.0-3
collectd-mod-wireless - 5.10.0-3
comgt - 0.32-32
comgt-directip - 0.32-32
comgt-ncm - 0.32-32
conntrack - 2018-05-01-88610abe-1
cshark - 2018-08-20-7a7cf7f3-1
ddns-scripts - 2.7.8-15
dnsmasq-full - 2.80-18
dropbear - 2019.78-3
ds-lite - 7-4
e2fsprogs - 1.45.4-1
edgeport-firmware - 20200122-1
etherwake - 1.09-5
fdisk - 2.35.1-1
firewall - 2019-11-22-8174814a-1
fstools - 2020-01-21-deb745f8-1
fwtool - 2019-11-12-8f7fe925-1
getrandom - 2019-12-31-0e34af14-3
hd-idle - 1.05-2
hostapd-common - 2019-08-08-ca8c2bd2-6
ip-tiny - 5.5.0-1
ip6tables - 1.8.3-2
ipset - 7.4-1
iptables - 1.8.3-2
iptables-mod-conntrack-extra - 1.8.3-2
iptables-mod-extra - 1.8.3-2
iptables-mod-filter - 1.8.3-2
iptables-mod-hashlimit - 1.8.3-2
iptables-mod-ipopt - 1.8.3-2
iptables-mod-iprange - 1.8.3-2
iptables-mod-ipv4options - 3.7-2
iptables-mod-led - 1.8.3-2
iptables-mod-length2 - 3.7-2
iw - 5.4-1
iwinfo - 2020-01-05-bf2c1069-1
jshn - 2020-01-20-43a103ff-1
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 4.19.101-1-7b637a7d3412c5bb13d39aca2baad284
kmod-asn1-decoder - 4.19.101-1
kmod-cfg80211 - 4.19.101+5.4-rc8-1-1
kmod-crypto-aead - 4.19.101-1
kmod-crypto-arc4 - 4.19.101-1
kmod-crypto-authenc - 4.19.101-1
kmod-crypto-crc32c - 4.19.101-1
kmod-crypto-ecb - 4.19.101-1
kmod-crypto-hash - 4.19.101-1
kmod-crypto-manager - 4.19.101-1
kmod-crypto-null - 4.19.101-1
kmod-crypto-pcompress - 4.19.101-1
kmod-crypto-sha1 - 4.19.101-1
kmod-cryptodev - 4.19.101+1.10-mvebu-1
kmod-dma-buf - 4.19.101-1
kmod-fs-ext4 - 4.19.101-1
kmod-fuse - 4.19.101-1
kmod-gpio-button-hotplug - 4.19.101-3
kmod-gre - 4.19.101-1
kmod-ifb - 4.19.101-1
kmod-input-core - 4.19.101-1
kmod-ip6-tunnel - 4.19.101-1
kmod-ip6tables - 4.19.101-1
kmod-ipt-compat-xtables - 4.19.101+3.7-2
kmod-ipt-conntrack - 4.19.101-1
kmod-ipt-conntrack-extra - 4.19.101-1
kmod-ipt-core - 4.19.101-1
kmod-ipt-extra - 4.19.101-1
kmod-ipt-filter - 4.19.101-1
kmod-ipt-hashlimit - 4.19.101-1
kmod-ipt-ipopt - 4.19.101-1
kmod-ipt-iprange - 4.19.101-1
kmod-ipt-ipset - 4.19.101-1
kmod-ipt-ipv4options - 4.19.101+3.7-2
kmod-ipt-led - 4.19.101-1
kmod-ipt-length2 - 4.19.101+3.7-2
kmod-ipt-nat - 4.19.101-1
kmod-ipt-nat6 - 4.19.101-1
kmod-ipt-offload - 4.19.101-1
kmod-ipt-raw - 4.19.101-1
kmod-iptunnel - 4.19.101-1
kmod-iptunnel4 - 4.19.101-1
kmod-iptunnel6 - 4.19.101-1
kmod-ledtrig-heartbeat - 4.19.101-1
kmod-ledtrig-netdev - 4.19.101-1
kmod-lib-crc-ccitt - 4.19.101-1
kmod-lib-crc16 - 4.19.101-1
kmod-lib-crc32c - 4.19.101-1
kmod-lib-textsearch - 4.19.101-1
kmod-libphy - 4.19.101-1
kmod-mac80211 - 4.19.101+5.4-rc8-1-1
kmod-mii - 4.19.101-1
kmod-mppe - 4.19.101-1
kmod-mwlwifi - 4.19.101+2019-03-02-31d93860-2
kmod-nf-conntrack - 4.19.101-1
kmod-nf-conntrack-netlink - 4.19.101-1
kmod-nf-conntrack6 - 4.19.101-1
kmod-nf-flow - 4.19.101-1
kmod-nf-ipt - 4.19.101-1
kmod-nf-ipt6 - 4.19.101-1
kmod-nf-nat - 4.19.101-1
kmod-nf-nat6 - 4.19.101-1
kmod-nf-nathelper - 4.19.101-1
kmod-nf-nathelper-extra - 4.19.101-1
kmod-nf-reject - 4.19.101-1
kmod-nf-reject6 - 4.19.101-1
kmod-nfnetlink - 4.19.101-1
kmod-nls-base - 4.19.101-1
kmod-nls-cp437 - 4.19.101-1
kmod-nls-cp850 - 4.19.101-1
kmod-nls-cp852 - 4.19.101-1
kmod-nls-iso8859-1 - 4.19.101-1
kmod-nls-iso8859-2 - 4.19.101-1
kmod-nls-utf8 - 4.19.101-1
kmod-ppp - 4.19.101-1
kmod-pppoe - 4.19.101-1
kmod-pppox - 4.19.101-1
kmod-pptp - 4.19.101-1
kmod-rfkill - 4.19.101-1
kmod-sched-cake - 4.19.101+2020-01-10-aeff7a3e-1
kmod-sched-core - 4.19.101-1
kmod-scsi-core - 4.19.101-1
kmod-sit - 4.19.101-1
kmod-slhc - 4.19.101-1
kmod-tun - 4.19.101-1
kmod-usb-acm - 4.19.101-1
kmod-usb-core - 4.19.101-1
kmod-usb-ehci - 4.19.101-1
kmod-usb-net - 4.19.101-1
kmod-usb-net-asix - 4.19.101-1
kmod-usb-net-asix-ax88179 - 4.19.101-1
kmod-usb-net-cdc-eem - 4.19.101-1
kmod-usb-net-cdc-ether - 4.19.101-1
kmod-usb-net-cdc-mbim - 4.19.101-1
kmod-usb-net-cdc-ncm - 4.19.101-1
kmod-usb-net-cdc-subset - 4.19.101-1
kmod-usb-net-dm9601-ether - 4.19.101-1
kmod-usb-net-hso - 4.19.101-1
kmod-usb-net-huawei-cdc-ncm - 4.19.101-1
kmod-usb-net-ipheth - 4.19.101-1
kmod-usb-net-kalmia - 4.19.101-1
kmod-usb-net-kaweth - 4.19.101-1
kmod-usb-net-mcs7830 - 4.19.101-1
kmod-usb-net-pegasus - 4.19.101-1
kmod-usb-net-pl - 4.19.101-1
kmod-usb-net-qmi-wwan - 4.19.101-1
kmod-usb-net-rndis - 4.19.101-1
kmod-usb-net-rtl8150 - 4.19.101-1
kmod-usb-net-rtl8152 - 4.19.101-1
kmod-usb-net-sierrawireless - 4.19.101-1
kmod-usb-net-smsc95xx - 4.19.101-1
kmod-usb-net-sr9700 - 4.19.101-1
kmod-usb-ohci - 4.19.101-1
kmod-usb-printer - 4.19.101-1
kmod-usb-serial - 4.19.101-1
kmod-usb-serial-option - 4.19.101-1
kmod-usb-serial-sierrawireless - 4.19.101-1
kmod-usb-serial-wwan - 4.19.101-1
kmod-usb-storage - 4.19.101-1
kmod-usb-wdm - 4.19.101-1
kmod-usb2 - 4.19.101-1
kmod-usb3 - 4.19.101-1
kmod-video-core - 4.19.101-1
kmod-video-uvc - 4.19.101-1
kmod-video-videobuf2 - 4.19.101-1
libblkid1 - 2.35.1-1
libblobmsg-json - 2020-01-20-43a103ff-1
libc - 1.1.24-2
libcomerr0 - 1.45.4-1
libelf1 - 0.177-2
libext2fs2 - 1.45.4-1
libfdisk1 - 2.35.1-1
libgcc1 - 8.3.0-2
libgmp10 - 6.1.2-2
libip4tc2 - 1.8.3-2
libip6tc2 - 1.8.3-2
libipset13 - 7.4-1
libiptc0 - 1.8.3-2
libiwinfo-lua - 2020-01-05-bf2c1069-1
libiwinfo20200105 - 2020-01-05-bf2c1069-1
libjson-c4 - 0.13.1-1
libjson-script - 2020-01-20-43a103ff-1
libltdl7 - 2.4.6-2
liblua5.1.5 - 5.1.5-7
liblucihttp-lua - 2019-07-05-a34a17d5-1
liblucihttp0 - 2019-07-05-a34a17d5-1
liblzo2 - 2.10-2
libmbedtls12 - 2.16.4-1
libmnl0 - 1.0.4-2
libncurses6 - 6.1-5
libnetfilter-conntrack3 - 2018-05-01-3ccae9f5-2
libnetfilter-cthelper0 - 1.0.0-2
libnetfilter-cttimeout1 - 1.0.0-2
libnetfilter-queue1 - 2017-06-27-601abd1c-2
libnettle7 - 3.5.1-2
libnfnetlink0 - 1.0.1-3
libnl-tiny - 2019-10-29-0219008c-1
libopenssl1.1 - 1.1.1d-2
liboping - 1.10.0-2
libpcap1 - 1.9.1-2
libpthread - 1.1.24-2
librrd1 - 1.0.50-2
librt - 1.1.24-2
libsmartcols1 - 2.35.1-1
libss2 - 1.45.4-1
libubox20191228 - 2020-01-20-43a103ff-1
libubus-lua - 2020-01-05-d35df8ad-1
libubus20191227 - 2020-01-05-d35df8ad-1
libuci20130104 - 2020-01-27-e8d83732-3
libuclient20160123 - 2020-01-05-fef6d3d3-1
libusb-1.0-0 - 1.0.22-2
libustream-mbedtls20150806 - 2020-01-05-30cebb4f-1
libuuid1 - 2.35.1-1
libxtables12 - 1.8.3-2
logd - 2019-12-31-0e34af14-3
lua - 5.1.5-7
luci - git-20.053.81164-72da3c4-1
luci-app-adblock - git-20.053.81164-72da3c4-1
luci-app-advanced-reboot - git-20.053.81164-72da3c4-51
luci-app-banip - git-20.053.81164-72da3c4-1
luci-app-commands - git-20.053.81164-72da3c4-1
luci-app-cshark - git-20.053.81164-72da3c4-1
luci-app-ddns - git-20.053.81164-72da3c4-1
luci-app-firewall - git-20.053.81164-72da3c4-1
luci-app-hd-idle - git-20.053.81164-72da3c4-1
luci-app-nlbwmon - git-20.053.81164-72da3c4-1
luci-app-openvpn - git-20.053.81164-72da3c4-1
luci-app-opkg - git-20.053.81164-72da3c4-1
luci-app-p910nd - git-20.053.81164-72da3c4-1
luci-app-samba - git-20.053.81164-72da3c4-1
luci-app-sqm - 1.4.0-4
luci-app-statistics - git-20.053.81164-72da3c4-1
luci-app-uhttpd - git-20.053.81164-72da3c4-1
luci-app-upnp - git-20.053.81164-72da3c4-1
luci-app-wifischedule - git-20.053.81164-72da3c4-1
luci-app-wol - git-20.053.81164-72da3c4-1
luci-base - git-20.053.81164-72da3c4-1
luci-compat - git-20.053.81164-72da3c4-1
luci-i18n-adblock-en - git-20.053.81164-72da3c4-1
luci-i18n-advanced-reboot-en - git-20.053.81164-72da3c4-51
luci-i18n-banip-en - git-20.053.81164-72da3c4-1
luci-i18n-base-en - git-20.053.81164-72da3c4-1
luci-i18n-commands-en - git-20.053.81164-72da3c4-1
luci-i18n-cshark-en - git-20.053.81164-72da3c4-1
luci-i18n-ddns-en - git-20.053.81164-72da3c4-1
luci-i18n-firewall-en - git-20.053.81164-72da3c4-1
luci-i18n-hd-idle-en - git-20.053.81164-72da3c4-1
luci-i18n-nlbwmon-en - git-20.053.81164-72da3c4-1
luci-i18n-openvpn-en - git-20.053.81164-72da3c4-1
luci-i18n-opkg-en - git-20.053.81164-72da3c4-1
luci-i18n-p910nd-en - git-20.053.81164-72da3c4-1
luci-i18n-samba-en - git-20.053.81164-72da3c4-1
luci-i18n-statistics-en - git-20.053.81164-72da3c4-1
luci-i18n-uhttpd-en - git-20.053.81164-72da3c4-1
luci-i18n-upnp-en - git-20.053.81164-72da3c4-1
luci-i18n-wifischedule-en - git-20.053.81164-72da3c4-1
luci-i18n-wol-en - git-20.053.81164-72da3c4-1
luci-lib-ip - git-20.053.81164-72da3c4-1
luci-lib-ipkg - git-20.053.81164-72da3c4-1
luci-lib-iptparser - git-20.053.81164-72da3c4-1
luci-lib-jsonc - git-20.053.81164-72da3c4-1
luci-lib-nixio - git-20.053.81164-72da3c4-1
luci-mod-admin-full - git-20.053.81164-72da3c4-1
luci-mod-network - git-20.053.81164-72da3c4-1
luci-mod-status - git-20.053.81164-72da3c4-1
luci-mod-system - git-20.053.81164-72da3c4-1
luci-proto-3g - git-20.053.81164-72da3c4-1
luci-proto-ipv6 - git-20.053.81164-72da3c4-1
luci-proto-ncm - git-20.053.81164-72da3c4-1
luci-proto-ppp - git-20.053.81164-72da3c4-1
luci-proto-qmi - git-20.053.81164-72da3c4-1
luci-ssl - git-20.053.81164-72da3c4-1
luci-theme-bootstrap - git-20.053.81164-72da3c4-1
luci-theme-material - git-20.053.81164-72da3c4-1
miniupnpd - 2.1.20191006-2
monit-nossl - 5.26.0-1
mtd - 25
mwifiex-pcie-firmware - 20200122-1
mwifiex-sdio-firmware - 20200122-1
mwlwifi-firmware-88w8864 - 2019-03-02-31d93860-2
mwlwifi-firmware-88w8897 - 2019-03-02-31d93860-2
mwlwifi-firmware-88w8964 - 2019-03-02-31d93860-2
mwlwifi-firmware-88w8997 - 2019-03-02-31d93860-2
nano - 4.8-1
netifd - 2020-01-18-1321c1bd-1
nlbwmon - 2019-06-13-e921ca0a-1
odhcp6c - 2019-01-11-e199804b-16
openssh-sftp-server - 8.1p1-1
openvpn-mbedtls - 2.4.8-1
openwrt-keyring - 2019-07-25-8080ef34-1
opkg - 2020-01-25-c09fe209-1
p910nd - 0.97-8
ppp - 2.4.8-2
ppp-mod-pppoe - 2.4.8-2
ppp-mod-pptp - 2.4.8-2
procd - 2020-02-11-c30b23e3-1
px5g-mbedtls - 9
resolveip - 2
rpcd - 2020-01-05-efe51f41-2
rpcd-mod-file - 2020-01-05-efe51f41-2
rpcd-mod-iwinfo - 2020-01-05-efe51f41-2
rpcd-mod-luci - 20191114
rpcd-mod-rrdns - 20170710
rrdtool1 - 1.0.50-2
samba36-server - 3.6.25-14
sqm-scripts - 1.4.0-4
sqm-scripts-extra - 2016-06-08-1
ss - 5.5.0-1
swconfig - 12
tc - 5.5.0-1
tcpdump - 4.9.3-1
terminfo - 6.1-5
ubi-utils - 2.1.1-1
uboot-envtools - 2019.07-2
ubox - 2019-12-31-0e34af14-3
ubus - 2020-01-05-d35df8ad-1
ubusd - 2020-01-05-d35df8ad-1
uci - 2020-01-27-e8d83732-3
uclient-fetch - 2020-01-05-fef6d3d3-1
uhttpd - 2020-02-12-2ee323c0-1
umbim - 2019-09-11-184b707d-1
uqmi - 2019-06-27-1965c713-7
urandom-seed - 1.0-1
urngd - 2020-01-21-c7f7b6b6-1
usb-modeswitch - 2017-12-19-f40f84c2-2
usign - 2019-09-21-f34a383e-1
wifischedule - 1-2
wireless-regdb - 2019.06.03
wpad-basic - 2019-08-08-ca8c2bd2-6
wwan - 2019-04-29-4
zlib - 1.2.11-3
root@swrt:~# ifstatus wan
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 103,
"l3_device": "pppoe-wan",
"proto": "pppoe",
"device": "eth1.2",
"updated": [
"addresses"
],
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
{
"address": "75",
"mask": 32,
"ptpaddress": "10.0.0.1"
}
],
"ipv6-address": [
{
"address": "fea5",
"mask": 128
}
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
{
"target": "0.0.0.0",
"mask": 0,
"nexthop": "10.0.0.1",
"source": "0.0.0.0/0"
}
],
"dns-server": [
"193.231.252.1",
"213.154.124.1"
],
"dns-search": [
],
"neighbors": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
]
},
"data": {
}
}
root@swrt:~# ifstatus wan_6
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": true,
"uptime": 110,
"l3_device": "pppoe-wan",
"proto": "dhcpv6",
"device": "pppoe-wan",
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
],
"ipv6-address": [
{
"address": "2a02:2f09:83ff:ffff::4f75:f0a5",
"mask": 128
}
],
"ipv6-prefix": [
{
"address": "2a02:2f09:8306:b800::",
"mask": 56,
"class": "wan_6",
"assigned": {
"lan": {
"address": "2a0::",
"mask": 60
}
}
}
],
"ipv6-prefix-assignment": [
],
"route": [
{
"target": "::",
"mask": 0,
"nexthop": "fe80::1",
"metric": 512,
"valid": 896,
"source": "2a000::/56"
},
{
"target": "::",
"mask": 0,
"nexthop": "fe80::1",
"metric": 512,
"valid": 896,
"source": "2aa5/128"
}
],
"dns-server": [
"2a02:2f0c:8000:3::1",
"2a02:2f0c:8000:8::1"
],
"dns-search": [
],
"neighbors": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
]
},
"data": {
"passthru": "001700202a022f0c8000000300000000000000012a022f0c800000080000000000000001",
"zone": "wan"
}
}
root@swrt:~# cat /etc/config/firewall
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan'
list network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
config zone
option name 'wan'
list network 'wan'
list network 'wan6'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
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 'neighbour-solicitation'
list icmp_type 'router-advertisement'
list icmp_type 'neighbour-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'
root@swrt:~# cat /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 'fd::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option ifname 'eth1.2'
option proto 'pppoe'
option ipv6 'auto'
option username ''
option password ''
config interface 'wan6'
option ifname 'eth1.2'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 5t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4 6t'
root@swrt:~# cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
option cachesize '10000'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv6 'server'
option ra 'server'
option ra_management '1'
option ra_preference 'medium'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
root@swrt:~# ifconfig
br-lan Link encap:Ethernet HWaddr :CF
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: 2a02:/60 Scope:Global
inet6 addr: fe8f/64 Scope:Link
inet6 addr: fd1::1/60 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5223 errors:0 dropped:0 overruns:0 frame:0
TX packets:4841 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:805513 (786.6 KiB) TX bytes:2421773 (2.3 MiB)
eth0 Link encap:Ethernet HWaddr 5:CF
inet6 addr: fef/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5313 errors:0 dropped:0 overruns:0 frame:0
TX packets:4885 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1024
RX bytes:923801 (902.1 KiB) TX bytes:2447274 (2.3 MiB)
Interrupt:37
eth0.1 Link encap:Ethernet HWaddr 5:CF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5195 errors:0 dropped:0 overruns:0 frame:0
TX packets:4841 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:802125 (783.3 KiB) TX bytes:2421773 (2.3 MiB)
eth1 Link encap:Ethernet HWaddr 5A:CF
inet6 addr: fe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:870 errors:0 dropped:0 overruns:0 frame:0
TX packets:859 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1024
RX bytes:180303 (176.0 KiB) TX bytes:151798 (148.2 KiB)
Interrupt:36
eth1.2 Link encap:Ethernet HWaddr 5:CF
inet6 addr: fef/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:870 errors:0 dropped:0 overruns:0 frame:0
TX packets:850 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:164643 (160.7 KiB) TX bytes:147352 (143.8 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:372 errors:0 dropped:0 overruns:0 frame:0
TX packets:372 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:33447 (32.6 KiB) TX bytes:33447 (32.6 KiB)
pppoe-wan Link encap:Point-to-Point Protocol
inet addr:79.117.240.165 P-t-P:10.0.0.1 Mask:255.255.255.255
inet6 addr: fe/10 Scope:Link
inet6 addr: 2a05/128 Scope:Global
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:710 errors:0 dropped:0 overruns:0 frame:0
TX packets:672 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:151076 (147.5 KiB) TX bytes:123668 (120.7 KiB)
wlan0 Link encap:Ethernet HWaddr 51
inet6 addr: fe1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:285 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3240 (3.1 KiB) TX bytes:51976 (50.7 KiB)
wlan1 Link encap:Ethernet HWaddr 58:D0
inet6 addr: fe0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:555 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:540 (540.0 B) TX bytes:123927 (121.0 KiB)
root@swrt:~# uci show network
network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd::/48'
network.lan=interface
network.lan.type='bridge'
network.lan.ifname='eth0.1'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.wan=interface
network.wan.ifname='eth1.2'
network.wan.proto='pppoe'
network.wan.ipv6='auto'
network.wan.username='7'
network.wan.password='4'
network.wan6=interface
network.wan6.ifname='eth1.2'
network.wan6.proto='dhcpv6'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].ports='0 1 2 3 5t'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].vlan='2'
network.@switch_vlan[1].ports='4 6t'
root@swrt:~# cat /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 'f::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option ifname 'eth1.2'
option proto 'pppoe'
option ipv6 'auto'
option username 'C'
option password ''
config interface 'wan6'
option ifname 'eth1.2'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 5t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4 6t'
root@swrt:~# ifstatus lan
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 387,
"l3_device": "br-lan",
"proto": "static",
"device": "br-lan",
"updated": [
"addresses"
],
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
{
"address": "192.168.1.1",
"mask": 24
}
],
"ipv6-address": [
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
{
"address": "2::",
"mask": 60,
"local-address": {
"address": "2800::1",
"mask": 60
}
},
{
"address": "fd1c:f65f:29ee::",
"mask": 60,
"local-address": {
"address": "fd29ee::1",
"mask": 60
}
}
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
]
},
"data": {
}
}
root@swrt:~# {