https://github.com/keplerc/capsule-router
https://github.com/keplerc/capsule-router
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/keplerc/capsule-router
- Owner: KeplerC
- Created: 2020-08-22T03:58:08.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-03T05:09:43.000Z (almost 6 years ago)
- Last Synced: 2025-03-21T01:17:47.652Z (over 1 year ago)
- Language: Rust
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Capsule Router
A basic UDP router with Capsule framework. Now we are heading towards an implementation of GDP router(WIP). The current plan is
- [x] UDP Sending and Fowarding
- [x] Capsule integration
- [ ] KVS
- [ ] dTLS
The list continues to grow!
## Running the application
Building the capsule and sandbox environment by the official `Vagrant` [virtual machine](https://github.com/capsule-rs/sandbox/blob/master/Vagrantfile) and the `Docker` [sandbox](https://hub.docker.com/repository/docker/getcapsule/sandbox).
```
host$ git clone --recursive https://github.com/capsule-rs/sandbox.git
host$ cd sandbox
host$ vagrant up
```
Then we put our `capsule-router` in the subdirectory of capsule.
```
host$ cd sandbox/capsule
host$ git clone https://github.com/KeplerC/capsule-router
```
Then we modify `sandbox/capsule/Cargo.toml` by adding `capsule-router` to `members`.
After setting up the code environment, we enter the virtual machine and docker by
```
host$ vagrant ssh
vagrant$ docker run -it --rm --privileged --network=host --name sandbox --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v /lib/modules:/lib/modules -v /vagrant/capsule:/capsule -v /dev/hugepages:/dev/hugepages getcapsule/sandbox:19.11.1-1.43 /bin/bash
```
Finally, we run example by
```
cd capsule/capsule-router
cargo run -- -f capsule-router.toml
```