[zeromq-dev] zmq based vpn

Benjamin Henrion zoobab at gmail.com
Fri Apr 17 09:34:23 CEST 2015


On Thursday, April 16, 2015, Jonas Thiem <jonasthiem at googlemail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Your lua is outdated, try lua 5.3 or at least lua 5.2.

Will do.

Meanwhile I made it to work with luajit, iy creates tun0 interfaces on both
machines, but cannot have ping working. I see the 2 zmq packets on the eth0
interface, meaning the ping is well encapsulated, but when I tshark on the
tun0, i see nothing. Will continue debugging today.


>
> On 04/16/2015 02:43 PM, Benjamin Henrion wrote:
>> On Wed, Apr 1, 2015 at 10:54 AM, Benjamin Henrion
>> <zoobab at gmail.com> wrote:
>>> Hi,
>>>
>>> Just found this github project written in lua which seems to
>>> encapsulate IP packets over ZMQ:
>>>
>>> https://github.com/Vger/simpletunnel
>>>
>>> I did not managed to make it work, maybe someone else can try it
>>> out?
>>
>> I hit an error while trying to run it, and I have a hard time to
>> understand what this test does, in particular what "bit operation"
>> means in zmq:
>>
>> ========================== local test_pollin do local s, bit =
>> pcall(require, "bit32") local POLLIN = zmq.POLLIN local EVENTS =
>> zmq.EVENTS if s then function test_pollin(zmqskt) return
>> bit.btest(zmqskt:getopt(EVENTS), POLLIN) end else s, bit =
>> pcall(require, "bit") if s then function test_pollin(zmqskt) return
>> bit.band(zmqskt:getopt(EVENTS), POLLIN) ~= 0 end else error("No bit
>> operations available") end end end ==========================
>>
>> When I run I have this error:
>>
>> # lua tunendpoint.lua lua:
>> /usr/lib64/lua/luarocks/share/lua/5.1/zmq/copas.lua:28: No bit
>> operations available stack traceback: [C]: in function 'error'
>> /usr/lib64/lua/luarocks/share/lua/5.1/zmq/copas.lua:28: in main
>> chunk [C]: in function 'require' tunendpoint.lua:17: in main chunk
>> [C]: ?
>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iQIcBAEBAgAGBQJVMDB+AAoJEBIDTbbx8YkeJkkP/jDZr+DOpDG3wgTaS6vwC9E9
> Fl06yt5Agh//UcW7zT9t6HXdwNKBGE/7qFFXivWcLKFzFDanxlaceKlq7Ic0W+xI
> 2vltGOSEIA7U03uNJDkhRZJvJRezsW13wOHFd6qvzEi7ZJTmsKclw7vCZXtALBDO
> XzoZqtF9lxRVz4Qp2flt4p0dbHKLuLrGz8AaL1e8RT7jPpO6pq/eCJRVvGaZB8C7
> QQxqwR0d3ym0hUiPqGIuTRbTmEDwWafmoppAX2wMPb32bdT/Mw4IqKzP8P/fLT5k
> XRBVGNm8MRUN6KqPVMjKBCl9kuvHm1jdW7LoNMAYHVqmPy+dGckMNplhJCa00Svm
> 5Bn+u+zLrVhcKpEk8W8qpoPJSuJVudbRSihZXqjEhpt8gWQMSoYAQ31Cd1KnUcDc
> 7uRgg1mWWcE7QIk3ETAoY8Qwtm2KYKUy4F/Rq931uRBJaveNyaWQBFWgniZWhesN
> H1HSGivIpJjPn106Eu+uMPStQETvbkQkYN1ijTIvWefOedXvw6vrpt2q4f6BQIe0
> 2Sd/3fff8zr00+sLhRyd1hyAmAnJCo1bVMnL4tKGf/DhNNJ1ruIIhr58obGdCKbS
> JgY+CGrBU4DL3MC/IbNDYQN9CzhyJ6+EwSqmaYuVg/NMLpzLGyUYgqN5sULnc7AM
> FOq6a6J18FN3h4vtl56A
> =3/Ow
> -----END PGP SIGNATURE-----
>

-- 
Benjamin Henrion <bhenrion at ffii.org>
FFII Brussels - +32-484-566109 - +32-2-4148403
"In July 2005, after several failed attempts to legalise software patents
in Europe, the patent establishment changed its strategy. Instead of
explicitly seeking to sanction the patentability of software, they are now
seeking to create a central European patent court, which would establish
and enforce patentability rules in their favor, without any possibility of
correction by competing courts or democratically elected legislators."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150417/567993f5/attachment.htm>


More information about the zeromq-dev mailing list