i have a raspberry pi 3b+ that i want to convert in a 5ghz AP that also host a samba server and works as a router, the problem is that i can't get the router and gateway working, the idea is that i connect a switch to eth1(part of Lan network with the AP) and the eth0(which is gigabit full duplex, good for streaming to my main pc) is the wan port, i should not be able to connect to the interface or ssh from, for example, my friends router network, but when connected to the AP or the switch i must be able to connect the raspberry pi(the one running openwrt) over ssh and Luci, i want the subnet of the Lan to be something like 169.42.0.255 and the gateway be 169.42.0.1. the main idea is that i carry this with me and when i want a samba server i can just plug power into the pi, and the pi assign ips to the clients in the eth1 and AP networks,(yes i want this to work even without internet) and when, for example, i am at a friends' house with 5ghz connection i can wipe my raspberry pi, connect it to the router and have a 5ghz network isolated from my friends' network, i provided 2 files that might me of help to resolve this issue. i tried many different configuration without success, sorry that i am a bit of a Newey but i couldn't find tutorial that help me do this.
config defaults
option syn_flood '1'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
config zone
option name 'wan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
list network 'wan'
list network 'wan6'
list network 'Wan'
config forwarding
option src 'lan'
option dest 'wan'
config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-IGMP'
option src 'wan'
option proto 'igmp'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-DHCPv6'
option src 'wan'
option proto 'udp'
option dest_port '546'
option family 'ipv6'
option target 'ACCEPT'
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdb3:b6c0:6803::/48'
config device
option type 'bridge'
option name 'Br1'
option macaddr 'redacted'
option mtu '1500'
option txqueuelen '1000'
list ports 'eth1'
config interface 'lan'
option proto 'dhcp'
option device 'Br1'
option ipaddr '192.168.3.33'
option netmask '255.255.255.0'
option device 'br-lan'
config interface 'wan'
option proto 'dhcp'
option device 'eth0'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
list ports 'wlan0'