On 20/3/23 16:39, Stanislav Vlasov wrote:
пн, 20 мар. 2023 г. в 12:33, <f...@dnsbed.com>:

I have a networking question that I can't understand for.
I have the Debian 11 host with two ethernet cards.
There is public IP and gateway for each ethernet card.
(they are public IPs from two different net address blocks.)
[...]
When clients from outside access eth1 ip (such as HTTP access), they can
reach there.
But, the returned packages from debian server to clients are always
coming from eth0 gw.
I expect the returned package also come from eth1 gw (since clients are
accessing eth1 address).

https://lartc.org/ will help you.
Exactly https://lartc.org/howto/lartc.rpdb.multiple-links.html
In my same setup i was add some 'up ip rule add ...' lines into
/etc/network/interfaces

I get the impression the problem is to send return traffic back out on the interface it came in on.

In that case I image connection tracking would be used but I'm not expert enough to suggest an optimal solution.

--
Jeremy
(Lists)

Reply via email to