This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |