https://github.com/euank/v6plus-tun
A shell script, but in rust, to perform "v6 plus" ipv4 tunnel setup using configuration derived with map-e
https://github.com/euank/v6plus-tun
Last synced: about 1 year ago
JSON representation
A shell script, but in rust, to perform "v6 plus" ipv4 tunnel setup using configuration derived with map-e
- Host: GitHub
- URL: https://github.com/euank/v6plus-tun
- Owner: euank
- License: mit
- Created: 2023-02-10T06:44:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-25T01:22:34.000Z (over 1 year ago)
- Last Synced: 2025-04-11T00:06:51.604Z (about 1 year ago)
- Language: Nix
- Size: 52.7 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## v6plus tun
Rust code to setup a "v6 plus" tunnel using the well-known-ish map-e values.
This is meant to work with the NTT hikari setup you'll encounter in large parts of Japan.
### Modes of operation
There are two modes of operation at the moment:
1. map-e calculator - identical to http://ipv4.web.fc2.com/map-e.html
This mode exists to validate that the map-e calculations match an existing known-to-work tool
2. ip tunnel creation - create the necessary linux interfaces and iptables rules to actually route ipv4 traffic
This mode just shells out to linux utilities to accomplish everything. It's a glorified bash script, but whatever
### Usage
```
WAN="" # eth0, enp0s1, something like that
ADDR="" # ipv6 address you were assigned
# Must be run as root
v6plus-tun setup-linux --wan $WAN $ADDR
```
### Future work
It's intended to eventually implement the full map-e and tunneling logic as a userspace daemon, but who knows if I'll ever get to that.
After all, linux tunnels work fine, why bother, right?
### License
MIT
Please note, the map-e calculator code is derived from javascript code with an
unclear license. The portions copied are pure math though, so probably not
copyrightable? Regardless, beware that copyright of that portion could be iffy.