public inbox for govpn-devel@lists.cypherpunks.ru
Atom feed
From: stargrave@stargrave•org
To: Alan Holt <berber.it@gmail•com>
Cc: govpn-devel@lists.cypherpunks.ru
Subject: Re: [Govpn-devel] build from last tarball
Date: Wed, 13 May 2015 14:41:40 +0300	[thread overview]
Message-ID: <20150513114140.GB8522@stargrave.org> (raw)
In-Reply-To: <CAKw30nrXP1EDP+Ae94nSNMG=+X3ROnsZtoJthyKQSpX9BiLG-w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1812 bytes --]

*** Alan Holt [2015-05-13 14:03]:
>but when I start the *client*, I see this error:
>root@farengeit:~/govpn# ./govpn-client -key key.txt -id CLIENTID -iface
>tap10 -remote 172.25.60.62:1194 -mtu 1472
>panic: ID is not specified

Well, when writing documentation I assumed that CLIENTID will be
substituted with the real one, created with utils/newclient.sh.
I have updated documentation on http://www.cypherpunks.ru/govpn/Example-usage.html
Hope it is more understandable now. peers-directory is some kind of
database on the server. It contains client's identities, their
verifiers, up/down-scripts. New client is created using
utils/newclient.sh script on the server. On the client side you must
generate so-called verifier and save it on the server.

>What is it client id? How do I specify this?

Technically is just a random 128-bit string, 32 hex characters. It is
generated conveniently with utils/newclient.sh.

>Another question, like this, why it need this: echo "echo tap10" >>
>peers/CLIENTID/up.sh ?
>So I created directory peers/CLIENTID on server and file up.sh with tap10
>
>but I don't really understand why server needs it.

Well, again, utils/newclient.sh creates CLIENTID (32 hex chars)
directory and dummy empty up.sh script. After client is connected,
server requires to know to what TAP-interface it must be attached. up.sh
script tells this by writing its name to stdout. There can be many
various setups where each client can be bind to specified interface
(various networks), or maybe each time new TAP-interface is generated
and added to the bridge network. All those setups are fully configurable
manuall with up.sh and GoVPN's server needs to know only what TAP
interface is must use after client is connected.

-- 
Happy hacking, Sergey Matveev

[-- Attachment #2: Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2015-05-13 11:42 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-13  7:59 [Govpn-devel] build from last tarball Alan Holt
2015-05-13  8:47 ` stargrave
2015-05-13  9:00   ` Alan Holt
2015-05-13  9:36     ` stargrave
2015-05-13 10:01       ` Alan Holt
2015-05-13 10:14         ` stargrave
2015-05-13 10:52           ` Alan Holt
2015-05-13 11:41             ` stargrave [this message]
2015-05-13 13:31               ` Alan Holt
2015-05-13 13:47                 ` Alan Holt
2015-05-13 14:09                   ` stargrave
2015-05-13 14:55                     ` Alan Holt
2015-05-13 16:52                       ` stargrave
2015-05-14  8:30                         ` Alan Holt
2015-05-14  9:22                           ` Alan Holt
2015-05-14 12:34                             ` stargrave
2015-05-14 13:25                           ` stargrave
2015-05-14 13:32                             ` Alan Holt
2015-05-14 14:11                               ` stargrave
2016-01-19 19:04                                 ` Alan Holt
2016-01-19 22:08                                   ` stargrave
2016-01-19 22:58                                     ` Alan Holt
2016-01-20  7:53                                       ` stargrave
2016-01-21  9:43                                       ` stargrave
2016-01-28 10:26                                         ` Alan Holt
2016-01-28 10:46                                           ` stargrave
2016-01-28 13:39                                             ` Alan Holt
2016-01-28 14:20                                               ` stargrave
2015-05-13 14:06                 ` stargrave