Image

Imagebobbotron wrote in Imagelinux 😊cheerful

So I moved into a new apt, and I have a linux server (slack 9) that I'd like to set up as a router for the house as I don't have a router to share the net connection between computers, but I already have this server.

Never done it before, I'm sure it's not that hard. I'm having a bit of trouble figuring out where to start and figure out what I need to configure. I have two network cards in the machine, ideally I'd like the one to get an IP address dynamically from my cable ISP, and then the other to plug into a switch I have and serve out NAT'd IP addresses to any machines that connect to the switch. I'm also running a small webserver on the server, once I get all that other stuff working, I'll want to set it up so that the server will forward requests to the web server.. Any advice?

The way I see it working is the computer would have one IP to the outside world (IP A), one where all of it's local servers would run off of (IP B), and then use the second card to dish out NAT'd IP addresses. IP B would also be under NAT, and I would have to set up a port forward to allow requests from the outside to get to servers running on IP B....