To connect an external mqtt client (like MQTT.fx) to the mosquitto broker inside an Cisco LXCContainer/IOXClient.
- First enable the elevated mode in the Cisco router by typing "enable".
- Then we use the command "show ip int br" to see the configuration of the interfaces.
The external HOST ip (192.168.118.17) and the internal ip (192.168.1.1) which is used for the Guest Operating System (GOS) and the LXC Container.
- To see the different ip addresses used for the GOS and the LXC Container, we use the command "sho ip arp | inc 192.168.1.1".
Typically the first entry is the Cisco gateway itself, the second the GOS and the third the LXC Container.
Finally to access the internal network from the outside, we NAT the ip address of the LXC container to the internal network, via VLAN1 with the correct MQTT port (1883).
- Now we can connect to the MQTT broker with an external tool (MQTT.fx).