Differences between revisions 5 and 6
Revision 5 as of 2011-12-26 10:24:38
Size: 1406
Editor: SamatJain
Comment:
Revision 6 as of 2016-01-08 18:11:49
Size: 1474
Editor: SamatJain
Comment: IPv6 traceroute
Deletions are marked like this. Additions are marked like this.
Line 60: Line 60:
== IPv6 ==

opkg install iputils-traceroute6 # IPv6 traceroute

Start service on boot

OpenWrt does not have update-rc.d or chkconfig. To start a service called service-name on boot, run:

   1 /etc/init.d/service-name enable

Enable SSH from WAN

Place into /etc/firewall.user:

   1 iptables --append input_wan --protocol tcp --dport 22 --jump ACCEPT

When SSH from WAN is enabled, it's probably a good idea to disable password logins via SSH (only public key authentication will be allowed):

   1 sed -i -e "s/'on'/'off'/"  /etc/config/dropbear

will set PasswordAuth option to "off", making /etc/config/dropbear look like:

config dropbear
        option PasswordAuth 'off'
        option Port         '22'

Unlock root data partition

OpenWrt sometimes does not unlock the data partition. I've particularly noticed this on the WRT54GL and OpenWrt 10.03.

mtd unlock rootfs_data

Use custom DNS server

Create /etc/resolv.local containing nameserver entries. Add resolv-file to dnsmasq.conf:

echo resolv-file=/etc/resolv.local >> /etc/dnsmasq.conf

and restart dnsmasq:

/etc/init.d/dnsmasq restart

Useful packages

Package

Use

miniupnpd luci-app-upnp

Enable UPnP so ports in firewall can automatically be opened

IPv6

opkg install iputils-traceroute6 # IPv6 traceroute


CategoryCheatSheet

SamatsWiki: CheatSheet/OpenWrt (last edited 2021-01-26 07:12:45 by SamatJain)