I just tried, the dumbap conversion seems good (no error with commands) but now i can't connect to the OpenVPN server.
The ip of the ropouter changed (from 192.168.4.24 to .22), the provider's router detect it as DumbAP1 so i redone the forwarding but i'm getting a server timeout when trying to connect to OpenVPN.
And now i can't even see the openwrt on my network, unreachable via IP or anything.... And a tracert 8.8.8.8 isn't showing the openwrt.
I suspect the gateway is wrong, but post here the output of these to verify: uci export network; uci export wireless; uci export firewall; uci export dhcp
Take it step by step. First make the router dumbAP and after it is done properly you can make the modifications to add the vpn server.
For the latter you'll need to assign the OpenVPN tun interface in LAN firewall zone, add masquerade so the traffic from VPN uses the router IP, and restart firewall.
In step 3 remove wan zone from firewall and wan interface.
Assign a static IP in lan interface or change protocol to dhcp.
Follow the rest of the instructions in the guide and when it is time to install VPN server touch base with us.
You are missing the part of the lan ip address in the 192.168.4.x/24, GW 192.168.4.1, NS 192.168.4.1 (or dhcp client)
It is at the beginning of step 1.
Yes, install vpn server and get back here.
You can keep the cable connected to a lan port all the time. Or connect by wifi. At the end of step 1 that you change the IP address, you need to change the IP on your PC that configures the router too. Otherwise you'll lose connectivity. If you select dhcp client, then you'll connect wan port of your router to the lan of your provider, in order for the router and your pc to get the new IP.
If you don't feel so comfortable with uci commands, it is perfectly fine to use the web interface too.
it's something to do on the openwrt or not because the openwrt already has a static ip adress given by my provider's router ?
If yes do you have teh uci commands for that ?
for the second part of your message i think i didn't explain correctly :
Here is the actual physic port configuration on the openwrt.
WAN port : directly connected to a LAN port of my provider's router
LAN1 : connected to my main computer
LAN2 : connected to nothing but will be connected to my nintendo switch or a freenas server (temporarly)
I want to know if i have to move the cable plugged on the WAN port to the LAN2 in order to have a LAN-LAN connection between the 2 routers.
From your previous post with the configs the wan interface takes settings from the isp router by dhcp and lan has static 192.168.1.1/24. After you delete the wan interface, the lan interface must either be dhcp client or configure static ip in 192.168.4.x/24 space.
The line
uci set network.@switch_vlan[0].ports='1 2 3 6t'
is assigning the wan port to the lan vlan so the router acts like a switch. So you won't need to move the cable.
Most likely because you didn't add subnet mask, gateway and dns for the lan interface.
Isn't Luci working for you? It would be much faster and you can always inspect the uci changes before you commit them.
It's because luci is super slow for no reason i always get à timeout (when loading the interface not the Web page itself), it takes arround 5-10min To load a Page but i'll Wait on my next Attempt tomorrow To do it via luci.