Changeset 170 for etherws/trunk
- Timestamp:
- 06/28/12 23:25:47 (12 years ago)
- Location:
- etherws/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
etherws/trunk/README.rst
r162 r170 7 7 ========== 8 8 For example, if you want to make virtual ethernet link for *VM1* and *VM2* 9 whose hypervisor's broadcast domains were splitby router *R*::9 whose hypervisor's broadcast domains were isolated by router *R*:: 10 10 11 11 +------------------+ +------------------+ … … 32 32 on *Hypervisor1*:: 33 33 34 # etherws server34 # etherws --device ethws0 server 35 35 # brctl addbr br0 36 36 # brctl addif br0 vnet0 … … 40 40 on *Hypervisor2*:: 41 41 42 # etherws client --uri ws://<Hypervisor1's IP address>/42 # etherws --device ethws0 client --uri ws://<Hypervisor1's IP address>/ 43 43 # brctl addbr br0 44 44 # brctl addif br0 vnet0 … … 61 61 ============= 62 62 etherws supports SSL/TLS connection. 63 If you want to encrypt t he tunnel, then you can use following options.63 If you want to encrypt tunnels, then you can use following options. 64 64 65 65 on *Hypervisor1*:: 66 66 67 # etherws server --keyfile ssl.key --certfile ssl.crt67 # etherws --device ethws0 server --keyfile ssl.key --certfile ssl.crt 68 68 69 69 *ssl.key* is a server private key, and *ssl.crt* is a server certificate. … … 75 75 on *Hypervisor2*:: 76 76 77 # etherws client --uri wss://<Hypervisor1's IP address>/ --cacerts ssl.crt77 # etherws --device ethws0 client --uri wss://<Hypervisor1's IP address>/ --cacerts ssl.crt 78 78 79 79 Here, URI scheme was just changed to *wss*, and CA certificate to verify … … 84 84 self-signed certificate and client uses another CA certificate. 85 85 86 If you want to just encrypt t he tunneland do not need to verify86 If you want to just encrypt tunnels and do not need to verify 87 87 certificate, then you can use following option:: 88 88 89 # etherws client --uri wss://<Hypervisor1's IP address>/ --insecure89 # etherws --device ethws0 client --uri wss://<Hypervisor1's IP address>/ --insecure 90 90 91 91 Note: see `<http://docs.python.org/library/ssl.html>`_ … … 108 108 To run server with this:: 109 109 110 # etherws server --htpasswd filename110 # etherws --device ethws0 server --htpasswd filename 111 111 112 112 You also can test by following command:: … … 120 120 option or stdin:: 121 121 122 # etherws client --uri ws://<address>/ --user username --passwd password123 # etherws client --uri ws://<address>/ --user username122 # etherws --device ethws0 client --uri ws://<address>/ --user username --passwd password 123 # etherws --device ethws0 client --uri ws://<address>/ --user username 124 124 Password: 125 125 … … 129 129 support, because it is insecure in itself. 130 130 131 Complex Examples 132 ================ 133 etherws has simple virtual Ethernet switch in itself and it can handle multiple 134 TAP interfaces or WebSocket connections as virtual switch port:: 135 136 (A)# etherws --device ethws0 --device ethws1 --device ethws2 server 137 (B)# etherws --device ethws0 server 138 (C)# etherws --device ethws0 --device ethws1 client --uri ws://x.x.x.x/ 139 (D)# etherws --device ethws0 client --uri ws://x.x.x.x/ --uri ws://y.y.y.y/ 140 141 This will create following network:: 142 143 (ethws0) (ethws1) (ethws2) (ethws0) 144 | | | | 145 +-----+--------+---------+-----+ +--------+--------+ 146 | server (A) | | server (B) | 147 | (ws://x.x.x.x/) | | (ws://y.y.y.y/) | 148 +-----+------------------+-----+ +-----+-----------+ 149 | | | 150 | (WebSocket) | +------------+ 151 | | | 152 +-------+------+ +-------+----+--+ 153 | client (C) | | client (D) | 154 +--+--------+--+ +-------+-------+ 155 | | | 156 (ethws0) (ethws1) (ethws0) 157 158 Also you can use TAP interface which is created by etherws as 802.1Q VLAN 159 interface using vconfig command and so on. 160 131 161 History 132 162 ======= 163 0.7 (2012-06-29 JST) 164 - switching support 165 - multiple ports support 166 133 167 0.6 (2012-06-16 JST) 134 168 - improve performance -
etherws/trunk/setup.py
r162 r170 37 37 setup( 38 38 name='etherws', 39 version='0. 6',39 version='0.7', 40 40 description='Ethernet over WebSocket tunneling server/client', 41 41 long_description=longdesc,
Note: See TracChangeset
for help on using the changeset viewer.