Browse Source

make -m ntunnel work, and use that now that we've made ntunnel into

a proper package..
tags/v0.1.0
John-Mark Gurney 5 years ago
parent
commit
c47d74f353
2 changed files with 8 additions and 4 deletions
  1. +4
    -4
      README.md
  2. +4
    -0
      ntunnel/__main__.py

+ 4
- 4
README.md View File

@@ -12,8 +12,8 @@ Example


Generate the keys: Generate the keys:
``` ```
python ntunnel.py genkey serverkey
python ntunnel.py genkey clientkey
python -m ntunnel genkey serverkey
python -m ntunnel genkey clientkey
``` ```


Create the target for the pass through: Create the target for the pass through:
@@ -23,8 +23,8 @@ nc -lU finalsock


Start the server and client: Start the server and client:
``` ```
python ntunnel.py server serverkey unix:$(pwd)/servsock unix:$(pwd)/finalsock
python ntunnel.py client clientkey serverkey.pub unix:$(pwd)/clientsock unix:$(pwd)/servsock
python -m ntunnel server serverkey unix:$(pwd)/servsock unix:$(pwd)/finalsock
python -m ntunnel client clientkey serverkey.pub unix:$(pwd)/clientsock unix:$(pwd)/servsock
``` ```


Attach to the client: Attach to the client:


+ 4
- 0
ntunnel/__main__.py View File

@@ -0,0 +1,4 @@
from . import main

if __name__ == '__main__':
main()

Loading…
Cancel
Save