Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #256209

Re: debian server with two public IPs

From Stanislav Vlasov <stanislav.v.v@gmail.com>
Newsgroups linux.debian.user
Subject Re: debian server with two public IPs
Date 2023-03-20 09:50 +0100
Message-ID <Gbjnj-dKVO-1@gated-at.bofh.it> (permalink)
References <Gbihz-dKhg-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


пн, 20 мар. 2023 г. в 12:33, <fh@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).

> How can I setup this? Thanks for any hints.
>

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

-- 
Stanislav

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

debian server with two public IPs fh@dnsbed.com - 2023-03-20 08:40 +0100
  Re: debian server with two public IPs <tomas@tuxteam.de> - 2023-03-20 09:30 +0100
  Re: debian server with two public IPs Stanislav Vlasov <stanislav.v.v@gmail.com> - 2023-03-20 09:50 +0100
    Re: debian server with two public IPs Jeremy Ardley <jeremy@ardley.org> - 2023-03-20 10:20 +0100
      Re: debian server with two public IPs <tomas@tuxteam.de> - 2023-03-20 10:30 +0100
        Re: debian server with two public IPs Jeremy Ardley <jeremy@ardley.org> - 2023-03-20 10:50 +0100
    Re: debian server with two public IPs fh@dnsbed.com - 2023-03-21 01:00 +0100
  Re: debian server with two public IPs Tim Woodall <debianuser@woodall.me.uk> - 2023-03-20 11:30 +0100

csiph-web