Quote from: giqcass on December 05, 2013, 12:41:31 AM
Does the 302 do anything the 202 doesn't?
After XMPP dies I had considered spoofing the DNS on my network so my Obi points to a custom XMPP server instead of Googles. Then I can see if there is anything cool I can do with it.
I think the '302 is normally cheaper than the '202 but it appears to me to be the same hardware with different firmware. (It does not have GV support.) The rest of the functionality I cared about appears the same, so if there is no GV I'm buying the cheapest option.
Instead of spoofing DNS it is a lot more reliable to intercept and redirect the port (5222 or sometimes 5223) it uses to talk to GV. If using a Linux router between the OBi and the 'net then a rule like this causes that router to "capture" all 5222 traffic to its own 5222:
iptables -A PREROUTING -i eth0 -p tcp -m tcp --dport 5222 -j REDIRECT --to-ports 5222
I do this for smtp, ntp, dns and some other traffic coming from my home lan.
The advantage of the DNS approach is you do not have to route all traffic, just point the OBi's DNS to your own DNS server. The disadvantage is a firmware change can easily change the hostname they use or they might simply hard code an IP address. Either might already be in the firmware as a backup and could be used at any time. When you intercept the port(s) they will always end up talking to you.