Slightly strange request, I have a Sonos system and want to intercept and modify the HTTP API traffic. So volume control done via the Sonos app will control my amp via IP (I understand that the normal way is to just turn the amp volume quite high and manage the volume via Sonos, but this is [H] after all
)
I had a poke around the Sonos API and seems fairly straight forward. Also controlling my amp via IP was easy enough. So no problems there.
My problem is with actually intercepting the traffic and routing it through my application (probably NodeJS based) then pushing it out to the Sonos client. I have a pfSense router setup which I'm assuming could handle this if configured correctly, with this in mind my rough plan is:
So any pointers on how I can configure pfSense to do this, or what the correct technical name for this is so I can Google it
I had a poke around the Sonos API and seems fairly straight forward. Also controlling my amp via IP was easy enough. So no problems there.
My problem is with actually intercepting the traffic and routing it through my application (probably NodeJS based) then pushing it out to the Sonos client. I have a pfSense router setup which I'm assuming could handle this if configured correctly, with this in mind my rough plan is:
- Sonos iPhone app sends HTTP request
- pfSense routes request to application hosted on a VM (only port 5005, would need to pass the original URL requested along too)
- Application reads request
- Application forwards on non volume based requests
- If application detects volume request, sends out calculated volume to amp
So any pointers on how I can configure pfSense to do this, or what the correct technical name for this is so I can Google it