Differences between revisions 2 and 3
Revision 2 as of 2010-06-11 21:42:28
Size: 1050
Editor: SamatJain
Comment: Add SSH over WAN instructions, useful packages
Revision 3 as of 2010-07-19 23:46:44
Size: 1267
Editor: SamatJain
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
<<TableOfContents>>
Line 31: Line 33:
== 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
}}}

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

Useful packages

Package

Use

luci-app-ntpc

luci frontend for NTP. Will automatically pull in dependencies and start syncing device clock

miniupnpd luci-app-upnp

Enable UPnP so ports in firewall can automatically be opened


CategoryCheatSheet

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