All the details are here forum.openwrt.org/t/route-each-lan-port-through-a-separate-vpn/166549
Openwrt Define DNS servers with dhcp option 6
In this forum example, it is used for VPN forum.openwrt.org/t/wireguard-vpn-not-working/166385/14
In another forum example a custom gateway is defined for a specific host for testing. forum.openwrt.org/t/conditional-dhcp/70441/8
The main docs has more examples openwrt.org/docs/guide-user/base-system/dhcp_configuration
In another forum example a custom gateway is defined for a specific host for testing. forum.openwrt.org/t/conditional-dhcp/70441/8
The main docs has more examples openwrt.org/docs/guide-user/base-system/dhcp_configuration
nlbwmon
simple conntrack based monitoring
github.com/jow-/nlbwmon
github.com/jow-/nlbwmon
OpenWrt script udhcpc.user to track WAN IP change
OpenWRT Change WAN MAC Address on reboot
Use the macchanger command in a script in /etc/init.d
more… forum.openwrt.org/t/how-to-randomize-the-wan-mac-address-on-each-reboot/151791/11
more… forum.openwrt.org/t/how-to-randomize-the-wan-mac-address-on-each-reboot/151791/11
Use hardware button to dump troubleshooting info
A keen idea. If you lose access to your router. Have a script pre-configured to run on push of button. Script outputs troubleshoot data to local directory for later review. Idea could be expanded. How would you do it?
forum.openwrt.org/t/debug-general-information/164586
forum.openwrt.org/t/debug-general-information/164586
Openwrt orderred interface restart
Something like this 0 5 * * * [ $(ifstatus wan | jsonfilter -e ‘@.uptime’) -lt 3650 ] || (ubus call network.interface.henet down;ubus call network.interface.wan down;sleep 1;ubus call network.interface.wan up;sleep 15;ubus call network.interface.henet up)
From forum.openwrt.org/t/abuse-warning-on-update-ddns-or-tunnel/163023/13
From forum.openwrt.org/t/abuse-warning-on-update-ddns-or-tunnel/163023/13
OpenWRT Wireguard routing trick
Here is a smashing trick. Routing problems can arise if Wireguard replace default route when up, then when it is down you may not have a default route.
So, Have your default route for 0.0.0.0/0
And then Wireguard routes split the full IP space in two. You have two routes that are more specific. That way when wireguard is up, the wireguard routes take preferences. When down, default route works.
uci set network.@wireguard_wgclient[0].route_allowed_ips=”0″ uci -q delete network.@wireguard_wgclient[0].allowed_ips uci add_list network.@wireguard_wgclient[0].allowed_ips=”0.0.0.0/1″ uci add_list network.@wireguard_wgclient[0].allowed_ips=”128.0.0.0/1″
Discuss it here forum.openwrt.org/t/help-config-wireguard-client/69132/13
So, Have your default route for 0.0.0.0/0
And then Wireguard routes split the full IP space in two. You have two routes that are more specific. That way when wireguard is up, the wireguard routes take preferences. When down, default route works.
uci set network.@wireguard_wgclient[0].route_allowed_ips=”0″ uci -q delete network.@wireguard_wgclient[0].allowed_ips uci add_list network.@wireguard_wgclient[0].allowed_ips=”0.0.0.0/1″ uci add_list network.@wireguard_wgclient[0].allowed_ips=”128.0.0.0/1″
Discuss it here forum.openwrt.org/t/help-config-wireguard-client/69132/13
Smart Routing, separate proxies on docker
A talented user posted the solution
forum.openwrt.org/t/usung-smart-routing-for-browsers-in-lan-and-on-mobile/162009
forum.openwrt.org/t/usung-smart-routing-for-browsers-in-lan-and-on-mobile/162009
Use FW Rule to Exempt one host from default route to VPN
Add a rule in the firewall config file.
See it on the forums forum.openwrt.org/t/using-openwrt-vpn-with-cable-only/163610/6
See it on the forums forum.openwrt.org/t/using-openwrt-vpn-with-cable-only/163610/6