Commit Graph

68 Commits

Author SHA1 Message Date
tigerbot 3e30137b36 fixed bug masked by changes I opted not to commit 2017-04-17 14:57:32 -06:00
tigerbot c1c18b71b0 added support for different port w/ different domains on same service 2017-04-03 17:56:28 -06:00
tigerbot b44fe740af move SNI to separate package for both client and server 2017-04-03 17:37:29 -06:00
tigerbot dcdc26068b Merge branch 'master' into client 2017-04-03 17:01:23 -06:00
tigerbot 3848be53bd tweaked behavior after local connection read 2017-04-03 15:51:44 -06:00
Henry Camacho fb5937dbe7 Completed rename to server. 2017-03-31 23:31:16 -05:00
Henry Camacho b956a160c9 Renamed generic listener to server 2017-03-31 23:21:30 -05:00
Henry Camacho 320afc53d2 Renaming to server. 2017-03-31 23:19:50 -05:00
tigerbot fbed26d94b changed client to retry after disconnect 2017-03-30 18:20:44 -06:00
tigerbot c80c87c667 changed the routine structure of the client 2017-03-30 18:20:37 -06:00
tigerbot 99676ef4bf made it easier to send multiple messages with the same header 2017-03-30 13:28:00 -06:00
tigerbot 663caa5cc7 first commit of client
hard coded values and fairly limited error handling
2017-03-29 18:29:03 -06:00
Henry Camacho 824a587eae Adding support for config path and config file 2017-03-27 16:09:25 -05:00
Henry Camacho a528352e28 Added support for LumberJack logging and —log argument like caddy
- I don’t think the way I am doing logging is correct, however it was the only way I could figure to get the package level customizations and flags I wanted while leveraging lumberjack.
- altered tunnel end point interface to AJ’s specification in issue #18
- added an InitLogging function package level, that is called by main to init.
2017-03-26 17:33:40 -05:00
Henry Camacho 2623741ef2 Added Missing Domain 2017-03-25 20:43:31 -05:00
Henry Camacho a72bbc63e4 Updated to support load balanced API Rest
- system collects all the domains, servers, and stats. /domains
- added support for a WSS state, displays on the UI
- moved all server related domain structures to ServerDomain* etc. to avoid collision with Domains
- create new Domains structure to handle Domains, Domain, Servers and Traffic at each level.
- updated initial lastUpate to the connection time rather than 0 which gave a silly duration.
- added properties for DomainTrack (Requests and Responses)
2017-03-25 20:33:09 -05:00
Henry Camacho 41adbfaef5 ServerName is now 1st domain in token. Awaiting new token structure for true ServerName. 2017-03-25 17:22:28 -05:00
Henry Camacho 0e1f99c8da Round Robin Load Balancing feature enabled
- the system implements a rough round robin also.
- members that are removed, do not remove preserving order.
- this many skew RR slightly, the small trade of with a non-order slice removal
- fixed issue with reaper, would not reap connections that had closed based on write failure
- reduced well to 120 seconds.
- place holder for other LB ALGO’s like least-connections.
- at this time no support for heath checks.
2017-03-25 15:01:57 -05:00
Henry Camacho 55e49fb966 Merge branch 'admin' of git.daplie.com:Daplie/go-rvpn-server into admin
# Conflicts:
#	rvpn/genericlistener/conn_wedge.go
2017-03-24 17:50:55 -05:00
Henry Camacho 1701b1acb0 Back and running 2017-03-24 17:45:54 -05:00
tigerbot 0a7ef4c601 fixed bug with peeking I introduced during the cleanup 2017-03-23 17:57:43 -06:00
Henry Camacho 12c8275326 Admin Status 2017-03-23 18:10:49 -05:00
Henry Camacho 2233e08ca1 Put the 1 char peek back in. With TLS byte awaiting aren’t valid, however they are valid with non-tis. 2017-03-23 18:02:38 -05:00
tigerbot c7b6a4a000 changed GetState and State to State and SetState
https://golang.org/doc/effective_go.html#Getters
2017-03-22 17:45:47 -06:00
tigerbot 9acf50c2ff simplified mutex handling and defer statements 2017-03-22 16:53:12 -06:00
tigerbot 92f951544b simplified some function inputs and returns 2017-03-22 16:53:12 -06:00
tigerbot 87a1d9c0ae cleaned up a few import statements 2017-03-22 16:53:12 -06:00
tigerbot f163b4ec7d rewrote how packing/unpacking is handled 2017-03-22 16:53:12 -06:00
tigerbot 8fb732e3b8 cleaned up a few of the packer functions 2017-03-22 16:53:12 -06:00
tigerbot ce512ece34 removed empty packages and files 2017-03-22 16:53:12 -06:00
Henry Camacho ba67cebb29 Several Considerations for Load Balancing, Collection of Bulk ServerStatus
- added a number of global status collections
- this requires wedging into things..
- removing direct address to come functions putting them though serverStatus
2017-03-19 19:04:47 -05:00
Henry Camacho 057ec00f82 Connection Track Read/Write Map issue, implemented mutex around the map. 2017-03-19 09:57:28 -05:00
Henry Camacho 4696ec4ec2 Added support for default load balancer method. 2017-03-19 09:56:33 -05:00
Henry Camacho 860580c7c8 Updated to include selectable domain statistics.
- added support for decent duration display
- added support for byte count display (k/m/g/, etc)
- added detail selector, you can watch n number of connections and refresh while keeping them open.
- refresh button
2017-03-18 14:28:54 -05:00
Henry Camacho 129e7df710 Got admin SPA up and displaying basic structure, H5BP, Bootstrap, Angular 2017-03-14 19:26:01 -05:00
Henry Camacho b85e7e3f24 Starting connections, we may not need this. 2017-03-13 20:29:35 -05:00
Henry Camacho f2082baf74 Removed — replaced by api_collect_domains 2017-03-13 20:29:05 -05:00
Henry Camacho 3d5d272736 Adding support for Domain and Domains 2017-03-13 20:22:44 -05:00
Henry Camacho dd7d63baf6 API Rest Interface answers to servers and server/{id}
- built envelope based on AJ spec, self standing package with transaction ID increment and unix time stamps
- fixed servers end point
- created server/{id} end point
- created rest mappings for GET
2017-03-13 16:46:11 -05:00
Henry Camacho b88817e4d1 Committing API code, and clean up. 2017-03-13 11:43:28 -05:00
Henry Camacho 74591fd150 Added support for YAML configuration file
- implemented viper module in code.
- removed all the older configuration, not sure if we want to use flags or just the configuration files.
- added support for dwell, idle and cancelceck timers
- generic binding is now an int passing to the generic manager.
- passing dwell, and idle directly to connection table.
- adjusted all dead time structures, the system supports a map(string)interface{} of various dead time counters
- this version also supports variable sized buffers for each request by using the bufio.reader
- we peek all, and then pass everything down the channel we have.
- I am wondering if this will be a problem is someone just starts pouring data down never ending.
- direct support now for terminating domains
- there is a domain for admin, and wss.  Each shared the external address listener (testing 9999)

Additions
- added support for Discard for wedge connections
- added support for ReadByte to wedge conn
2017-03-11 14:28:49 -06:00
Henry Camacho 2fc5cf5e69 SNI Detection working, sets ‘HTTPS’ for packer for external connections 2017-03-11 08:28:04 -06:00
Henry Camacho 5334649fba got non-terminating traffic identified, and used SNI to figure direction 2017-03-10 23:36:42 -06:00
Henry Camacho f3bb9cb584 Implemented domain tracking for external connections
- system now tracks both in and out bytes
- various clean up.
2017-03-09 21:38:23 -06:00
Henry Camacho d7e01e8b40 Adjusted to remove excessive packages.
Moved XLATE into generic listener.
2017-03-07 19:34:16 -06:00
Henry Camacho b11f6c54bc Implemented Docker Container Testing.
- a few other minor fixes.
- removed RVPNMAIN
- there is a bunch of other clean up I want to do…
2017-03-04 12:18:08 -06:00
Henry Camacho 0eb136db75 Updated documentation 2017-03-02 21:32:53 -06:00
Henry Camacho 8f2e4f58c0 Working version of RVPN
- got too cute with the package names, needed to bring everything into one package, except for packer.
- system is passing traffic now, ran a load test generating 1000 connections, seems ok.
- removed a lot of message logging since traffic is passing.
2017-03-02 18:47:59 -06:00
Henry Camacho 98da3d491c Debugging, return traffic is coming back, unpacker build
- it does not look like the client is limiting the amount of traffic coming in, and it does not look like it is chunking.
- need to know the max chunk.
- increased to 64K
- unpacker code v1
- fixed packer logging.
2017-03-01 21:02:20 -06:00
Henry Camacho 493477179b Added support for a Listener Manager
- I anticipated having to bring up new listeners as tunnel-clients connect allowing different port use for a single domain
- completed the code, however did not see any port information coming back from WSS client.
- opened an issue with AJ.
- all listeners are now dynamically generated.  The run method takes an initial port, once functioning, the runner send down the channel a registration for the initial port.
2017-02-26 17:27:38 -06:00