A
A
aweed777882019-02-21 11:25:07
linux
aweed77788, 2019-02-21 11:25:07

How to wrap http traffic in gre tunnel?

Hello everyone, I am a beginner administrator who works and studies Mikrotik. I have a gre tunnel configured between the Mikrotik RouterBOARD 952Ui-5ac2nD and the cloud service on which Ubuntu server 16.04 is installed. Everything is perfect) devices see each other and are friends. Certain sites go through this tunnel all is well. But here's the question I need to make so that all http traffic goes through it, and everything else like skype, telephony, etc. according to the standard scheme through the main ISP. Help me how to correctly mark all http traffic and wrap it in a tunnel. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-02-21
@aweed77788

It is more correct to set the routing mark and, based on it, make a decision about routing
These rules can be several, according to your taste
/ip firewall mangle
add action=mark-routing chain=prerouting dst-port=80 in-interface=bridge-lan new-routing- mark=to-gre passthrough=no protocol=tcp
Route line, when the link drops, the packets will go to the default gateway
/ip route
add check-gateway=ping distance=1 gateway=10.10.10.1 routing-mark=to-gre
10.10.10.1 - address of the gre-interface of the remote server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question