mirror of
https://gitlab.com/dm38/padavan-ng.git
synced 2024-02-13 08:34:03 +08:00
c093f4a6588183b80a8f30f585cc4376e16a108c

When configuring a system with multiple network uplinks and default routes, it is often convenient to reference a routing table multiple times - but reject its routing decision if certain constraints are not met by it. Consider this setup: $ ip route add table secuplink default via 10.42.23.1 $ ip rule add pref 100 table main suppress_prefixlength 0 $ ip rule add pref 150 fwmark 0xA table secuplink With this setup, packets marked 0xA will be processed by the additional routing table "secuplink", but only if no suitable route in the main routing table can be found. By suppressing entries with a prefixlength of 0 (or less), the default route (/0) of the table "main" is hidden to packets processed by rule 100; packets traveling to destinations via more specific routes are processed as usual. It is also possible to suppress a routing entry if a device belonging to a specific interface group is to be used: $ ip rule add pref 150 table main suppress_group 1 Signed-off-by: Stefan Tomanek <stefan.tomanek@wertarbyte.de>
README
Welcome to the rt-n56u project
This project aims to improve the rt-n56u and other supported devices on the software part, allowing power user to take full control over their hardware. This project was created in hope to be useful, but comes without warranty or support. Installing it will probably void your warranty. Contributors of this project are not responsible for what happens next.
How do I get set up?
- Get the tools to build the system or Download pre-built system image
- Feed the device with the system image file (Follow instructions of updating your current system)
- Perform factory reset
- Open web browser on http://my.router to configure the services
Contribution guidelines
- To be completed
P.S. Original project author is Padavan. Old repository here: rt-n56u project
Description
Languages
C
86.5%
HTML
2.7%
Makefile
2.1%
C++
1.8%
Shell
1.8%
Other
4.6%