Score:1

Forward all IPv6 traffic from a specific port to an other server

qa flag

This sounds like a frequently answered question, but probably I used the wrong search terms.

I have two independent Linux servers A and B. I moved an application (rsync), which uses TCP Port 4444 for the rsync protocoll, from A to B. Unfortunately some users still use A to access the application. Is it possible, and how, to automagically forward the traffic to B?

Both servers use IPv6, and only the traffic incoming on port 4444 shall be redirected.

vidarlo avatar
ar flag
What kind of traffic? HTTP? Raw TCP? Some other protocol?
Erich avatar
qa flag
I should have mentioned this: it's rsync. (TCP
Zac67 avatar
ru flag
While you're at it: switch users to a DNS name, then the IP behind it can be replaced at any time.
user1686 avatar
fr flag
What's the network topology, roughly? Are both servers behind the same gateway that you control? (Either IP-level NAT or TCP-level proxying might be the answer here depending on the network layout and on what kind of performance you want.)
Erich avatar
qa flag
`A` and `B` are independent servers from different providers, not at all connected on Ethernet level. They do not share a common interface to a router.
Score:0
qa flag

The answer is quite simple: rinetd

Debian (Ubuntu, Mint, …) already contains an actual version of this package. It works with IPv4 and IPv6. The configuration in /etc/rinetd.conf is as straight forward as one would think:

#IP rinetd    Src-Port  Dest-IP       Dest-Port
10.0.0.234      23      10.0.0.254      23
10.0.0.234      222     10.1.0.254      22
10.0.0.234      80      example.org     80
2001:db8::3     100     fd00:abcd::1    23
…
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.