I
I
Ilyas2016-11-30 12:20:12
linux
Ilyas, 2016-11-30 12:20:12

How to mark external traffic within the network?

There is a router (on CentOS) with 2 providers. It is configured so that Internet access can go both through isp1 and through isp2. There are forwards from 10.0.0.2 to 192.168.1.2 and from 10.10.10.2 to 192.168.1.2. if the appeal came on 10.10.10.2, it can leave after 10.0.0.2, how to eliminate this situation.
390b8b45779f4372a9b289849623cb79.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TyzhSysAdmin, 2016-11-30
@id2669099

You need to label CONNECTIONS.
This can be done by iproute2, link to start wiki.dieg.info/iptables#kriterij_connmark + read articles about configuring gateways with balancing.

D
Dmitry Shitskov, 2016-11-30
@Zarom

I don't know the correct solution.
As part of the delusion - natit (src-nat) incoming traffic on these ports, then the packet will be returned in accordance with the NAT table.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question