root@OpenWrt:~# ubus call system board
{
"kernel": "5.15.134",
"hostname": "OpenWrt",
"system": "Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz",
"model": "Dell Inc. Inspiron 3537",
"board_name": "dell-inc-inspiron-3537",
"rootfs_type": "ext4",
"release": {
"distribution": "OpenWrt",
"version": "23.05.0",
"revision": "r23497-6637af95aa",
"target": "x86/64",
"description": "OpenWrt 23.05.0 r23497-6637af95aa"
}
}
root@OpenWrt:~# cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd02:931d:28d3::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
config device
option name 'usblan-dev'
option type 'bridge'
list ports 'eth1'
config device
option name 'usbwan-dev'
option type 'bridge'
list ports 'eth2'
config interface 'lan'
option device 'usblan-dev'
option proto 'static'
option ipaddr '192.168.0.10'
option netmask '255.255.255.0'
list dns '1.1.1.1'
config interface 'wan'
option proto 'pppoe'
option device 'usbwan-dev'
option username 'REDACTED'
option password 'REDACTED'
option ipv6 'auto'
config interface 'docker'
option device 'docker0'
option proto 'none'
option auto '0'
config device
option type 'bridge'
option name 'docker0'
root@OpenWrt:~# cat /etc/config/firewall
config defaults
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option synflood_protect '1'
config zone 'lan'
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
list device 'tun+'
config zone 'wan'
option name 'wan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
list network 'wan'
list network 'wan6'
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 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 zone
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option name 'lan_to_wan'
list network 'lan'
list network 'wan'
config forwarding
option dest 'wan'
config forwarding
option src 'lan'
config forwarding
option dest 'wan'
config forwarding
option src 'lan'
config forwarding
option src 'lan_to_wan'
option dest 'wan'
config forwarding
option src 'lan'
option dest 'lan_to_wan'
config zone 'docker'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option name 'docker'
list network 'docker'
config rule 'ovpn'
option name 'Allow-RDP'
option src 'wan'
option dest_port '3389'
option target 'ACCEPT'
list proto 'tcp'
list proto 'udp'
list dest_ip '192.168.0.240'
config redirect
option dest 'lan'
option target 'DNAT'
option name 'PC RDP'
option src 'wan'
option src_dport '3389'
option dest_ip '192.168.0.239'
option dest_port '3389'
config redirect
option dest 'lan'
option target 'DNAT'
option name 'test'
option src 'wan'
option src_dport '1338'
option dest_ip '192.168.0.239'
option dest_port '1338'
root@OpenWrt:~# lsusb -t
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
|__ Port 1: Dev 2, If 0, Class=, Driver=r8152, 5000M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/9p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=, Driver=hub/8p, 480M
|__ Port 4: Dev 6, If 0, Class=, Driver=r8152, 480M
|__ Port 5: Dev 3, If 0, Class=, Driver=, 12M
|__ Port 5: Dev 3, If 1, Class=, Driver=, 12M
|__ Port 7: Dev 4, If 0, Class=, Driver=, 480M
|__ Port 8: Dev 5, If 0, Class=, Driver=, 480M
|__ Port 8: Dev 5, If 1, Class=, Driver=, 480M
root@OpenWrt:~#