Hello, I've managed to create a tinc build for IPhone and IPod touch. Since the device does not support TUN interface, TUNEMU was used: http://code.gerade.org/tunemu/ Please find the patch in the attachment (to be used with tinc-1.0.9). The patch does the following: - updates src/Makefile.in & src/Makefile.am so required libraries are attached and tunemu.c is compiled - updates src/process.c and src/process.h (apparently there is a problem executing 'stat' on script files and therefore new function was added to check if a file exists) - updates src/bsd/device.c (added support for TUNEMU) Usage: 1) Copy tunemu.c and tunemu.h into src folder (files can be downloaded from http://code.gerade.org/tunemu/ ) 2) Apply provided patch 3) Run: ./configure --host arm-apple-darwin10.0.0d3 4) Run: make 5) Run: ldid -S src/tincd (required for signing application) 6) Run: make install Configuration: In tinc.conf: DeviceType = tunemu Device = /dev/null Interface = ppp0 The program was tested on IPod Touch with firmware 3.0. Thanks, Grzegorz Dymarek -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20090909/f1f755e1/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: tinc-iphone.patch Type: text/x-patch Size: 10310 bytes Desc: not available URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20090909/f1f755e1/attachment.bin>
This. Is. Awesome. If only i had an iphone... Nice work mate! -original message- Subject: tinc for iphone & ipod touch From: Grzegorz Dymarek <gregd72002 at googlemail.com> Date: 10/09/2009 03:15 Hello, I've managed to create a tinc build for IPhone and IPod touch. Since the device does not support TUN interface, TUNEMU was used: http://code.gerade.org/tunemu/ Please find the patch in the attachment (to be used with tinc-1.0.9). The patch does the following: - updates src/Makefile.in & src/Makefile.am so required libraries are attached and tunemu.c is compiled - updates src/process.c and src/process.h (apparently there is a problem executing 'stat' on script files and therefore new function was added to check if a file exists) - updates src/bsd/device.c (added support for TUNEMU) Usage: 1) Copy tunemu.c and tunemu.h into src folder (files can be downloaded from http://code.gerade.org/tunemu/ ) 2) Apply provided patch 3) Run: ./configure --host arm-apple-darwin10.0.0d3 4) Run: make 5) Run: ldid -S src/tincd (required for signing application) 6) Run: make install Configuration: In tinc.conf: DeviceType = tunemu Device = /dev/null Interface = ppp0 The program was tested on IPod Touch with firmware 3.0. Thanks, Grzegorz Dymarek _______________________________________________ tinc-devel mailing list tinc-devel at tinc-vpn.org http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc-devel <<tinc-iphone.patch>>
On Wed, Sep 09, 2009 at 10:45:03PM +0530, Grzegorz Dymarek wrote:> I've managed to create a tinc build for IPhone and IPod touch. Since the > device does not support TUN interface, TUNEMU was used: > http://code.gerade.org/tunemu/ > Please find the patch in the attachment (to be used with tinc-1.0.9).This code was merged with tinc in 1.0.10. However, I just saw this message on the OpenVPN mailing list: On Sat, Jun 19, 2010 at 11:20:37AM +0530, Samir Kelekar wrote:> Please check out http://www.iopenvpn.com for > another solution (again hackerish) to run openvpn > on iphone. > > Here the default route is changed to go on the loopback, packets sent on the > loopback, then captured via a sniffer, > encrypted and sent. No need of a kernel driver > to be installed.There is code in tinc to sniff packets from an existing interface using a "raw socket". I have not tested this on BSD yet. After running ./configure, you can do this: ln -sf raw_socket/device.c src/device.c And then run make. You can then put "Interface = lo" in tinc-up, and it will then indeed pick up packets routed to the loopback device. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20100621/064b19f6/attachment.pgp>