Skip to content

Instantly share code, notes, and snippets.

View braian87b's full-sized avatar

braian87b

View GitHub Profile
@braian87b
braian87b / testing extroot pogoplug.sh
Last active March 7, 2017 02:23
Testing ext-root rootfs on SD Card for PogoPlug Mobile
# This commands executed on OpenWrt on 128mb internal Flash on a PogoPlug Mobile
# Yet something is missing to make it work, but I think I am close
# Install some stuff
opkg install usbutils
opkg install fdisk
opkg install kmod-usb-storage block-mount kmod-fs-ext4
opkg install e2fsprogs
# List Partitions on SD
@braian87b
braian87b / floppy_disk_ripper.sh
Last active May 24, 2017 19:09
How to Setup an OpenWRT / LEDE box to rip Floppy Disks data
# This script allow to setup a working OpenWRT / LEDE router with two USB ports
# or a USB Hub with a PenDrive and a Floppy Disk USB Drive,
# it will automatically create a Floppy Disk image and copy all data to a directory too.
# Optionally (disabled because it takes ages) will erase all data and blank it and format it.
# Floppy Disk rip process takes about 50 seconds, erasing and formating idk but takes more than 3 minutes.
opkg update
# Needed to mount filesystems
opkg install block-mount
@braian87b
braian87b / routed-client.sh
Last active August 7, 2017 00:16
How to setup Routed Client for OpenWRT / LEDE
Refer to image: https://forum.lede-project.org/t/help-to-create-2-wifi-networks-in-the-same-router/3320/6
Instrucciones en español: https://gist.github.com/braian87b/2333a32577a221c8d62b5ce8b54a4d95
# Delete existing wireless interfaces:
uci del wireless.@wifi-iface[-1]
uci del wireless.@wifi-iface[-1]
uci del wireless.@wifi-iface[-1]
# Important, to avoid conflicts with phisical WAN port (you will not be using it, if you want to use it too you had to use MWAN3)
@braian87b
braian87b / cliente-enrutado.sh
Last active August 7, 2017 00:16
Como configurar Cliente Enrutado para OpenWRT / LEDE
Ver imagen: https://forum.lede-project.org/t/help-to-create-2-wifi-networks-in-the-same-router/3320/6
English instructions: https://gist.github.com/braian87b/2333a32577a221c8d62b5ce8b54a4d95
Si tu Router es el de la izquierda del grafico:
# Borras interfaces wifi que tengas:
uci del wireless.@wifi-iface[-1]
uci del wireless.@wifi-iface[-1]
uci del wireless.@wifi-iface[-1]
@braian87b
braian87b / wrtbwmon-instructions.txt
Last active August 29, 2017 10:43
Instructions to get properly working wrtbwmon from https://github.com/pyrovski/wrtbwmon
# Instructions to get properly working wrtbwmon from https://github.com/pyrovski/wrtbwmon
# More info on: https://wiki.openwrt.org/doc/howto/wrtbwmon
# Remove previous package if present
root@OpenWrt:~# opkg remove wrtbwmon
root@OpenWrt:~# cd /tmp
# Download (search for latest ipk url on https://github.com/pyrovski/wrtbwmon/releases/)
root@OpenWrt:/tmp# wget https://github.com/pyrovski/wrtbwmon/releases/download/0.32/wrtbwmon_0.32_all.ipk
Connecting to github.com (192.30.252.131:443)
Connecting to github-cloud.s3.amazonaws.com (54.231.9.169:443)
@braian87b
braian87b / openwrt-lede-on-pogoplug-mobile.sh
Created December 27, 2017 17:02
PogoPlug Mobile - Install OpenWrt on internal flash (128mb) and keep allowing boot to SD or USB
# ---------------------------------------------------------------------------------
# Device - PogoPlug Mobile - Install OpenWrt on internal flash (128mb) and keep allowing boot to SD or USB
# ---------------------------------------------------------------------------------
http://blog.qnology.com/2015/02/openwrt-on-pogoplug-mobile.html
# Corrected URLs, because download.qnology.com is down:
http://ssl.pepas.com/pogo/mirrored/download.qnology.com/pogoplug/v4/
cd /tmp
#wget http://ssl.pepas.com/pogo/mirrored/download.qnology.com/pogoplug/v4/fw_printenv
@braian87b
braian87b / equal-bonding-link.sh
Last active April 15, 2020 20:56
Equal Cost Routing (OpenWrt - LEDE)
@braian87b
braian87b / openwrt-lede-on-pc-vm.sh
Created November 22, 2017 04:03
Instruction to have OpenWRT or LEDE on a X86 PC or Virtual Machine
# ----------------------------------------------------------------------
# Instruction to have OpenWRT or LEDE on a X86 PC or Virtual Machine:
# ----------------------------------------------------------------------
# boot using DamnSmallLinux or similar:
sudo /etc/init.d/ssh start
# see IP to connect using ssh
ifconfig
# set a password for root
su
@braian87b
braian87b / openwrt-lede-openvpn-client.md
Last active April 2, 2021 09:33
Setting an OpenWrt / LEDE Based Router as OpenVPN Client

These instructions should work for Streisand as well for others VPN providers (Streisand is a Software that automatically configures a VPS online server with OpenVPN and other VPN/Proxy Softwares in order to have a private VPN Server)

These instructions are for getting an OpenWrt Based Router working as OpenVPN Client (should work for LEDE, Gargoyle and another distributions). Computers connected to Lan Ports of the OpenWrt Router will navigate through the Internet connection of the OpenVPN Server (in this case the Streisand one previously set up) you need a working Router with OpenWrt based firmware flashed on it (LEDE or eko.one.pl could also work) steps works well on Chaos Calmer 15.05 or 15.05.1.

  1. You need to telnet 192.168.1.1 (OpenWrt Router) and set up a password using passwd You can skip this if you already have a password and can connect using ssh.
@braian87b
braian87b / sqm-openwrt-lede.sh
Created July 11, 2017 12:55
Enable SQM for OpenWRT / LEDE
Important: you should use values at around 95% of speedtest or 85% of ISP advertised speed.
# using luci:
opkg update; opkg install luci-app-sqm
# without luci:
opkg update
opkg install sqm-scripts