Firmware updates for TH100/TH200/TH300 set-top boxes are served from stb.xakcop.com:443. If this host is not reachable from your internal IPTV network, then you can setup a proxy update host:
+------------+ +--------------+ +--------------------+
| | | | | |
| TH100 STBs |<--------->| Proxy Update |<--------->| stb.xakcop.com:443 |
| | | Host | | |
+------------+ +--------------+ +--------------------+
Install nginx:
$ sudo apt install nginxAdd the following snippet to /etc/nginx/nginx.conf:
stream {
server {
listen 443;
proxy_pass 157.230.77.81:443;
ssl_preread on;
}
}Add stb.xakcop.com in your /etc/hosts file, so it resolves to the local IP address. For example if the IP address of the Proxy Update Host is 192.168.0.1, then you should have the following in /etc/hosts:
$ cat /etc/hosts
127.0.0.1 localhost
192.168.0.1 stb.xakcop.comRestart nginx:
$ sudo systemctl restart nginxVerify stb.xakcop.com is being resolved with the local IP:
$ ping stb.xakcop.com
PING stb.xakcop.com (192.168.0.1) 56(84) bytes of data.
64 bytes from stb.xakcop.com (192.168.0.1): icmp_seq=1 ttl=64 time=0.057 ms
64 bytes from stb.xakcop.com (192.168.0.1): icmp_seq=2 ttl=64 time=0.062 ms
^CVerify the command below returns an empty response without any errors:
$ curl https://stb.xakcop.comFinally, add a DNS record in your STB DNS server which maps stb.xakcop.com to the IP address of the Proxy Update Host.
If you want to serve DHCP, DNS and updates from the same host, then simply install and run dnsmasq with its default configuration.