Score:0

Route all traffic (except port 3336 and a few more) from eth0 to specific ip

How can I route all incoming traffic from eth0 interface to ip 10.8.0.5 (VPN tunnel)?

I need to forward incoming traffic except port 3666, to specific ip on ubuntu 22.04 machine.

In future list of ports that should not be routed will get bigger.

How can i do it the best way?

I have explained my situation here -> https://serverfault.com/questions/1130659/route-all-traffic-except-port-3336-and-a-few-more-from-eth0-to-specific-ip

and here -> https://serverfault.com/questions/1130369/proxy-all-requests-from-one-machine-to-another-using-nginx-or-anything-else

Thank you!

Михаил Агафонов avatar
Answered this question [here](https://serverfault.com/questions/1130659/route-all-traffic-except-port-3336-and-a-few-more-from-eth0-to-specific-ip/1132381#1132381)
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.