Connect Linnet Mosaic-X5 to the Internet via USB

1. Create the configuration file dhcpcd and add the following content:

sudo nano /etc/dhcpcd.conf

interface [interface usb visible avec la commande ip a] (example: enp0s20f0u3)

static ip_address=192.168.137.1/24

static routers=192.168.137.1

2. Create the dnsmasq configuration file and add the following content:

sudo nano /etc/dnsmasq.conf

interface= [interface usb visible avec la commande ip a] (example : enp0s20f0u3)

listen-address=192.168.137.1

bind-dynamic

server=8.8.8.8

domain-needed

bogus-priv

dhcp-range=192.168.137.50,192.168.137.53,12h

3. Enable ip forward

sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"

4. Set firewall rules

sudo firewall-cmd --zone=public --add-service=dns

sudo firewall-cmd --add-masquerade

sudo firewall-cmd --add-forward-port=port=4000:proto=tcp:toport=80:toaddr=192.168.137.52

5. Enable Mosaic Internet access by connecting to address 192.168.3.1

Outgoing Internet Access Over USB - Mode: on

6. Activate dhcp and dnsmasq

sudo systemctl start dhcp

sudo systemctl start dnsmasq

7. Access the card with ip 192.168.137.52 (or other depending on configuration).

The 192.168.3.1 address can no longer be used.

If you have any further questions or problems configuring Linnet Mosaic-X5, please reply to this post. We’ll be glad to help.

Systork Team

1 Like