LEDE (Linux Embedded Development Environment) - first steps

Published on Author admin

First steps with LEDE - Linux Embedded Development Environment.

Setting MAC address cloning for WAN network interface.
config file: /etc/config/network

config device 'wan_dev'
    option name 'eth0.2'
    option macaddr 'XX:XX:XX:XX:XX:XX'

Setting port forwarding (Destination NAT).
config file: /etc/config/firewall

config redirect
    option target 'DNAT'
    option src 'wan'
    option dest 'lan'
    option proto 'tcp'
    option src_dport '443'
    option dest_ip '192.168.XX.XX'
    option dest_port '443'
    option name 'HTTPS'

Static MAC to IP binding.
config file: /etc/config/dhcp

config host
    option name 'server'
    option dns '1'
    option mac 'XX:XX:XX:XX:XX:XX'
    option ip '192.168.XX.XX'

Update package list:

opkg update

List available packages:

opkg list

Install tcpdump:

opkg install tcpdump

Install Midnight Commander:

opkg install mc

Upgrade package (for instance Midnight Commander):

opkg upgrade mc