Site Tools


locations_of_common_log_and_configuration_files

This is an old revision of the document!


Log and Configuration File Locations

Area Location Persistent? Contents
Adblock list dnsmasq.adblock No DNS blocklist
Adblock program /usr/sbin/adblock Yes Adblock script
Adblock storage /mnt/usb/adblock Yes Lists and blockfiles
Crash export /tmp/crashlog.bin No Extracted crash log
Crash log /dev/mtdX Yes Raw crash partition
Cron jobs root crontab No Scheduled tasks
Custom scripts /jffs/scripts Yes User scripts
DHCP leases dnsmasq.leases No Current leases
dnsmasq config /tmp/etc/dnsmasq.conf No DNS, DHCP, TFTP
Firewall rules iptables-save No IPv4 NAT and firewall
Flash map /proc/mtd No Partition list
Hostnames /etc/hosts No Static host entries
IPv6 rules ip6tables-save No IPv6 firewall
JFFS storage /jffs Yes Persistent flash
NVRAM nvram Yes Main configuration
PPP DNS /etc/ppp/resolv.conf No PPP DNS servers
Resolver /etc/resolv.conf No Local resolver
Static DHCP /etc/ethers No MAC-to-IP map
System log /var/log/messages No Main syslog
Upstream DNS /etc/resolv.dnsmasq No WAN DNS servers
USB storage /tmp/mnt/LABEL Yes USB or CIFS mount

Path notes

  • dnsmasq.leases — default: /tmp/var/lib/misc/dnsmasq.leases; persistent example: /mnt/usb/dnsmasq/dnsmasq.leases
  • root crontab — inspect with: cru l
  • /tmp/mnt/LABEL — replace LABEL with the USB partition or CIFS share label
  • /dev/mtdX — replace X with the crash partition number shown by cat /proc/mtd
locations_of_common_log_and_configuration_files.1793641750.txt.gz · Last modified: by hogwild