Answer the question
In order to leave comments, you need to log in
How to send traffic to a specific address through a different interface?
There is eth0 with an external address 91.х.х.10 through which all traffic goes.
Created an eth0:0 interface with an external address 91.х.х.5
What settings should be made in order to exchange traffic with 195.х.х.10 only through eth0:0 ?
Answer the question
In order to leave comments, you need to log in
Thanks Pavel for the tip, but the issue was resolved by adding the rule
iptables -t nat -I POSTROUTING -d 195.xx10 -j SNAT --to 91.xx5
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question