rcplay / snake-os

Automatically exported from code.google.com/p/snake-os
1 stars 0 forks source link

Can someone compile iodined binary to work with snake-os? #306

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, I want to put the snake-os as a dns tunnel server, but I don't know how to 
compile a binary to work with it, so please can someone do it for me? The 
source code for this tunnel server is in this link http://code.kryo.se/iodine/

Regards,

Original issue reported on code.google.com by Alex.Fuk...@gmail.com on 25 Jun 2012 at 4:46

GoogleCodeExporter commented 8 years ago
Hi, I compiled the code using the snakeos-sdk:
./arm-linux-gcc *.c -o iodine -lz -L.

But I can't run the binary, because the snakeos don't have open_tun module... 
;-(
I attached binaries (client and server) below, so if someone can compile the 
kernel with open_tun module, please upload here.

Regards,

Original comment by Alex.Fuk...@gmail.com on 26 Jun 2012 at 1:31

Attachments:

GoogleCodeExporter commented 8 years ago
I added the tun module to the extramodules package:
http://code.google.com/p/snake-os/downloads/detail?name=extramodules-2.6.16-2.op
k

You can either load the module by entering "tun" in services->extramodules or 
with "/opt/bin/extramodprobe tun"

You still have to recreate the tun device node after every reboot. This should 
do it:
mkdir /dev/net/
mknod /dev/net/tun c 10 200

If you are just just interested in the module itself. It's attached.

Your binaries didn't work for me, the attached ones seem to work (I didn't test 
it beyond starting the server though).

They were compiled with:
PATH=<path-to-snake>/tools/arm-uclibc-3.4.6/bin/:$PATH make CC=arm-linux-gcc

Original comment by stefansc...@googlemail.com on 27 Jun 2012 at 3:45

Attachments:

GoogleCodeExporter commented 8 years ago
stefanscheffler thanks for you reply, I installed you module file (tun.ko) in 
my snake-os, ran your iodine binaries and all appear to works, to avoid having 
to recreate the tun device node after every reboot I created a script that 
create this node and execute the iodined server.

So thanks for your help =) 

Original comment by Alex.Fuk...@gmail.com on 27 Jun 2012 at 11:25