Sample Header Ad - 728x90

Route trafic to bridged network

1 vote
1 answer
129 views
I have a server running with multiple services running inside each of their own LXD container. All containers uses a bridged network. For now I am routing everything through the servers main ip address and forwarding the required ports to each container, but this is annoying. For an example I have multiple web GUI's running and using this setup they all need a different port like 8080, 8081 and so on, instead of just using the standard port 80 or 433. What I would like is to setup Pi-Hole with internal URL's pointing at each containers IP, but I need to somehow have traffic automatically routed through the server. I am able to manually add a route for the LXD "10.x.x.x" network to the server and have it connect directly to a container. But I would have to do this to every single device that is being connected to the network. Is there a way to have the server tell the router to route traffic for this network through the server? I know that I can setup LXD containers to use macvlan, but this introduces other issues and is also not a real solution either, but more a work-around.
Asked by dbergloev (13 rep)
Sep 5, 2022, 09:46 AM
Last activity: Sep 8, 2022, 07:47 AM