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 41.72.222.121. Third interface is ether3, connecting to Safaricom ISP with IP 41.139.176.22.
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 41.203.208.18 and 41.203.208.19
KDN DNSs are 41.220.238.4 and 196.201.231.167
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=41.72.222.121/28 network=41.72.222.112 broadcast=41.72.222.127 interface=ether2
add address=41.139.176.22/30 network=41.139.176.20 broadcast=41.139.176.23 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=41.72.222.112/28 action=accept in-interface=Local
add chain=prerouting dst-address=41.139.176.20/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