Viewing 1 reply thread
  • Author
    Posts
    • #13811
      Michel Castaño
      Keymaster

      Linux

      1. Connect Syrus4g via USB to the PC with LINUX OS

      2. In your PC, identify the IP address and interface assigned to the USB connection. For example:

      <code>Ifconfig
      usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
      inet 192.168.9.50  netmask 255.255.255.0  broadcast 192.168.9.255
      inet6 fe80::791b:bc82:1f5d:c63a  prefixlen 64  scopeid 0x20<link>
      ether da:3b:c9:51:96:cb  txqueuelen 1000  (Ethernet)
      RX packets 188  bytes 51296 (51.2 KB)
      RX errors 0  dropped 0  overruns 0  frame 0
      TX packets 241  bytes 59179 (59.1 KB)
      TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

      wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
      inet 192.168.2.11  netmask 255.255.255.0  broadcast 192.168.2.255
      inet6 fe80::190:2e87:a66d:9fbb  prefixlen 64  scopeid 0x20<link>
      ether a4:b1:c1:73:2d:1e  txqueuelen 1000  (Ethernet)
      RX packets 170684  bytes 193228511 (193.2 MB)
      RX errors 0  dropped 0  overruns 0  frame 0
      TX packets 55026  bytes 23602955 (23.6 MB)
      TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0</code>

      Here usb0 is the interface created when connecting the syrus4 device, wlo1 is the interface with internet access

      3. Redirect the usb0 traffic to the interface with internet access wlo1
      iptables –flush
      echo 1 > /proc/sys/net/ipv4/ip_forward
      sysctl -w net.ipv4.ip_forward=1 > /dev/null
      sudo iptables –table nat –append POSTROUTING –out-interface wlo1 -j MASQUERADE
      sudo iptables –append FORWARD –in-interface usb0 -j ACCEPT

      4. In your device, add the new gateway
      sudo apx-system set –default-gw=192.168.9.50

      5. In your device test the internet connection
      ping -I usb0 http://www.google.com

      Windows

      1. Connect Syrus4g via USB to the PC with Windows OS
      2. Go to Control Panel -> Network Connections -> Network and Sharing Center and in the left side pick Network Adapters

      Select the Adapter associated to the Syrus -> right click -> properties -> in the list select internet protocol version 4 -> click on properties and set the following data:

      IP : 192.168.9.1
      Mask : 255.255.255.0
      DNS : 8.8.8.8

       

      4. After this in the adapters window select the origin network adapter -> right click -> properties -> upside select the shared use tap and mark all options available.
      If a list appears downside asking for the local network to share, choose the syrus4g adapter.

      5. The last step is configure the network route in the syrus4g, to do this execute the following command:

      sudo apx-system set –default-gw=192.168.9.1

       

    • #13812
      bigmatesupport
      Participant

      The linux commands are incorrectly formatted, using “–” instead of “-“. This caused syntax errors. Also note the interface may need to change depending on your pc’s interface names. The gateway ip address specified in step 4 is the ip of the interface specified in the 4th command in step 3.

      • #13814
        bigmatesupport
        Participant

        Also, each time the syrus device reboots, the “sudo apx-system set –default-gw=192.168.9.xxx” command needs to be entered, changing the last octect digit in the IP. This is because the IP changes with each reboot, in addition to this setting being wiped.

        Further, when attempting this on a syrus 4G device to update the apex os version using both the management tool and the syrus cloud, it did not work. Support provided the following commands:

        apx-core install apx-key
        apx-key –update

        apx-os-update start -f -p https://syrus4.dctserver.com/apex/releases/apex-lite-23.10.1

        After this, the update worked. Note, the version you need to download may be newer than this in the future.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.