┻━┻ ︵ヽ(`Д´)ノ︵ ┻━┻
Dynamic Routing-table updater (DRU)
Example of reference.json
{
"tableName": "direct",
"adapter": [
"enp1s0f0",
"enp1s0f1"
]
}
tableName will be the table name the program will use to direct routes and rules against
adapter will be the interfaces you will split out from the main routing table
When you or the service starts up DRU,
it will prepare the required data.
After the data has been loaded, it will be ready to start. All this occurs within the init call.
When DRU gets the start call, it will do the following:
- Remove old DRU tables (based on the Table name passed)
- Find all occupied table ids
- Filter out occupied
- Define table id and name for all network adapters added
- Write the newly filtered and appended routing table
After DRU has started, and processed the routing table, it will start up DRUHook.
This is a sub component of DRU, which is intended to watch the network interfaces assigned to DRU and perform routing changes on them.
If you want to test DRU out, you can do the following
from DynamicRoutingUpdater import DynamicRoutingUpdater
service = DynamicRoutingUpdater()
service.dryrun()
NOTE! This WILL do modifications to your routing table!
This will also change and modify your current routes, and WILL NOT BE RESTORED!
Usually a reboot is enough to get it recreated, as the code does not include persistance
How to install
Dependencies
net-tools
To install and start DRU
- Clone the project
- Modify reference.json
./install.sh
Make sure that you run the script with sudo or as root, as the script needs access.
Or you can do the following:
curl -sSL -o install.sh https://raw.githubusercontent.com/iktdev-no/DynamicRoutingUpdater/master/install.sh && sudo bash install.sh
This will request you to define table name and select interface thrould selection.
A copy of your routing table will exist as:
/etc/iproute2/rt_tables.bak
Metadata
Release files for pyDynamicRoutingUpdater 0.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pydynamicroutingupdater-0.0.12.tar.gz | 24.2 kB | Without provenance | Details for pydynamicroutingupdater-0.0.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydynamicroutingupdater-0.0.12-py3-none-any.whl | Python 3 | none | any | Details for pydynamicroutingupdater-0.0.12-py3-none-any.whl |
Total release size: 53.4 kB
Release files / pydynamicroutingupdater-0.0.12.tar.gz
| Download URL | pydynamicroutingupdater-0.0.12.tar.gz |
|---|---|
| Size | 24.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
963cc1b1ad1685fb27b63399543f6aed62944573957ab93bf103be3362df7c6d
|
|
BLAKE2b-256 checksum How to use checksums |
32dc6e3146dcc1fa811806bff8a908f7baf81b591cf3a03e95e3e267ee6b0394
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pydynamicroutingupdater-0.0.12-py3-none-any.whl
| Download URL | pydynamicroutingupdater-0.0.12-py3-none-any.whl |
|---|---|
| Size | 29.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76c229c52472da9c937eaad3a684d2dbf219e7c0b99cb27d7143348b6f5a5a08
|
|
BLAKE2b-256 checksum How to use checksums |
a838cdd9c382c169e9dabe0a2effea7918bf761be2deb60a472eae743d18bbb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for pyDynamicRoutingUpdater 0.0.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.