I have 2 boxes on a Linksys router connected to a nat'd westell adsl modem. One box runs win98(Inlaws) and my box runs Slack. My box is located in an apartment above our garage. Can't afford wireless right now but would like to add a server to our happy little family network. I don't want to put the server in my Inlaws house, I want it with me, upstairs. I'd like to put the server inbetween my linux box and the linksys. I've got the crossover cable for the link between my box and the server(and 2 nic's for the server).
A while back I went out and bought a great book called, "Linux Firewalls" by Robert Ziegler(New Riders). Great book btw if you wanna *buy* a book on Netfilter. The closest topology(in the book) that describes what I want is a choke firewall, if I'm not mistaken. The choke would be the server I'm wanting to add.
Now, my wan IP is not static but in your answers please assume that it is static to give me a better idea on how the routing is supposed to be set up. Here are some questions. They may be way off base.
1. In my Linksys you can add static routes by identifying: Dest. Lan IP, Subnet Mask, Default Gatway, No. of hops and whether the interface is for Lan or Wan. Please explain this. Does this mean I can add a route for the linux box *behind* the choke/server, if so, how are the above parameters setup?
2. I'm thinkin everything from the linux box needs to be forwarded through the choke/server to the router but how would the Wan side of the network be aware of the linux box w/o some sort of static routing in the Linksys? I can't offer any services because my wan IP is dynamic but if I do get an extra *static* IP in the future I'd like to know how all this is done.
3. Do I need to Subnet? I do understand the concept of subneting just unclear as to who gets the netmask. I know the host gets something like 255.255.255.128, right? K, both the win98 and the linux box?? I'm prob way off on needing this.
I'm sure I will have to do more reading and I'm not scared
Just help me out with a few hints and maybe point me to some doc's or how-to's. I think I've got good handle on Netfilter but no expert by any means. So, throw some rules at me if you can get up to that point in this endeavor. Thanks a lot guys.