In my adsl modem/router i have put a static route: 10.0.0.0/8, Gateway: 192.168.0.251, LAN.
In Router_A i have put a rule chain=src-nat , src-address=192.168.0.0/24 action=masquarade.
So, i can ping the wlan1 of Router_B from My_PC.
Router_B cannot ping My_PC, but if i put a static route 192.168.0.0/24 Gateway: 10.229.4.253 then it can.
Also, if i give internet to Router_A with static route 0.0.0.0/0 Gateway: 192.168.0.1 and then add a static route in Router_B 0.0.0.0/0 Gateway: 10.229.4.253 the Router_B has internet access from my modem/router.
So, i want to have access in Router_B (and the entire 10.0.0.0/8 network) from my lan 192.168.0.0/24, but i want Router_B (and the entire 10.0.0.0/8 network) not to be able to have access in my private Lan 192.168.0.0/24 and no internet access with static routes.
What should i do for these 2?
I add a new Filter Rule in Router_A chain=forward, Src.Address=10.0.0.0/8, Dst.Address=192.168.0.0/24, action=drop, but then i don’t have access to Router_B neither.
So, i want to have access in Router_B (and the entire 10.0.0.0/8 network) from my lan 192.168.0.0/24, but i want Router_B (and the entire 10.0.0.0/8 network) not to be able to have access in my private Lan 192.168.0.0/24 and no internet access with static routes.
That doesn’t make sense as a request. If you want to access to devices within 10/8 they need to be able to send you back reply packets, after all.
Do you want them to just not be able to establish new connections?
I want someone from 10.0.0.0/8 cannot have access (no ping, no http etc.) in my adsl modem/router, my local APs, IP Cameras, cannot see my shared folders and files in local PCs etc.
Of course make sure that this works within your existing firewall rule set if you have one, and make sure all routers involved have routes to all networks - either via static routes, or via a routing protocol.
That lets your local network establish connections to everywhere else. You want that rule to stick around.
Your description of what you’re trying to add to the network is fairly confusing, but just add more firewall filter rules below the connection-state=invalid rule for all networks that are allowed to establish connections to one another, listing either src-address, dst-address, or both.