Hello Everyone,
I am trying do content match with forwarding. How is possible to it with mikrotik ? Is it will work for multiply servers on the lan ?
Any help thank you.
- Match content string.
In raw iptables.
-A PREROUTING -i eth+ -p tcp --dport 5085 -m string --string "sip:sip:domain.tld" --algo bm --icase -j MARK --set-mark PROVIDER1
- Forward DNAT/REDIRECT based on connection mark.
-A PREROUTING -m mark --mark PROVIDER1 --to-destination pbx1 -j DNAT --to-port 5085
-A PREROUTING -m mark --mark PROVIDER1 --to-destination pbx1 -j REDIRECT --to-ports 1000-2000