OpenWrt

Jannich Brendle on September 21st, 2009

If you are used to Linux systems, you know that logfiles are usually located in /var/log/ – but there is only three files in that directory on OpenWrt: root@OpenWrt:~# ls /var/log/ lastlog messages wtmp root@OpenWrt:~# cat /var/log/* Sep 21 15:56:26 OpenWrt syslog.info syslogd started: BusyBox v1.11.2 root@OpenWrt:~# So, to read the logfile from syslogd you [...]

Continue reading about Reading logfiles on OpenWrt

Jannich Brendle on September 14th, 2009

I have noticed a lot of people have issues with iptables on openwrt, so I have gathered a few tips that I’ve used myself. All the examples should be put in the file /etc/iptables.user on your openWrt router, and you should restart iptables every time you insert a rule with this command /etc/init.d/firewall restart. Blocking [...]

Continue reading about Some small iptables on OpenWrt tips

Jannich Brendle on September 4th, 2009

Earlier tonight, I made a shellscript to automatically remove unused shared libraries from an openwrt router, using opkg whatdepends $libraryname – and it worked. It reported seven libraries installed but not used by any other package, so I figured that they were safe to remove. NOTHING could be further from the thruth! One of the libraries [...]

Continue reading about Trust nobody (or nothing)