Install Tinc in iPhone / iPad.
Ramses II
ramses.sevilla at gmail.com
Wed May 15 22:06:24 CEST 2013
Hi Mike,
Very thanks by to compile and put it in your web.
I have downloaded it and installed in my iPhone.
It appear that all is correct, but I can't do Ping to the IP Address of my ppp0 interface.
I execute the following command:
/usr/sbin/tincd -d2 --logfile=/var/log/tinc.log
If we see the log, all appear that is correct:
---------------------------------
iPhone4:/ root# cat /var/log/tinc.log
2013-05-15 21:21:25 tinc[31239]: tincd 1.0.21 (May 5 2013 10:47:52) starting, debug level 2
2013-05-15 21:21:25 tinc[31239]: /dev/null is a BSD tunemu device
2013-05-15 21:21:25 tinc[31239]: Executing script tinc-up
2013-05-15 21:21:25 tinc[31239]: Listening on 0.0.0.0 port 655
2013-05-15 21:21:25 tinc[31239]: Listening on :: port 655
2013-05-15 21:21:25 tinc[31239]: Ready
2013-05-15 21:21:25 tinc[31239]: Trying to connect to Central (178.x.x.x port 80)
2013-05-15 21:21:25 tinc[31239]: Connected to Central (178.x.x.x port 80)
2013-05-15 21:21:26 tinc[31239]: Connection with Central (178.x.x.x port 80) activated
iPhone4:/ root#
---------------------------------
If we see the interfaces:
---------------------------------
iPhone4:/ root# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
ap1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
ether 32:9a:dd:25:44:5f
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 12:9a:dd:25:44:60
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.200.5 netmask 0xffffff00 broadcast 192.168.200.255
ether 10:9a:dd:25:44:5f
pdp_ip0: flags=8011<UP,POINTOPOINT,MULTICAST> mtu 1450
inet 10.214.248.221 --> 10.214.248.221 netmask 0xffffffff
pdp_ip1: flags=8011<UP,POINTOPOINT,MULTICAST> mtu 1024
pdp_ip2: flags=8011<UP,POINTOPOINT,MULTICAST> mtu 1024
pdp_ip3: flags=8011<UP,POINTOPOINT,MULTICAST> mtu 1024
ppp0: flags=8011<UP,POINTOPOINT,MULTICAST> mtu 1500
inet 192.168.250.253 --> 192.168.250.253 netmask 0xffffffff
iPhone4:/ root#
---------------------------------
We see that the interface ppp0 has the IP Address 192.168.250.253/32, but when I try to do Ping to this IP, don't works.
---------------------------------
iPhone4:/ root# ping 192.168.250.253
PING 192.168.250.253 (192.168.250.253): 56 data bytes
64 bytes from 192.168.250.253: Network Unknown
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 00 0054 3ac2 0 0000 40 01 2241 192.168.250.253 192.168.250.253
64 bytes from 192.168.250.253: Network Unknown
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 00 0054 38ca 0 0000 40 01 2439 192.168.250.253 192.168.250.253
64 bytes from 192.168.250.253: Network Unknown
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 00 0054 5abd 0 0000 40 01 0246 192.168.250.253 192.168.250.253
64 bytes from 192.168.250.253: Network Unknown
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 00 0054 3f81 0 0000 40 01 1d82 192.168.250.253 192.168.250.253
--- 192.168.250.253 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
iPhone4:/ root#
---------------------------------
In the routing table appears:
---------------------------------
iPhone4:/ root # netstat -r
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
.
.
192.168.200.254 link#4 UHLW 1 2 en0
192.168.200.255 link#4 UHLWb 1 2 en0
192.168.250 192.168.250.253 UGSc 1 0 ppp0
192.168.250.253 192.168.250.253 UH 2 12 ppp0
---------------------------------
The configuration is as follow:
---------------------------------
tinc.conf
---------------------------------
#Para el iPhone:
Name = Sede_253
#Mode = switch
DeviceType = tunemu
Device = /dev/null
Interface = ppp0
ConnectTo = Central
---------------------------------
tinc-up
---------------------------------
#!/bin/sh
#Para el iPhone
ifconfig $INTERFACE 192.168.250.253 192.168.250.253 netmask 255.255.255.255
route add -net 192.168.250.0 192.168.250.253
---------------------------------
Any idea about why not work?
Best regards,
Ramsés
More information about the tinc
mailing list