I am trying to create what is essentially a home router with nmcli. I would like the client devices that connect to be on the same subnet regardless of whether they connect with ethernet or wifi. However when I create my wifi hotspot it creates its own subnet behind a nat. So the devices on the Ethernet are not able to access the devices that are connected via wifi.
The command I am using to create the wifi hotspot is
nmcli c add type wifi ifname wlan0 con-name test autoconnect no ssid test -- 802-11-wireless.mode ap ipv4.method shared 802-11-wireless.band bg 802-11-wireless.channel 6 802-11-wireless-security.key-mgmt wpa-psk 802-11-wireless-security.psk MyPassword
I have tried several things to get this working.
First i tried to switch the ipv4.method to auto, however this forces the connection to never start. Then I tried to create a bridge between Ethernet and the WiFi, however it looks like ap mode does not support bridges in Ubuntu. Everyone, seems to be setting up just a natted access point.
Does anyone have an idea how I can set up an access point that does not create its own nat and subnet?