# ======================================================== | |
# Setup a Dumb AP, Wired backbone for OpenWRT / LEDE | |
# ======================================================== | |
# Set lan logical interface as bridge (to allow bridge multiple physical interfaces) | |
uci set network.lan.type='bridge' | |
# assign WAN physical interface to LAN (will be available as an additional LAN port now) | |
uci set network.lan.ifname="$(uci get network.lan.ifname) $(uci get network.wan.ifname)" | |
uci del network.wan.ifname | |
# Remove wan logical interface, since we will not need it. | |
uci del network.wan |
#!/bin/sh | |
# openwrt extroot /dev/sda1 ext4 /dev/sda2 swap | |
# latest version https://downloads.openwrt.org/releases/19.07-SNAPSHOT/targets/ar71xx/generic/ | |
opkg update | |
opkg install kmod-usb-storage kmod-scsi-core block-mount kmod-fs-ext4 kmod-usb-uhci e2fsprogs fdisk | |
echo " | |
sysctl -w net.ipv6.conf.all.disable_ipv6=1 | |
sysctl -w net.ipv6.conf.default.disable_ipv6=1 |
require "string" | |
--[[ | |
http://httpd.apache.org/docs/current/mod/mod_lua.html | |
This is the default method name for Lua handlers, see the optional | |
function-name in the LuaMapHandler directive to choose a different | |
entry point. | |
--]] | |
function handle(r) | |
r.content_type = "text/plain" |
#!/bin/sh | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
set -x | |
REVISION=8.212.04-r0 | |
URL=http://dl-cdn.alpinelinux.org/alpine/v3.10/community/armv7/ | |
PACKAGES="openjdk8 openjdk8-jre openjdk8-jre-lib openjdk8-jre-base" |
So, you want to be able to work from anywhere. You want to be on a mountain somewhere, two bars of 3G signal, and you forward that to your laptop with a WiFi hotspot. Open your laptop and your shell on remote is already open and as responsive as possible. Work/life balance? With power like this, who cares?
Often, in academic institutions at least, you have the following situation:
So, you want to be able to work from anywhere. You want to be on a mountain somewhere, two bars of 3G signal, and you forward that to your laptop with a WiFi hotspot. Open your laptop and your shell on remote is already open and as responsive as possible. Work/life balance? With power like this, who cares?
Often, in academic institutions at least, you have the following situation:
Accessing a subnet that is behind a WireGuard client using a site-to-site setup
We want to access a local subnet remotely, but it is behind a NAT firewall and we can't setup port forwarding. Outgoing connections work, but all incoming connections get DROPPED by the ISP's routing policy.
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 |