[CentOS] ipforwarding -- routing

Fri Apr 16 20:36:58 UTC 2021
R C <cjvijf at gmail.com>

Hello,


I have an accesspoint, that I connected to one ethernetport, the ap has 
ip 192.168.67.6, the port 192.168.67.1

I want to forward/route traffic for anything in 192.168.66.0 to go to 
that access point, and from the ap to the other port.


What is the best way to do that?   I tried:


sudo sysctl -w net.ipv4.ip_forward=1

sudo firewall-cmd --direct --add-rule ipv4 filter FORWARD 0 -o eno1 -i 
enp0s20u4u1 -j ACCEPT
sudo firewall-cmd --direct --add-rule ipv4 filter FORWARD 0 -o 
enp0s20u4u1 -i eno1 -j ACCEPT


but that doesn't seem to work.


thanks,


Ron