GithubHelp home page GithubHelp logo

openwrt's Introduction

OpenWRT

tcp tunning and conntrack: generic helper won't handle protocol 47. fix

opkg install kmod-tcp-bbr kmod-nf-nathelper-extra

enable HTTPS on uhttpd

opkg update
opkg install luci-lib-px5g px5g-standalone libustream-openssl
/etc/init.d/uhttpd restart

DNS Recursive

opkg install stubby
cp stubby /etc/config/
cp stubby.yml /etc/stubby/
/etc/init.d/stubby enable
/etc/init.d/stubby restart

Force dhcp ( TP-Link powerline overwrite default GW on dhcp clients )

uci set dhcp.lan.force='1'
uci set dhcp.@dnsmasq[0].server='127.0.0.1#5353'
uci add_list dhcp.lan.dhcp_option='3,192.168.0.1'
uci add_list dhcp.lan.dhcp_option='6,192.168.0.1'
uci commit dhcp
/etc/init.d/dnsmasq restart
3 - gw
6 - DNS

all DNS queries to another server like pi-hole

/etc/firewall.user

iptables -t nat -A POSTROUTING -j MASQUERADE
iptables -t nat -I PREROUTING -i br-lan -p tcp --dport 53 -j DNAT --to 192.168.0.2:53
iptables -t nat -I PREROUTING -i br-lan -p udp --dport 53 -j DNAT --to 192.168.0.2:53
iptables -t nat -I PREROUTING -i br-lan -p tcp -s 192.168.0.2 --dport 53 -j ACCEPT
iptables -t nat -I PREROUTING -i br-lan -p udp -s 192.168.0.2 --dport 53 -j ACCEPT

upgrade all packages each file separately

#!/bin/sh
#
opkg update

upgrade_list="$(opkg list-upgradable | cut -f 1 -d ' ')"

if [ -n "$upgrade_list" ]; then
  for pkg in $upgrade_list; do
    echo "upgrade $pkg"
    opkg install $pkg
  done
fi

openwrt's People

Contributors

gulas2vladimir avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.