How to configure a WLAN gateway

Revision as of 08:59, 29 May 2023 by Registered User (→‎Configure a wireless gateway)
Applicable for STM32MP13x lines, STM32MP15x lines


1. Configure a wireless gateway[edit source]

A wireless gateway routes packets from a wireless LAN to wired network (Ethernet)

Prerequisites For this example of configuration, the setup is :

  • wlan0: wireless interface connected to SSID_NETWORK with DHCP
  • eth0: ethernet interface with static IP which also have a DHCPserver on it
  • forward of packet are activated between the two network interfaces.

same procedure of How_to_setup_a_WLAN_connection#How_to_set_a_wireless_configuration_with_networkd }}

Just need to add this rule in 51-wireless.network file:

 cat /lib/systemd/network/51-wireless.network
 [Match]
 Name=wlan0
  
 [Network]
 DHCP=ipv4
 IPForward=ipv4
IPForward
permit to forward all network packet from wireless network to other network.