Skip to content

Instantly share code, notes, and snippets.

Avatar

braian87b

View GitHub Profile
View readme.ru.translation.md

The firmware is designed for installation on a single-disk network drive Western Digital 'MyBook Live'. It is built on the basis of the project LEDE (ex-OpenWRT): http://www.lede-project.org.

This version assumes that the installation is performed on a clean hard disk.

(!) ALL EXISTING DISK DATA WILL BE LOST (!)

To install, you need a computer with a Linux system installed, or bootable from an external media Linux system such as Live-CD, Live-USB, etc. The firmware is downloaded from github.com, the installation script uses the following utilities: sgdisk, mke2fs, lsblk.

@braian87b
braian87b / sqm-openwrt-lede.sh
Created Jul 11, 2017
Enable SQM for OpenWRT / LEDE
View sqm-openwrt-lede.sh
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
@braian87b
braian87b / openwrt-lede-openvpn-client.md
Last active Apr 2, 2021
Setting an OpenWrt / LEDE Based Router as OpenVPN Client
View openwrt-lede-openvpn-client.md

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 / floppy_disk_ripper.sh
Last active May 24, 2017
How to Setup an OpenWRT / LEDE box to rip Floppy Disks data
View floppy_disk_ripper.sh
# 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 / cliente-enrutado.sh
Last active Aug 7, 2017
Como configurar Cliente Enrutado para OpenWRT / LEDE
View cliente-enrutado.sh
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 / routed-client.sh
Last active Aug 7, 2017
How to setup Routed Client for OpenWRT / LEDE
View routed-client.sh
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 / dumb-ap-wired-link.sh
Last active Apr 6, 2021
How to setup a Dumb AP, Wired backbone for OpenWRT / LEDE
View dumb-ap-wired-link.sh
@braian87b
braian87b / wireless-link-wds.sh
Last active Mar 12, 2021
How to setup Wireless Links to avoid Wired backbone using WDS on Atheros for OpenWRT / LEDE
View wireless-link-wds.sh
@braian87b
braian87b / additional-vlan3-for-wan2.sh
Last active May 9, 2020
Additional VLAN 3 for WAN2 on tl-wr1043nd-v2, tl-wdr3600-v1 and tl-wdr4300-v1 OpenWRT / LEDE
View additional-vlan3-for-wan2.sh
# This is done by luci (it just sets defaults and assigns an ID to each vlan entry)
uci set network.@switch[0].mirror_source_port='0'
uci set network.@switch[0].mirror_monitor_port='0'
uci set network.@switch_vlan[0].vid='1'
uci set network.@switch_vlan[1].vid='2'
# For tl-wr1043nd-v2:
# Switch, LAN (on tl-wr1043nd-v2 we must enable tagging on CPU port 0)
uci set network.@switch_vlan[0].ports='0t 1 2 3 4' # previously '0 1 2 3 4'
# Switch, WAN
@braian87b
braian87b / relayd-igmpproxy.sh
Last active Mar 12, 2021
How to setup Client Bridged / Client Mode / RelayD and IGMPProxy for OpenWRT / LEDE
View relayd-igmpproxy.sh
# Client Bridged / Client Mode / RelayD and IGMPProxy (It works)
# RelayD is to redirect packages and IGMP is for redirect IGMP packages
# Our network is 192.168.1.0/24
# Steps:
# Configure WAN as static
# We should edit our wan iface and put static IP
uci set network.wan='interface'
uci set network.wan.proto='static'
uci set network.wan.ipaddr='192.168.1.239' # Main Network IP