Skip to content

Instantly share code, notes, and snippets.

View kamsalisbury's full-sized avatar
💭
I may be slow to respond.

Kam Salisbury kamsalisbury

💭
I may be slow to respond.
View GitHub Profile
@alexalouit
alexalouit / readme.txt
Last active April 7, 2023 22:07
OpenWRT as reliable and secure SFTP server
$ opkg update
$ opkg install openssh-server openssh-sftp-server
# disable built-in dropbear
$ /etc/init.d/dropbear disable
$ /etc/init.d/dropbear stop
# enable full openssh server
$ /etc/init.d/sshd enable
$ /etc/init.d/sshd start
@luckman212
luckman212 / v6test.sh
Last active October 23, 2023 02:38
script for pfSense to detect IPv6 router advertisements coming from a WAN interface
#!/bin/sh
# set the variable below to your FIOS interface
IF=igb0
/usr/bin/timeout 5m /usr/sbin/tcpdump -ni ${IF} 'icmp6 && ip6[40] == 134' >/tmp/${IF}_RAs.out
FSIZE=$(/usr/bin/stat -f '%z' /tmp/${IF}_RAs.out)
if [ "$FSIZE" -gt 1 ]; then
echo '<?php include("notices.inc"); $msg = "IPv6 RAs detected on interface '$IF'"; notify_via_smtp($msg);?>' | /usr/local/bin/php -q
fi