Sure. Just replaced the IPs and addes some comments.
The 3 routes. I got one more static route for a network I always wanna reach via Upstream1, but I didn't paste it here.
/ip route
add comment="Gateway for upstream1 markings" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=1.1.1.1 routing-mark=upstream1-traffic scope=30 \
target-scope=10
add comment="Gateway for upstream2 markings" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=2.2.2.2 routing-mark=upstream2-traffic scope=255 \
target-scope=10
add comment="Default Gateway" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=2.2.2.2 scope=255 target-scope=10
Marking. All port 80 and port 53 traffic goes through Upstream1. Everything else through Upstream2.
/ip firewall mangle
add action=mark-connection chain=prerouting comment="All Connections" disabled=no in-interface=bridge1 \
new-connection-mark=all-connections passthrough=yes
add action=mark-routing chain=prerouting comment="Upstream1" connection-mark=all-connections disabled=no dst-port=80 \
in-interface=bridge1 new-routing-mark=upstream1-traffic passthrough=yes protocol=tcp
add action=mark-routing chain=prerouting comment="" connection-mark=all-connections disabled=no dst-port=53 \
in-interface=bridge1 new-routing-mark=upstream1-traffic passthrough=yes protocol=udp
add action=mark-routing chain=prerouting comment="Upstream2" connection-mark=all-connections disabled=no dst-port=!80 \
in-interface=bridge1 new-routing-mark=upstream2-traffic passthrough=yes protocol=tcp
add action=mark-routing chain=prerouting comment="" connection-mark=all-connections disabled=no in-interface=bridge1 \
new-routing-mark=upstream2-traffic passthrough=yes protocol=icmp
add action=mark-routing chain=prerouting comment="" connection-mark=all-connections disabled=no dst-port=!53 \
in-interface=bridge1 new-routing-mark=upstream2-traffic passthrough=yes protocol=udp
Traffic for Upstream1 needs to be masqueraded (dynamic IP), traffic for Upstream2 is natted to my static cable IP.
/ip firewall nat
add action=masquerade chain=srcnat comment="Upstream1" disabled=no dst-address=0.0.0.0/0 out-interface=pptp-upstream1 \
routing-mark=upstream1-traffic src-address=192.168.7.0/24
add action=src-nat chain=srcnat comment="Upstream2" disabled=no dst-address=0.0.0.0/0 out-interface=ether1 \
routing-mark=upstream-traffic src-address=192.168.7.0/24 to-addresses=1.2.3.4 to-ports=0-65535
Hope I didn't forget anything
Greets,
uebi