hi
i am using http://wiki.mikrotik.com/wiki/Dmitry_on_firewalling
can any one suggest me how to allow ipsec with this rules
router is placed between the customer device and the ipsec server
am using ospf and customer is having an public ip (no nat)
also can anyone advice if this rules should be placed before the hotspot rules or after it??
Thanks
The easiest way to allow IPSec through with this firewall set is to set as rule 0 in IP firewall, nat, mangle as an input accept rule (if the target router) from the network or host that the remote end is coming from. You can also do the same things in Mangle and NAT to prevent those services from affecting the connection.
If the router is not the local target of the IPSec tunnel then you will need to change the rules to reflect the source and destination of the IPSec peer and change the chains that say input to forward.
I would put the rules above the hotspot rules, I didn’t look at the rules closely though I didn’t see an explicit drop rule in it, if there is one it will need removed before the hotspot rules can be added. If there is an explicit drop rule the hotspot rules will have no effect as the rule will drop the rest of the traffic from going further on down the chain into those rules.
You could also put it after the hotspot rules but if for some reason the hotspot allows some malicious traffic the rules after the hotspot will have no effect since the hotspot has already accepted the users connection pre filters, because of this it is not recommended.