M
M
mitaichik2016-03-25 12:47:19
linux
mitaichik, 2016-03-25 12:47:19

How to redirect requests to a specific IP to a specific network interface?

Hello!
Costs Ubuntu Server with several network interfaces. There is a software that accesses a specific IP address on the Internet. It is necessary that this software access it through a specific interface, not eth0. Unfortunately, it is impossible to configure it through which interface to send requests to it.
But only she accesses this IP. Therefore, the question is: is it possible in Ubuntu to configure it so that requests to a certain ip always go from a certain interface?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
chupasaurus, 2016-03-25
@mitaichik

#ip route add ip_address dev dev_name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question