I created the marks, but still with no sucess.
SETUP:
LAN1: 192.168.2.0/24 IP 192.168.2.1 PORT ETH1
LAN2: 10.0.0.0/24 IP 10.0.0.1 ETH2 BRIDGE WITH PORTS 6,7,8
WAN1: 192.168.5.0/24 IP 192.168.5.2 PORT ETH4
WAN2: 192.168.0.0/24 IP 192.168.0.2 PORT ETH5
Setup that I want: Users from LAN1 should Always use WAN1 , and users from LAN2 should Always use WAN2. (Someone have one exaclty same setup, for just copy and paste)?
If I remove the default route without the mark, it Works well, but in other hand, I cannot use my PPTP vpn anymore.
Another workaround is start a packet sniffing in Tools, doing this, even with default route created, the scenario Works.
- What reason can explain after start a packet sniffing, make the firewall Works?
- Using bridge between ports 2,6,7,8 can cause this issue ? (mix of switch1/switch2)
- Any recommended test ? Or anyone with similar scenario to share the config ?
My Config:
LAN1 -> WAN1
chain=prerouting action=mark-connection new-connection-mark=WAN1
passthrough=yes src-address=192.168.2.0/24 dst-address=!192.168.2.0/24
log=no log-prefix=""
LAN1 -> WAN1
chain=prerouting action=mark-routing new-routing-mark=WAN1 passthrough=no
src-address=192.168.2.0/24 dst-address=!192.168.2.0/24 log=no
log-prefix=""
#LAN2 -> WAN2
chain=prerouting action=mark-connection new-connection-mark=WAN2
passthrough=yes src-address=10.0.0.0/22 dst-address=!10.0.0.0/22
in-interface=WIFIPREDIO log=no log-prefix=""
#LAN2 -> WAN2
chain=prerouting action=mark-routing new-routing-mark=WAN2 passthrough=no
src-address=10.0.0.0/22 dst-address=!10.0.0.0/22 in-interface=WIFIPREDIO
log=no log-prefix=""
#LAN1 ->WAN1
chain=input action=mark-connection new-connection-mark=WAN1 passthrough=yes
connection-mark=no-mark in-interface=ether4-VIVO log=no log-prefix=""
#LAN2 ->WAN2
chain=input action=mark-connection new-connection-mark=WAN2 passthrough=yes
connection-mark=no-mark in-interface=ether5-NET log=no log-prefix=""
#LAN 2 - > WAN2
chain=prerouting action=mark-routing new-routing-mark=wifiadm
passthrough=no dst-address-type="" connection-mark=WAN2
in-interface=ether5-NET log=no log-prefix=""
#LAN1 -> WAN1
chain=prerouting action=mark-routing new-routing-mark=admnet passthrough=n>
dst-address-type="" connection-mark=WAN1 in-interface=ether4-VIVO log=no
log-prefix=""
LAN 1 -> WAN1
chain=output action=mark-routing new-routing-mark=WAN1 passthrough=no
connection-mark=WAN1 log=no log-prefix=""
#LAN 2 -> WAN2
chain=output action=mark-routing new-routing-mark=WAN2 passthrough=no
connection-mark=WAN2 log=no log-prefix=""