Exclude local IX bandwidth from being accounted

Dear Community,

We have a upstream provider who is giving us free bandwidth for connections to and from local IX.

We are managing bandwidth for clients via Simple Queue.

Local IX has given us list of IP Addresses so that we can send traffic for those destinations to them.

Can anyone please suggest us an effective way so that we can give our customers overall 50M free bandwidth to and from local IX and that bandwidth is not accounted via simple queue.

Thanks in advance !!!
Jayden

create address-list with local IX addresses
mark packets via mangle
use simple queues on non-marked packets (marked packets will receive max bandwidth)

Thanks for the reply…

I am fairly new to MIkrotik… Any simple working example will be highly appreciated.

suppose your local ix networks is 192.168.1.0/24, 192.168.11.0/24

/ip firewall address-list add list=IX address=192.168.1.0/24
/ip firewall address-list add list=IX address=192.168.11.0/24
/ip firewall mangle add chain=forward src-address-list=IX connection-state=new action=mark-connection new-connection-mark=IX
/ip firewall mangle add chain=forward dst-address-list=IX connection-state=new action=mark-connection new-connection-mark=IX
/ip firewall mangle add chain=forward connection-mark=IX action=mark-packet new-packet-mark=IX
/queue simple add packet-marks=no-mark .......

this is a very simple example.
in the real situation everything can be more tricky.

Thanks a lot Pavel, it worked for me :slight_smile:

Also I now comfortable with Mikrotik.

Is there any way to implement policy such that IX bandwidth outbounds/inbounds through different route (VLAN 500) and International traffic passes though other route (VLAN 501) ?

For example, if the traffic is to IX address list, Masquerade is done with the IP of VLAN 500 and for International traffic Masquerade is done with the IP of VLAN 501.

Firstly, i recommend to read http://wiki.mikrotik.com/wiki/Manual:IP/Route

I think, in your case, there’s no need for complex routing policy.
Simple add a set of explicit static routes to IX networks
International traffic, in turn, will follow the default route (dst-address=0.0.0.0/0)