I’ve RB1000 as bridge firewall and http trafic is (b)routing from bridge to transparent proxy (brouting → mangle → policy routing). Version ROS 3.10. It’s working well for about 6 months, so I would like to do upgrade to newer version, but without broute I probably can’t do that…
I use these settings (first for accept filtering on bridge at all, second for marking http traffic), but without brouting with action redirect, http traffic stays in bridge. Mangle rule (chain prerouting, action mark routing) as well as policy routing doesn’t work.
This configuration was on previous firewall based on linux iptables + ebtables.
It’s working configuration, if first option (broute - redirect) is disabled, packets aren’t marked and traffic pass through bridge and isn’t routed to proxy.
Page with ‘no route to host’ is from squid and is default for this situation. But I’ve tested web from terminal server and this server has access to internet through another proxy and this proxy return page with ‘no route to host’, because connections from main (parent) proxy exceeded time for return data.
The conclusion from using dst-nat is timeout in communication.
Main proxy has access to internet without problems.
It’s maybe more than whatever else game with words. So, I again disabled broute rules, mangle rules and route to proxy for marked routing and again activated only dst-nat in form as I described above. In firefox (no proxy setup) a got:
Connection Interrupted
The connection to the server was reset while the page was loading.
The network link was interrupted while negotiating a connection. Please
try again.
In short, dst-nat itself doesn’t work, in this case is only working configuration that with “broute”.
I think, you try to dst-nat to the same interface where request come from. so packets return to client from proxy directly, not via ROS, so ROS cannot ‘un-NAT’ them. you proxy should communicate with clients via RouterOS
I can’t move proxy elsewhere, I don’t maintain network topology.
Your example doesn’t work without broute (missing in ROS after 3.15) for me. So, I don’t want redirect all traffic to proxy, destination 80/TCP from LAN is sufficient. It’s web proxy based on Squid in transparent mode. And at last, situation with LAN IP numbering isn’t easy. We have routed B class network + many other C class ones. 172.25.64.0/24 (correct suffix is /23) is one of many networks for LAN.
So, back to “broute” case. I’m very disapointed with Mikrotik approach. I feel it like change game rules in time of game. I’ve tested configuration of Mikrotik (with described network topology) in time I did a migration from previous Linux based bridge (ip + ebtables working) a I was happy I could use the same things. Now I can’t upgrade RB1000 to recent ROS version, even if I payed for upgrades to 4.x.
Why use a pay for Mikrotik, when next version of ROS can break functionality a force you to change, for example, network topology?