Skip to content

watchyourland WatchYourLAN

WatchYourLAN is used to monitor IP addresses on my network rather than logging into Unifi.

🛠 Installation

Default Port: 8840

Configuration path: /etc/watchyourlan

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/watchyourlan.sh)"
bash -c "$(wget -qLO - https://github.com/asylumexp/Proxmox/raw/main/ct/watchyourlan.sh)"

âš™ Config

/etc/watchyourlan/config_v2.yaml

ln -s /root/git/nicholaswilde/homelab/pve/watchyourlan/config_v2.yaml /etc/watchyourlan/config_v2.yaml
cat > /etc/watchyourlan/config_v2.yaml <<EOF

arp_args: ""
arp_strs:
    - -gNx 192.168.1.0/24 -Q 1 -I eth0
    - -gNx 192.168.2.0/24 -Q 2 -I eth0
    - -gNx 192.168.3.0/24 -Q 3 -I eth0
arp_strs_joined: ""
color: dark
hist_in_db: false
host: 0.0.0.0
ifaces: eth0
influx_addr: ""
influx_bucket: ""
influx_enable: false
influx_org: ""
influx_skip_tls: false
influx_token: ""
log_level: info
nodepath: ""
pg_connect: ""
port: "8840"
shoutrrr_url: ""
theme: sand
timeout: 120
trim_hist: 48
use_db: sqlite

EOF
wget https://github.com/nicholaswilde/homelab/raw/refs/heads/main/pve/watchyourlan/config_v2.yaml -O /etc/watchyourlan/config_v2.yaml
arp_args: ""
arp_strs:
    - -gNx 192.168.1.0/24 -Q 1 -I eth0
    - -gNx 192.168.2.0/24 -Q 2 -I eth0
    - -gNx 192.168.3.0/24 -Q 3 -I eth0
arp_strs_joined: ""
color: dark
hist_in_db: false
host: 0.0.0.0
ifaces: eth0
influx_addr: ""
influx_bucket: ""
influx_enable: false
influx_org: ""
influx_skip_tls: false
influx_token: ""
log_level: info
nodepath: ""
pg_connect: ""
port: "8840"
shoutrrr_url: ""
theme: sand
timeout: 120
trim_hist: 48
use_db: sqlite

/etc/watchyourlan/scan.db

Decrypt

task decrypt
sops -d scan.db.enc > scan.db

Encrypt

task encrypt
sops -e scan.db > scan.db.enc

Symbolic Link

ln -s /root/git/nicholaswilde/homelab/pve/watchyourlan/scan.db /etc/watchyourlan/scan.db

Traefik

homelab/pve/traefik/conf.d/watchyourlan.yaml
---
http:
 #region routers 
  routers:
    watchyourlan:
      entryPoints:
        - "websecure"
      rule: "Host(`watch.l.nicholaswilde.io`)"
      middlewares:
        - default-headers@file
        - https-redirectscheme@file
      tls: {}
      service: watchyourlan
#endregion
#region services
  services:
    watchyourlan:
      loadBalancer:
        servers:
          - url: "http://192.168.2.53:8840"
        passHostHeader: true

🔗 References