<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>chandraonline.net Comments</title>
	<link>http://chandraonline.net/blog</link>
	<description>chandra's personal and professional weblog</description>
	<pubDate>Tue, 07 Sep 2010 20:51:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.1.3</generator>

	<item>
		<title>by: Kodaxy</title>
		<link>http://chandraonline.net/blog/?p=22#comment-82416</link>
		<pubDate>Sun, 29 Aug 2010 10:45:29 +0000</pubDate>
		<guid>http://chandraonline.net/blog/?p=22#comment-82416</guid>
					<description>Hi!
I have the same problem as Chandra and Diabi with DNS resolution.
I tried to install bind on the iPhone and did some tests connected in VPN such as ping or nslookup, both didn't work.
Then I make my own /etc/resolv.conf with OpenDNS servers, disabled update-resolv-conf on iPhone and commented push &quot;dhcp-option DNS on the server side.
I'm now able to use nslookup correctly all domains in VPN but the ping didn't work again...

Marcs-iPhone:/var/mobile/Library/OpenVpn root# nslookup apple.com
Server:         208.67.222.222
Address:        208.67.222.222#53

Non-authoritative answer:
Name:   apple.com
Address: 17.251.200.70
Name:   apple.com
Address: 17.112.152.57
Name:   apple.com
Address: 17.149.160.49

Marcs-iPhone:/var/mobile/Library/OpenVpn root# ping apple.com
ping: unknown host

It's a stange problem, with nslookup I can communicate with OpenDNS servers et take infos but with ping or in Safari I can't resolve names...

I hope this test can help us to fix it.</description>
		<content:encoded><![CDATA[	<p>Hi!<br />
I have the same problem as Chandra and Diabi with DNS resolution.<br />
I tried to install bind on the iPhone and did some tests connected in VPN such as ping or nslookup, both didn&#8217;t work.<br />
Then I make my own /etc/resolv.conf with OpenDNS servers, disabled update-resolv-conf on iPhone and commented push &#8220;dhcp-option DNS on the server side.<br />
I&#8217;m now able to use nslookup correctly all domains in VPN but the ping didn&#8217;t work again&#8230;</p>
	<p>Marcs-iPhone:/var/mobile/Library/OpenVpn root# nslookup apple.com<br />
Server:         208.67.222.222<br />
Address:        208.67.222.222#53</p>
	<p>Non-authoritative answer:<br />
Name:   apple.com<br />
Address: 17.251.200.70<br />
Name:   apple.com<br />
Address: 17.112.152.57<br />
Name:   apple.com<br />
Address: 17.149.160.49</p>
	<p>Marcs-iPhone:/var/mobile/Library/OpenVpn root# ping apple.com<br />
ping: unknown host</p>
	<p>It&#8217;s a stange problem, with nslookup I can communicate with OpenDNS servers et take infos but with ping or in Safari I can&#8217;t resolve names&#8230;</p>
	<p>I hope this test can help us to fix it.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: svengout</title>
		<link>http://chandraonline.net/blog/?p=22#comment-82406</link>
		<pubDate>Fri, 27 Aug 2010 10:12:58 +0000</pubDate>
		<guid>http://chandraonline.net/blog/?p=22#comment-82406</guid>
					<description>get get the update-resolv-conf.sh file to work.

dowloaded or copy past it from the ftp and than saved it as update-resolv-conf.sh

am i doing something wrong=

login as: root
root@192.168.1.103's password:
iPhone-van-sven:~ root# cd /var/mobile/Library
iPhone-van-sven:/var/mobile/Library root# chown -R mobile.mobile OpenVpn
iPhone-van-sven:/var/mobile/Library root# cd OpenVpn
iPhone-van-sven:/var/mobile/Library/OpenVpn root# chmod +x update-resolv-conf
chmod: cannot access `update-resolv-conf': No such file or directory
iPhone-van-sven:/var/mobile/Library/OpenVpn root#</description>
		<content:encoded><![CDATA[	<p>get get the update-resolv-conf.sh file to work.</p>
	<p>dowloaded or copy past it from the ftp and than saved it as update-resolv-conf.sh</p>
	<p>am i doing something wrong=</p>
	<p>login as: root<br />
<a href="mailto:root@192.168.1.103&#8217;s">root@192.168.1.103&#8217;s</a> password:<br />
iPhone-van-sven:~ root# cd /var/mobile/Library<br />
iPhone-van-sven:/var/mobile/Library root# chown -R mobile.mobile OpenVpn<br />
iPhone-van-sven:/var/mobile/Library root# cd OpenVpn<br />
iPhone-van-sven:/var/mobile/Library/OpenVpn root# chmod +x update-resolv-conf<br />
chmod: cannot access `update-resolv-conf&#8217;: No such file or directory<br />
iPhone-van-sven:/var/mobile/Library/OpenVpn root#
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Guizmo</title>
		<link>http://chandraonline.net/blog/?p=22#comment-82397</link>
		<pubDate>Wed, 25 Aug 2010 14:02:52 +0000</pubDate>
		<guid>http://chandraonline.net/blog/?p=22#comment-82397</guid>
					<description>Chandra : Can you send me your log (there is a button in the log page)</description>
		<content:encoded><![CDATA[	<p>Chandra : Can you send me your log (there is a button in the log page)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Chandra</title>
		<link>http://chandraonline.net/blog/?p=22#comment-82389</link>
		<pubDate>Mon, 23 Aug 2010 16:46:35 +0000</pubDate>
		<guid>http://chandraonline.net/blog/?p=22#comment-82389</guid>
					<description>Dabi: I have a similar problem in 4.0.1, I am unable to get DNS resolution working correctly. But I can connect to those servers using their IP address.

Guizmo: I gave guizmovpn a shot as well, it has similar problems. I can't get DNS resolution eventhough I see dhcp-option being received and the DNS being set. I am running out of the trial license , so I am not sure if I can troubleshoot more.  Have you tested it in 4.0.1?</description>
		<content:encoded><![CDATA[	<p>Dabi: I have a similar problem in 4.0.1, I am unable to get DNS resolution working correctly. But I can connect to those servers using their IP address.</p>
	<p>Guizmo: I gave guizmovpn a shot as well, it has similar problems. I can&#8217;t get DNS resolution eventhough I see dhcp-option being received and the DNS being set. I am running out of the trial license , so I am not sure if I can troubleshoot more.  Have you tested it in 4.0.1?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Dabi</title>
		<link>http://chandraonline.net/blog/?p=22#comment-82371</link>
		<pubDate>Wed, 18 Aug 2010 21:29:03 +0000</pubDate>
		<guid>http://chandraonline.net/blog/?p=22#comment-82371</guid>
					<description>I install iOS 4.0.1 and I had to install network-cmds to have ifconfig, one the vpn is up I can ssh in my vpn servers, but I cant use safary, (safary doesnt find the machine no dns resolution) and of course the machine is ok, because I can ssh via shell.  Any ideas?

Thanks</description>
		<content:encoded><![CDATA[	<p>I install iOS 4.0.1 and I had to install network-cmds to have ifconfig, one the vpn is up I can ssh in my vpn servers, but I cant use safary, (safary doesnt find the machine no dns resolution) and of course the machine is ok, because I can ssh via shell.  Any ideas?</p>
	<p>Thanks
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Steve</title>
		<link>http://chandraonline.net/blog/?p=22#comment-82364</link>
		<pubDate>Tue, 17 Aug 2010 14:24:43 +0000</pubDate>
		<guid>http://chandraonline.net/blog/?p=22#comment-82364</guid>
					<description>Hi Chandra

I made the toogle working perfect on iOS 3.1.3. Now I also installed it on iOS 4.0.1 and it's working like a charm.

Only one thing I mentioned which appeared on 3.1.3 same as now on 4.0.1:
After I used the toggle and reboot the phone, the toggle is deactivated.

F.e. like this:
&amp;#62; switch toggle on
&amp;#62; browse the web
&amp;#62; switch toggle off
&amp;#62; reboot phone
--&amp;#62; toggle is deactivated. I have to re-activate it first. Do you have any idea what's the problem in here?</description>
		<content:encoded><![CDATA[	<p>Hi Chandra</p>
	<p>I made the toogle working perfect on iOS 3.1.3. Now I also installed it on iOS 4.0.1 and it&#8217;s working like a charm.</p>
	<p>Only one thing I mentioned which appeared on 3.1.3 same as now on 4.0.1:<br />
After I used the toggle and reboot the phone, the toggle is deactivated.</p>
	<p>F.e. like this:<br />
&gt; switch toggle on<br />
&gt; browse the web<br />
&gt; switch toggle off<br />
&gt; reboot phone<br />
&#8211;&gt; toggle is deactivated. I have to re-activate it first. Do you have any idea what&#8217;s the problem in here?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Guizmo</title>
		<link>http://chandraonline.net/blog/?p=22#comment-82352</link>
		<pubDate>Fri, 13 Aug 2010 05:21:27 +0000</pubDate>
		<guid>http://chandraonline.net/blog/?p=22#comment-82352</guid>
					<description>A Cydia packet (network-cmds) seems to be missing.
If you want to have an easy to install/configure/use solution, please look at www.guizmovpn.com :)

Guizmo</description>
		<content:encoded><![CDATA[	<p>A Cydia packet (network-cmds) seems to be missing.<br />
If you want to have an easy to install/configure/use solution, please look at <a href='http://www.guizmovpn.com' rel='nofollow'>www.guizmovpn.com</a> <img src='http://chandraonline.net/blog/wp-images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
	<p>Guizmo
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: seen_xu</title>
		<link>http://chandraonline.net/blog/?p=22#comment-82350</link>
		<pubDate>Thu, 12 Aug 2010 21:49:01 +0000</pubDate>
		<guid>http://chandraonline.net/blog/?p=22#comment-82350</guid>
					<description>thx for the detailed instruction, it's really helpful, and I had tried it on my new iPad(3.2.1), the openvpn connection always ends up with the following error.

Thu Aug 12 23:23:40 2010 TUN/TAP device tunemu:/ppp0 opened
Thu Aug 12 23:23:40 2010 /sbin/ifconfig ppp0 delete
Thu Aug 12 23:23:40 2010 NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
Thu Aug 12 23:23:40 2010 /sbin/ifconfig ppp0 192.168.5.22 192.168.5.21 mtu 1500 netmask 255.255.255.255 up
Thu Aug 12 23:23:40 2010 Mac OS X ifconfig failed: could not execute external program
Thu Aug 12 23:23:40 2010 Exiting

I think the problem is not from my server or client config, because all these things work perfectly for my other computers, mac, linux and even windows. any other ideas?</description>
		<content:encoded><![CDATA[	<p>thx for the detailed instruction, it&#8217;s really helpful, and I had tried it on my new iPad(3.2.1), the openvpn connection always ends up with the following error.</p>
	<p>Thu Aug 12 23:23:40 2010 TUN/TAP device tunemu:/ppp0 opened<br />
Thu Aug 12 23:23:40 2010 /sbin/ifconfig ppp0 delete<br />
Thu Aug 12 23:23:40 2010 NOTE: Tried to delete pre-existing tun/tap instance &#8212; No Problem if failure<br />
Thu Aug 12 23:23:40 2010 /sbin/ifconfig ppp0 192.168.5.22 192.168.5.21 mtu 1500 netmask 255.255.255.255 up<br />
Thu Aug 12 23:23:40 2010 Mac OS X ifconfig failed: could not execute external program<br />
Thu Aug 12 23:23:40 2010 Exiting</p>
	<p>I think the problem is not from my server or client config, because all these things work perfectly for my other computers, mac, linux and even windows. any other ideas?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Guizmo</title>
		<link>http://chandraonline.net/blog/?p=22#comment-82333</link>
		<pubDate>Thu, 05 Aug 2010 23:13:42 +0000</pubDate>
		<guid>http://chandraonline.net/blog/?p=22#comment-82333</guid>
					<description>Hi,
If it doesn't go further than &quot;Thu Jul 22 17:44:41 2010 UDPv4 link remote: 80.179.114.160:1194&quot;, that mean you have a problem with your server or your firewall.
Another strange thing, the execution of your &quot;update-resolv-conf&quot; should only happen when the tunnel is active, in your case it happen before. Try to remove it.

Guizmo</description>
		<content:encoded><![CDATA[	<p>Hi,<br />
If it doesn&#8217;t go further than &#8220;Thu Jul 22 17:44:41 2010 UDPv4 link remote: 80.179.114.160:1194&#8243;, that mean you have a problem with your server or your firewall.<br />
Another strange thing, the execution of your &#8220;update-resolv-conf&#8221; should only happen when the tunnel is active, in your case it happen before. Try to remove it.</p>
	<p>Guizmo
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: damiankitai</title>
		<link>http://chandraonline.net/blog/?p=22#comment-82317</link>
		<pubDate>Thu, 22 Jul 2010 15:04:52 +0000</pubDate>
		<guid>http://chandraonline.net/blog/?p=22#comment-82317</guid>
					<description>Amazing!
I almost managed to get it working by my own. 
I use Terminal in OSX to ssh to the Ipod, and after all the procedures I get this:

Thu Jul 22 17:44:40 2010 OpenVPN 2.1_rc19_jfx arm-apple-darwin9 [SSL] [LZO2] built on Sep  3 2009
Thu Jul 22 17:44:40 2010 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Thu Jul 22 17:44:40 2010 LZO compression initialized
Thu Jul 22 17:44:40 2010 TUN/TAP device tunemu:/ppp0 opened
Thu Jul 22 17:44:40 2010 /var/mobile/Library/OpenVpn/update-resolv-conf ppp0 1500 1545   init
dns [] [] []
dom [] [] []
About to set DNS and Domain
add net 80.179.114.160: gateway 172.19.254.254
Thu Jul 22 17:44:41 2010 UDPv4 link local (bound): [undef]:1194
Thu Jul 22 17:44:41 2010 UDPv4 link remote: 80.179.114.160:1194

Everything seems ok, except that I don't actually connect to my network, I can't connect to my local resources behind the nat, and the server has no clue someone is connected. 

How do I troubleshoot it? Installed &quot;top&quot; as you recommend but I don't find it anywhere in the Ipod. 

If I keep the terminal window open and I open sbsettings in the Ipod, when I disconnect from the openvpn, I get:

Thu Jul 22 17:45:04 2010 event_wait : Interrupted system call (code=4)
delete net 80.179.114.160: gateway 172.19.254.254
Thu Jul 22 17:45:04 2010 /var/mobile/Library/OpenVpn/update-resolv-conf ppp0 1500 1545   init
Thu Jul 22 17:45:05 2010 SIGTERM[hard,] received, process exiting

that means the sbsetting toggle is indeed working right?

Or Maybe it's a server related problem? I usually use TAP to connect to my VPN, but I saw there is no support for TAP in the IOS, so I configured a second VpnServer in the router with TUN settings. Both run simultaneously right now but both use the same static key (I was to lazy to create a new one) :-)

Maybe that's the problem?  

Thanks. Amazing tutorial.</description>
		<content:encoded><![CDATA[	<p>Amazing!<br />
I almost managed to get it working by my own.<br />
I use Terminal in OSX to ssh to the Ipod, and after all the procedures I get this:</p>
	<p>Thu Jul 22 17:44:40 2010 OpenVPN 2.1_rc19_jfx arm-apple-darwin9 [SSL] [LZO2] built on Sep  3 2009<br />
Thu Jul 22 17:44:40 2010 NOTE: the current &#8211;script-security setting may allow this configuration to call user-defined scripts<br />
Thu Jul 22 17:44:40 2010 LZO compression initialized<br />
Thu Jul 22 17:44:40 2010 TUN/TAP device tunemu:/ppp0 opened<br />
Thu Jul 22 17:44:40 2010 /var/mobile/Library/OpenVpn/update-resolv-conf ppp0 1500 1545   init<br />
dns [] [] []<br />
dom [] [] []<br />
About to set DNS and Domain<br />
add net 80.179.114.160: gateway 172.19.254.254<br />
Thu Jul 22 17:44:41 2010 UDPv4 link local (bound): [undef]:1194<br />
Thu Jul 22 17:44:41 2010 UDPv4 link remote: 80.179.114.160:1194</p>
	<p>Everything seems ok, except that I don&#8217;t actually connect to my network, I can&#8217;t connect to my local resources behind the nat, and the server has no clue someone is connected. </p>
	<p>How do I troubleshoot it? Installed &#8220;top&#8221; as you recommend but I don&#8217;t find it anywhere in the Ipod. </p>
	<p>If I keep the terminal window open and I open sbsettings in the Ipod, when I disconnect from the openvpn, I get:</p>
	<p>Thu Jul 22 17:45:04 2010 event_wait : Interrupted system call (code=4)<br />
delete net 80.179.114.160: gateway 172.19.254.254<br />
Thu Jul 22 17:45:04 2010 /var/mobile/Library/OpenVpn/update-resolv-conf ppp0 1500 1545   init<br />
Thu Jul 22 17:45:05 2010 SIGTERM[hard,] received, process exiting</p>
	<p>that means the sbsetting toggle is indeed working right?</p>
	<p>Or Maybe it&#8217;s a server related problem? I usually use TAP to connect to my VPN, but I saw there is no support for TAP in the IOS, so I configured a second VpnServer in the router with TUN settings. Both run simultaneously right now but both use the same static key (I was to lazy to create a new one) <img src='http://chandraonline.net/blog/wp-images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
	<p>Maybe that&#8217;s the problem?  </p>
	<p>Thanks. Amazing tutorial.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
