dhcp-script=/etc/detect_new_device.sh
Reference:
dhcp-script=/etc/detect_new_device.sh
Reference:
#!/bin/sh | |
# place this file at: /etc/hotplug.d/iface/99-login-telekom_fon | |
# based on source: https://gist.github.com/cusspvz/3ab1ea9110f4ef87f0d2e1cd134aca67 | |
# | |
# loginscript for german telekom_FON hotspot (NOT the general Telekom Hotspot) | |
# technic: uses HTTP POST formular; extract URLs from WIPSr | |
# | |
# Preparations |
#!/bin/ash | |
# This script filters the logs and send it via mail | |
# Installation on openwrt | |
#- opkg update && opkg install diffutils | |
#- install and setup ssmtp (https://fleshandmachines.wordpress.com/2014/09/14/openwrt-automatic-email-sending/) | |
#- add it to crontab | |
# Rules | |
RULES="grep -v info" |
Others have recently developed packages for this same functionality, and done it better than anything I could do. Use the packages instead of this script:
Gargoyle package by @lantis1008
OpenWRT package by @dibdot
In its basic usage, this script will modify the router such that blocked addresses are null routed and unreachable. Since the address blocklist is full of advertising, malware, and tracking servers, this setup is generally a good thing. In addition, the router will update the blocklist weekly. However, the blocking is leaky, so do not expect everything to be blocked.
#!/bin/bash | |
## Update fail2ban iptables with globally known attackers. | |
## Actually, runs 100% independently now, without needing fail2ban installed. | |
## | |
## /etc/cron.daily/sync-fail2ban | |
## | |
## Author: Marcos Kobylecki <[email protected]> | |
## http://www.reddit.com/r/linux/comments/2nvzur/shared_blacklists_from_fail2ban/ |
Hey there, apparently people are still using this Gist from 2013! It's out of date! Consult the Github docs.
I haven't tried mainline kernel. just 4.4.x. Seems to work with Xenial and Jessie
make note of the MAC addresseses on the switch ports.. the 2 close together will be LAN1 and LAN2 in the OS. eth1addr and ethaddr2 in u-boot. The 3rd address will be for WAN in the OS aka ethaddr in u-boot
the WAN port is in-line with the SDcard slot on the board.... use that as your primary NIC for now.
Use my branch, or hopefully igor's once my merge request has been added. Standard armbian building expertise applies.
#!/usr/bin/awk -f | |
# Coded by: Vladislav Grigoryev <vg[dot]aetera[at]gmail[dot]com> | |
# License: GNU General Public License (GPL) version 3+ | |
# Description: Select wireless channel automatically | |
function get_iwphy() { | |
cmd = "iw phy" | |
while(cmd | getline) { | |
if($0 ~ /^\s*Wiphy\s/) |
The script helps you restore all installed OpenWRT packages after upgrading the main firmware image via sysupgrade. It works | |
ONLY if the default firmware image provided by the OpenWRT project is sufficient to get connected to the Internet, but you | |
want some extra packages for additional functionality. In other words, it WILL NOT WORK if connecting to the Internet | |
requires installing extra packages (e.g., a kernel module for your LTE modem). | |
The script has been tested for upgrading from OpenWRT 18.06.1 to 18.06.2 and to a development snapshot, as well as between | |
development snapshots. On LEDE 17.01.x, "flock" is not a part of the default image, so has to be installed manually. | |
Initial setup: |