SiriProxy icon indicating copy to clipboard operation
SiriProxy copied to clipboard

SiriProxy network settings for LAN / WAN access

Open rsaeks opened this issue 14 years ago • 23 comments

I've been able to get everything working after a bit of time with a 4S providing the auth tokens and a 4 working through the proxy to use Siri. I used fopina's SiriProxy to get this going.

The 4S is setup with the only change being using an specific DNS server redirecting guzzoni.apple.com (this config is working fine)

The 4, however, with Spire, only seems to function when I'm using the DNS server redirect and setting the server to guzzoni.apple.com. If I switch things around a bit, use DNS provided by DHCP and specify my SiriProxy server IP within Spire, I can not use Siri. To get this to work, do I need to do a different way of generating the certs than siriproxy gencerts? I'm guessing the siriproxy gencerts command generates certs for guzzoni.apple.com that are installed on my proxy.

Any help would be great!

rsaeks avatar Dec 30 '11 06:12 rsaeks

You need to edit /etc/hosts to direct traffic requesting guzzoni.apple.com to go to your proxy. Then set https://guzzoni.apple.com in Spire. Dont change DNS on the iPhone 4

EDIT: The only way you could set this up to use your proxy IP in Spire settings would be to create a certificate with two common names (guzzoni.apple.com and your proxy ip/hostname)

earlcochran avatar Dec 30 '11 07:12 earlcochran

How do you create a ca with two common names

delrio1110 avatar Dec 30 '11 14:12 delrio1110

@delrio see this comment: https://github.com/plamoni/SiriProxy/issues/222#issuecomment-3301224

On Dec 30, 2011, at 8:02 AM, delrio1110 wrote:

How do you create a ca with two common names


Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/230#issuecomment-3313345

earlcochran avatar Dec 30 '11 14:12 earlcochran

mathoddk could you send me an example copy of your com.apple.assisant.plst? [email protected]

delrio1110 avatar Dec 30 '11 16:12 delrio1110

@delrio1110 http://methoddk.com/siriguide/images/plist.png

On Dec 30, 2011, at 10:11 AM, delrio1110 wrote:

mathoddk could you send me an example copy of your com.apple.assisant.plst? [email protected]


Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/230#issuecomment-3314459

earlcochran avatar Dec 30 '11 16:12 earlcochran

mathoddk what is your email. i would like to email you what my file looks like because mine doesnt look like that

delrio1110 avatar Dec 30 '11 16:12 delrio1110

@delrio1110 you need to edit it to look like that. If you are on OSX, you can open the plist. If you are on Windows, you need to google for a plist editor.

Open it up and add the items in there that yours doesn't have.

On Dec 30, 2011, at 10:28 AM, delrio1110 wrote:

mathoddk what is your email. i would like to email you what my file looks like because mine doesnt look like that


Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/230#issuecomment-3314591

earlcochran avatar Dec 30 '11 16:12 earlcochran

Are u using spire?

On Dec 30, 2011, at 11:33 AM, [email protected] wrote:

@delrio1110 you need to edit it to look like that. If you are on OSX, you can open the plist. If you are on Windows, you need to google for a plist editor.

Open it up and add the items in there that yours doesn't have.

On Dec 30, 2011, at 10:28 AM, delrio1110 wrote:

mathoddk what is your email. i would like to email you what my file looks like because mine doesnt look like that


Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/230#issuecomment-3314591


Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/230#issuecomment-3314648

delrio1110 avatar Dec 30 '11 16:12 delrio1110

Yes.

On Dec 30, 2011, at 10:34 AM, delrio1110 wrote:

Are u using spire?

On Dec 30, 2011, at 11:33 AM, [email protected] wrote:

@delrio1110 you need to edit it to look like that. If you are on OSX, you can open the plist. If you are on Windows, you need to google for a plist editor.

Open it up and add the items in there that yours doesn't have.

On Dec 30, 2011, at 10:28 AM, delrio1110 wrote:

mathoddk what is your email. i would like to email you what my file looks like because mine doesnt look like that


Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/230#issuecomment-3314591


Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/230#issuecomment-3314648


Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/230#issuecomment-3314657

earlcochran avatar Dec 30 '11 16:12 earlcochran

I've edited the /etc/hosts file and put in

192.168.2.50 guzzoni.apple.com

My 4 is set to use standard DNS. Spire is configured to use guzzoni.apple.com

I've restarted my phone, but the only way I'm able to use siri is when I redirect DNS via the iPhone to the SiriProxy server. For some reason, it seems as if the hosts file is not applying. Is there another location than /etc/hosts on the iphone?

rsaeks avatar Dec 30 '11 17:12 rsaeks

In Spire do you have https:// in front of guzzoni.apple.com? On Dec 30, 2011, at 11:37 AM, rsaeks wrote:

I've edited the /etc/hosts file and put in

192.168.2.50 guzzoni.apple.com

My 4 is set to use standard DNS. Spire is configured to use guzzoni.apple.com

I've restarted my phone, but the only way I'm able to use siri is when I redirect DNS via the iPhone to the SiriProxy server. For some reason, it seems as if the hosts file is not applying. Is there another location than /etc/hosts on the iphone?


Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/230#issuecomment-3315273

earlcochran avatar Dec 30 '11 17:12 earlcochran

Yup. The configuration is the same as far as Spire and my /etc/hosts file goes between the two configurations. The only difference right now is pointing one setup to my SpireProxy for DNS and the second of pointing to my router for DNS.

Ideally, and as it should work, the DNS server I'm pointing to should be irrelevant once there is an entry for guzzoni.apple.com in /etc/hosts. Which there is.

rsaeks avatar Dec 30 '11 17:12 rsaeks

The 4S will always need the DNS entry to stay connecting. The 4 can use any DNS it wants because of host file. are you getting any output in SiriProxy when trying to use the 4 on normal DNS?

On Dec 30, 2011, at 11:59 AM, rsaeks wrote:

Yup. The configuration is the same as far as Spire and my /etc/hosts file goes between the two configurations. The only difference right now is pointing one setup to my SpireProxy for DNS and the second of pointing to my router for DNS.

Ideally, and as it should work, the DNS server I'm pointing to should be irrelevant once there is an entry for guzzoni.apple.com in /etc/hosts. Which there is.


Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/230#issuecomment-3315479

earlcochran avatar Dec 30 '11 18:12 earlcochran

I wasn't getting any output before, but now I've got that resolved. My router is providing the DNS via dnsmasq for guzzoni.apple.com. That way the 4S or 4 on the network will go to SiriProxy. The machine running SiriProxy, in turn, is setup using an external DNS so it relays traffic properly.

Since I'm using a DDNS service and the proxy address will need to change, would I have to go through the dual trust CN cert process so my SiriProxy server responds requests for either guzzoni.apple.com and my DDNS hostname?

rsaeks avatar Dec 30 '11 20:12 rsaeks

You don't need a dual CN cert. Use the cert that is created with siriproxy gencerts on both devices. Then edit /etc/hosts on the non-4S device to point requests for guzzoni to your server. (example: your.ddns.here.com guzzoni.apple.com) Set Spire to point to https://guzzoni.apple.com

On Dec 30, 2011, at 2:30 PM, rsaeks wrote:

I wasn't getting any output before, but now I've got that resolved. My router is providing the DNS via dnsmasq for guzzoni.apple.com. That way the 4S or 4 on the network will go to SiriProxy. The machine running SiriProxy, in turn, is setup using an external DNS so it relays traffic properly.

Since I'm using a DDNS service and the proxy address will need to change, would I have to go through the dual trust CN cert process so my SiriProxy server responds requests for either guzzoni.apple.com and my DDNS hostname?


Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/230#issuecomment-3316828

earlcochran avatar Dec 30 '11 20:12 earlcochran

Thanks methoddk I got it working on both the 4s and 4 externally and internally. The only problem is when I use the 4s the use the 4 with in 2 minutes apart it crashes as if the proxy isn't switching between the two.

delrio1110 avatar Dec 30 '11 20:12 delrio1110

This is an issue because both devices are using the same authorization data.

On Dec 30, 2011, at 2:55 PM, delrio1110 wrote:

Thanks methoddk I got it working on both the 4s and 4 externally and internally. The only problem is when I use the 4s the use the 4 with in 2 minutes apart it crashes as if the proxy isn't switching between the two.


Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/230#issuecomment-3317120

earlcochran avatar Dec 30 '11 20:12 earlcochran

Is there a work around?

On Dec 30, 2011, at 3:57 PM, [email protected] wrote:

This is an issue because both devices are using the same authorization data.

On Dec 30, 2011, at 2:55 PM, delrio1110 wrote:

Thanks methoddk I got it working on both the 4s and 4 externally and internally. The only problem is when I use the 4s the use the 4 with in 2 minutes apart it crashes as if the proxy isn't switching between the two.


Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/230#issuecomment-3317120


Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/230#issuecomment-3317144

delrio1110 avatar Dec 30 '11 20:12 delrio1110

It looks to be something with /etc/hosts not applying on the 4 for some reason. When I'm on the data network and initiate a connection ti Siri, SiriProxy shows no activity. As soon as I switch Spire to use my DDNS name, SiriProxy shows activity, but obviously fails.

I can, however, setup a VPN connection through my router, connect the iPhone to VPN, then use Siri on the data network connected to my LAN.

/etc/hosts is ownership is root:wheel 744 and looks like this:

127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost myddnsserver-domain guzzoni.apple.com

Anything glaring that is off with that?

rsaeks avatar Dec 31 '11 00:12 rsaeks

I got mine work on wan by creating a ca with two common names.

On Dec 30, 2011, at 7:20 PM, [email protected] wrote:

It looks to be something with /etc/hosts not applying on the 4 for some reason. When I'm on the data network and initiate a connection ti Siri, SiriProxy shows no activity. As soon as I switch Spire to use my DDNS name, SiriProxy shows activity, but obviously fails.

I can, however, setup a VPN connection through my router, connect the iPhone to VPN, then use Siri on the data network connected to my LAN.

/etc/hosts is ownership is root:wheel 744 and looks like this:

127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost myddnsserver-domain guzzoni.apple.com

Anything glaring that is off with that?


Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/230#issuecomment-3318624

delrio1110 avatar Dec 31 '11 01:12 delrio1110