I am using Version 3.3 of Mikrotik Router OS.
I have three interfaces, ether1 which is for my local IPs and connects to a switch which connects to an AP. The IP address is 192.168.0.1 The second interface is ether2, which connects to my ISP KDN, the IP for this is 18.104.22.168. Third interface is ether3, connecting to Safaricom ISP with IP 22.214.171.124.
My link works fine when I disable either ether2 or ether3. It works for some time when I enable both but then it fails to browse the internet.
Safaricom DNSs are 126.96.36.199 and 188.8.131.52
KDN DNSs are 184.108.40.206 and 220.127.116.11
Now, when I am trying to put in the PCC, I check the code for the wiki and type it into new terminal.
First I put the IPs.
/ ip address
add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=ether1
add address=18.104.22.168/28 network=22.214.171.124 broadcast=126.96.36.199 interface=ether2
add address=188.8.131.52/30 network=184.108.40.206 broadcast=220.127.116.11 interface=ether3
This works fine.
Next I go to mangle.
add chain=input in-interface=ether2 action=mark-connection new-connection-mark=ether2_conn
add chain=input in-interface=ether3 action=mark-connection new-connection-mark=ether3_conn
add chain=output connection-mark=ether2_conn action=mark-routing new-routing-mark=to_ether2
add chain=output connection-mark=ether3_conn action=mark-routing new-routing-mark=to_ether3
add chain=prerouting dst-address=18.104.22.168/28 action=accept in-interface=Local
add chain=prerouting dst-address=22.214.171.124/30 action=accept in-interface=Local
No problem till here
Then I go to the next step and type the following wwhich I have copied from the wiki also.
add chain=prerouting dst-address-type=!local in-interface=ether1 per-connection-classifier=both-addresses:2/0 \ action=mark-connection new-connection-mark=ether2_conn passthrough=yes
Now it says, "bad argument name per-connection-classifier (line 1 column 66)"
Thsi is where I get stuck. Please advise and soryy for my way for doing this as I am not an expert