Site Tools


locations_of_common_log_and_configuration_files

This is an old revision of the document!


Log and Configuration File Locations


This table contains the locations of some of the most commonly-used log and configuration files.
WARNING: Some files should not be edited unless you are very experienced. Some should never be edited. Please use caution.


Area Location Persistent? Contents
Adblock list /etc/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
NTP /etc/ntp.conf Yes NTP Configuration
NVRAM nvram Yes Main configuration
OpenVPN /etc/openvpn ??? Config files
OpenVPN /var/log/messages ??? Log
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.1793717696.txt.gz · Last modified: by hogwild