oxen-io / lokinet

Lokinet is an anonymous, decentralized and IP based overlay network for the internet.
https://lokinet.org/
GNU General Public License v3.0
1.76k stars 220 forks source link

Selective usage of lokinet, via network namespaces or something else #1999

Open planetoryd opened 1 year ago

planetoryd commented 1 year ago

I haven't found an easy way of selective routing. Lokinet routes all the traffic through it which is unnecessary and exaggerated for daily use, while .loki sites can always be accessed without extra configuration/changing the routes.

Maybe lokinet should automatically configure a network namespace, if that is a good choice.

majestrate commented 1 year ago

i totally agree and this has been on my mental todo list for almost 3 years.

i think we can do multiple .loki addresses on one lokinet where you have one per user-ns. the user-ns would have a fully isolated net interface and dns server. this would be running in its own seperate process, this is where it gets complex.

the pending open questions: