You are running a router firewall on your AP so, it would probably be expected to screw things up.
We need a different design entirely for an AP, one that mainly just does tagging on bridges maybe. I think it's out of scope for the moment, let's get a working router firewall.
Sorry, I should start from the beginning, I just set it as AP so my family can get access to wifi meanwhile..(The firewall is deactivated if its make sense)
I have the same behavior with the wan.20 and pppoe session in the openwrt router with nftables..
Yes!
Moved back to Openwrt as main router. So its like you said, vlan 20 with pppoe session:
The config is:
define wan = wan.20
define lan = br-lan
#define guest = eth0.10 # or remove these if you don't use guest or iot networks
#define iot = eth0.5 ## but be sure to also remove the reference to them below
I had additional issue: (I removed those lines, not sure if should do so, so I moved them back, the problem is that they prevent the loading of the script with the router restart)
root@OpenWrt:~# nft -f /etc/nftables.conf
/etc/nftables.conf:88:16-20: Error: unknown identifier 'guest'
iifname {$guest,$iot} oifname $lan drop ## guests can't connect to LAN
^^^^^
/etc/nftables.conf:89:21-25: Error: unknown identifier 'guest'
iifname {$lan,$guest,$iot} oifname $wan accept ## allow inside to forward to WAN
^^^^^
thanks. It worked. I can't alway test new code because this is mine main router. But if you have more code to test, Im willing to do that if i have time. (also routerperf)
@di_Niko , since you are running pppoe, I believe that your actual wan device is probably pppoe-wan or something similar. But we may need some rules to allow pppoe to establish over the wan.20 device.
Let's start with figuring out what your name of the pppoe device is and then add it as a set:
define wan = {wan.20, pppoe-wan}
See if that works. Also it might work if it's just pppoe-wan, not a set.
Oh also, in the lines where you have trouble , just remove the line matching iifname {$guest,$iot} and change the other line to just say iifname $lan
Working pretty good so far. Played a game of Cod Warzone and tagged every udp 3074 packet with cs7 just to see if it is working and everything seems fine:
tcpdump -i wan -w /tmp/capturesqmcakenftables.pcap
and you ?
i dont know how to use tee with nftables to capture it may not matter,
you play in wifi i guess
i has add the port cod like that
at the end of the the script
define gameports = {3074,3659,9308,30000-45000} ## or whatever....
udp dport $gameports ip dscp set cs5
udp dport $gameports ip6 dscp set cs5
udp sport $gameports ip dscp set cs5
udp sport $gameports ip6 dscp set cs5```
ok you captured with the same command i did then? except that you put br-lan like that for example? tcpdump -i br-lan -w /tmp/capturesqmcakenftableslan.pcap
and why is using CS7 higher priority than CS5 ???