Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
zhifan huang
re6stnet
Commits
52a42554
Commit
52a42554
authored
Jul 31, 2012
by
Guillaume Bury
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix duplicate bootpeer bug
parent
8c4def4a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
16 deletions
+17
-16
README
README
+13
-11
TODO
TODO
+3
-3
re6st/db.py
re6st/db.py
+1
-2
No files found.
README
View file @
52a42554
...
...
@@ -2,26 +2,28 @@ re6stnet is a daemon setting up a resilient virtual private network over the
internet
HOW TO:
re6stnet
( sic ) has three separate components : a setup (setup.py
), a
server (re
gistry.py) and a client (re6stnet.py
.
re6stnet
has three separate components : a setup (re6stnet-conf
), a
server (re
6stnet-registry) and a client (re6stnet)
.
Lambda users only have to launch the setup and then their client.
The server is meant to be started once on a node which also will be running
a client instance.
The organisation of the code
vifibnet.py Just contain the main loop and the init
plib.py To launch server/client/routing processes
utils.py Small functions to do some useful job
db.py Function to manage peers
tunnel.py To choose wich connection delete/keep/...
upnpigd.py To open a port
re6stnet.py Client : Init and main loop
re6st/plib.py Launch server/client/routing processes
re6st/utils.py Small functions to do useful jobs
re6st/db.py Manage the peer database
re6st/tunnel.py Manage the tunnels
re6st/upnpigd.py Forward ports
re6st-conf.py Get certificates from server
re6st-registry.py Server : deliver certificates and distribute peers
Note: On certain version of python (e.g. 2.7.3~rc2-2.1 ) dns lookup is
performed for each request, and cause a delay in response.
To avoid this, one can either upgrade python, fix their resolv.conf or use
the fix at the end of this file.
OPTIONS : RE
GISTRY.P
Y
OPTIONS : RE
6ST-REGISTR
Y
usage : ./registry port [options...]
port
The port on which the server will listen
...
...
@@ -59,7 +61,7 @@ OPTIONS : REGISTRY.PY
--mailhost mailhost
Mailhost to be used to send email containing token for registration
OPTIONS :
SETUP.PY
OPTIONS :
RE6ST-SETUP
usage : ./setup [options...]
--server address
Ip address of the machine running the re6stnet server. Both ipv4
...
...
@@ -99,7 +101,7 @@ OPTIONS : SETUP.PY
not have any, an execption will occur, and the script will stop
OPTIONS : RES6NET
.PY
OPTIONS : RES6NET
usage : ./re6stnet.py [options...]
--ip address port proto
Specify connection information to be advertised to other nodes.
...
...
TODO
View file @
52a42554
...
...
@@ -3,8 +3,8 @@ To be done :
instead of pure randomness
number of routes / tunnel
( Write docstrings for all class/methods/functions )
README : move options doc elsewhere, make it look like a real readme
Use latency in babeld
Warn babeld about the tunnels wich are about to be deleted. Maybe we could just increase the cost.
Warn babeld about the tunnels wich are about to be deleted. Maybe we could just increase the cost.
re6st/db.py
View file @
52a42554
...
...
@@ -129,8 +129,7 @@ class PeerManager:
except
socket
.
error
:
pass
except
sqlite3
.
IntegrityError
,
e
:
import
pdb
;
pdb
.
set_trace
()
if
e
.
args
[
0
]
!=
''
:
if
e
.
args
[
0
]
!=
'column prefix is not unique'
:
raise
return
False
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment