Hi everyone !
I am new to the OpenWRT world (and thus, the forum) and I am in love with it...
But I found something very puzzling.
I would like to allow a specific device in my network "LAN1" (firewall zone "LAN1") to connect to a specific device in my network "LAN2" (firewall zone "LAN2").
So I set up a firewall traffic rule to do that. But it did not work.
Trying to debug, I simplified things up to the point where I found this:
If I have this configuration :
config defaults
option synflood_protect '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan1'
list network 'lan1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan2'
list network 'lan2'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config rule
option name 'test-rule'
option src 'lan1'
option dest 'lan2'
option target 'ACCEPT'
It does NOT work (my device on LAN1 cannot ping device en LAN2).
But if I do that :
config defaults
option synflood_protect '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan1'
list network 'lan1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan2'
list network 'lan2'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config forwarding
option src 'lan1'
option dest 'lan2'
It works.
Of course, this is not what I want because in this case any device on lan1 can reach any device on lan2.
What is even weirder : if I set up a traffic rule to reject traffic from lan1 to lan2, I can still do the ping.
What I am not understanding here ?
Thanks for your help !