https://github.com/snwfdhmp/dapn
network
https://github.com/snwfdhmp/dapn
Last synced: 8 months ago
JSON representation
network
- Host: GitHub
- URL: https://github.com/snwfdhmp/dapn
- Owner: snwfdhmp
- Created: 2023-04-14T00:03:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-11T14:44:06.000Z (over 2 years ago)
- Last Synced: 2025-02-26T09:08:28.419Z (8 months ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DAPN: Decentralized Authenticated Private Network
## Usage
```
$ dapn bind [--local ] [--remote ]
if the user ip is known, dapn will use it
else dapn will broadcast a bind request to every connected user, if the user knows the targeted user, they will forward the bind request to the user
when the ip is known, dapn will connect to the user and send a bind request
if the user accepts the bind request, each user will assign an ip to the user and will start forwarding traffic from and to the user on all exposed ports from the exported port list
if the user rejects the bind request, dapn will exit with an error
$ dapn unbind
dapn will notify user that their is no longer bound
dapn will disconnect from the user and will stop forwarding traffic from and to the user as well as stop assigning an ip to the user on all exposed ports from the exported port list
$ dapn expose
dapn will add port to the list of exposed ports
$ dapn bound
dapn will list all bound users
$ dapn exposed
dapn will list all exposed ports
```