Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 23620

General • Respond for the internet connection through which they connect.

$
0
0
I apologize for the English; I'm using a translator.

Good morning, I'm explaining my situation here, requesting help with this configuration.

I have a Mikrotik router with 5 fiber optic internet ports, each with a fixed public IP address.

These ports are Ethernet 1 through 5.

A client needs to connect to a server we have on the LAN.

This client has 3 fixed public IP addresses and can initiate the connection through any of them.

The client must connect through Internet connection 3 (Ethernet 3) and 5 (Ethernet 5) as a backup.

What I'm trying to do is have the server respond to these client public IP addresses through the same Internet connection the client used to connect.

Currently, my server responds through Internet connection 1 (Ethernet 1), which is the default Internet connection.

I configure a mangle with prerouting for each of the client's three public IP addresses. This way, I get the server to access Internet connection 3 when it connects to one of the client's public IP addresses.

The problem is that the same configuration would apply to Internet connection 5 (Ethernet 5), so I configure the server to access two different connections, 3 and 5, to connect to the same public IP addresses. Of course, it doesn't work.

What I want is for the client to connect with its IP address 1 to connection 3, and the server will respond through fiber 3. But if the client connects with IP address 1 to connection 5, it will respond through 5, and so on for the client's three public IP addresses.

Statistics: Posted by josepayan — Tue Apr 22, 2025 10:39 am



Viewing all articles
Browse latest Browse all 23620

Latest Images

Trending Articles



Latest Images