Access point with fx30 and talon iot card fail

maybe I was not clear enough. The LED I mentioned are the ones from the WiFi IoT cards not the FX30’s
I don’t do any legato development or modification whatsoever. I just used the default app available after i upgrade the FX30 without any modification.

Step by step process:
Assumptions:

  1. You upgrade to latest firmware R14.0.4.002
  2. You have a SIM card and you are able to establish a data connection (Configure Cell Modems - Legato Docs)

insert the WiFi IoT card
power-on the FX30
once you have access to the console via ssh on 192.168.2.2 send the following commands

wifi ap setsecurityproto 1
wifi ap setpassphrase secret123
wifi ap setssid EXAMPLESSID
wifi ap start
export ITF_LAN="wlan0"
export ITF_WAN="rmnet0"
export SUBNET="192.168.10.0/24"
export IP="192.168.10.1"
export IP_RANGE_START="192.168.10.10"
export IP_RANGE_END="192.168.10.20"
/mnt/legato/system/bin/cm data connect &
/sbin/ifconfig $ITF_LAN $IP up
killall dnsmasq
/usr/bin/dnsmasq --interface=${ITF_LAN} --dhcp-range=$IP_RANGE_START,$IP_RANGE_END,12h -d --bogus-priv &
echo 1 > /proc/sys/net/ipv4/ip_forward
modprobe ipt_MASQUERADE
/usr/sbin/iptables -I POSTROUTING -t nat -o ${ITF_WAN} -j MASQUERADE
/usr/sbin/iptables -I FORWARD --match state --state RELATED,ESTABLISHED --jump ACCEPT
/usr/sbin/iptables -I FORWARD -i ${ITF_LAN} --destination ${SUBNET} --match state --state NEW --jump ACCEPT
/usr/sbin/iptables -I INPUT -s ${SUBNET} --jump ACCEPT
/usr/sbin/iptables -I FORWARD -i ${ITF_WAN} --jump ACCEPT
/usr/sbin/iptables -I FORWARD -o ${ITF_WAN} --jump ACCEPT
/sbin/ifconfig $ITF_LAN $IP up

At this point, I’m able to connect a client to the AP and browse internet on the client

1 Like