To use this you will first need to define a few things.
Address lists
-DNS (IP addresses you use for DNS and NTP such as 8.8.8.8)
-Networked (LAN IP addresses you whitelist such as 192.168.88.0/24)
-LAN interface (its just the name of the LAN interface in /interfaces)
-WAN interface (name of the WAN interface in /interfaces)
- assuming the router's IP is 192.168.88.1
For /filters,
Mangle rules (used for filter)
NAT (requires connection tracking)
Hijacking rules, for proxy and other services.
If you need to access some of your internal services outside, do it through VPN using the router as a VPN server (hence the accept PPTP but disable the rule if you arent using vpn or change it to the port you use) so it requires config and authentication, something some services that have it arent secured such as the nissan car vulnerability or being able to bypass CCTV server authentications. If you do want to host a server (such as a public Web or game server) than there are clear enough port forwarding rules on mikrotik wiki.
Mikrotik hardware acceleration guide
Mikrotik routerOS has 3 types of hardware acceleration. Fastpath, Fasttrack and encryption. Both Fastpath and Fasttrack acceleration if enabled will be shown in /IP settings.
Fastpath:
Fastpath is hardware acceleration for bridging and routing. It cannot be used for NAT so if you are using your routerboard for only routing and bridging with no need for QoS or filters or rules (say for example you are making a point to point wifi bridge) than you can definitely use this for that situation allowing you to use a low cost routerboard for it. Fastpath is enabled under bridge settings and cannot use the IP firewall. It is very much like using acceleration on a consumer router, tick to enable but with no other features used. Every routerboard should support this.
Fasttrack:
Fasttrack is hardware acceleration for NAT and with connection tracking enabled (the wiki says it is fastpath with connection tracking). There are 2 ways you can use it either by the filter rule in firewall filters or in mangle. In routerOS the acceleration is unique in that you can select which connections (as long as it is TCP or UDP). If a packet is used to uniquely selected for acceleration than the connection will be accelerated. Only connections that have been established can be accelerated so the best way to perform selective acceleration is by filtering new connections. What isnt mentioned in the mikrotik wiki is that fasttrack can be applied in mangle to give even more performance and even more selective choices. It also seems that mangle is used during acceleration whereas filters and QoS are simply ignored. You could also use fasttrack to lower CPU load for the input and output chain for various other services on the routerboard such as for DNS and NTP services (also not mentioned in the wiki). Supported routerboards are http://wiki.mikrotik.com/wiki/Manual:Wiki/Fasttrack . Fasttrack is applied on the connection and not on packets. Mikrotik says the plan to extend Fasttrack to support non TCP/UDP packets so your firewall rules can be generic but you will still need rules after fasttrack to catch the non-accelerated connections.
The basic rule for fasttrack shown in the wiki is
Using fasttrack for prerouting in mangle if it works may yield better results if you dont have any restrictions to apply on it. It may be possible to apply QoS on it by limiting the data rate (not packet rate) of the connection in the firewall rule under mangle and it may be possible to apply priority style QoS by using the mangle firewall for performing selective fasttrack and using the rule order. None of this is verified yet but upon trying different combinations of rules on my CCR it says enabled but i havent yet seen any packets accelerated in statistics (though this could be a bug or i simply am not in the setup where acceleration can be applied).
If any of you has any routerboards please test this and let me know by PM if the stuff not on the wiki works. If it does work you should see a lower CPU usage or better throughput than without.
Encryption:
http://wiki.mikrotik.com/wiki/Manual:IP/IPsec
According to the wiki only AES hardware acceleration is supported in routerOS so it wont matter if the hardware supports other types of acceleration, only AES will be accelerated. Some optimisations can be done to improve performance from the wiki but nowhere does it mention where to enable/disable it.
PM me for any mistakes, corrections or requests regarding mikrotik routerOS configuration.
fonte: https://www.snbforums.com/threads/mikrotik-configuration-example.30783/
0 comentários:
Postar um comentário