Skip to content

Instantly share code, notes, and snippets.

@pniaps
pniaps / openwrt.md
Last active April 28, 2021 17:38
Apuntes OpenWRT

Cambiar rango de la red del router

uci set network.lan.ipaddr=192.168.2.1;
uci commit;
/etc/init.d/network restart

Permitir WebUI desde WAN

uci add firewall rule
uci set firewall.@rule[-1].name='Allow-WEB-wan'

@pniaps
pniaps / backup.sh
Created February 20, 2023 01:29 — forked from aymencis/backup.sh
OVH NFS BACKUP
#!/bin/sh
# BACKUP SCRIPT
CONTACT="email@email.com"
MAIL="/tmp/mail"
if [ -e "/var/lock/backup.lock" ]
then
echo " BACKUP ALREADY STARTED !!" > $MAIL
@pniaps
pniaps / Build_seed_iso
Created March 20, 2023 18:07 — forked from asvignesh/Build_seed_iso
Samples to create a cloud-init configuration ISO.
$ genisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data