I'm a newbie to linux. I've used it before, but only very very little. I know enough to get it running but I don't know the first thing about setting up networking with it or even how to read the routing table (eg. "route" command).
So, this weekend I purchased a WRT54G router and installed OpenWRT onto it (basically it's a mini-linux distribution that gives you incredible control over the router).
That brings me to where I'm at now. I'm looking to setup port forwarding, etc, but I'd like to learn how to do it. Moreso, I'd like to learn about linux networking in general so I can better understand how
things work and not just how to get them to work.
Basically I'm looking for a good book (or other resource, but I'd prefer a good book) on linux networking. I'm a subscriber to O'Reilly Network Safari Bookshelf, so any books that are available on there is a plus.
Here's what I'm looking to learn:
- How routing works <--- this is a big one and I think I need to learn this first
- How I can view incoming packets (so I can actually SEE the iptables filtering it based on it's destination,etc)
- How to forward ports (eg. forward external WAN port 2000 to internal port 20 on internal ip 192.168.1.5, etc)
- How I can management my bandwidth (eg. limit outgoing bandwidth so my DSL modem doesn't choke up)
- How I can forward ALL packets from my WAN (or another LAN port) to another specific IP. (again, so I can see which traffic is incoming, etc)
I have searched and have read some tutorials and how-to's (eg. linuxguruz dot com), but I feel that most of the information I'm finding is either too advanced, has insufficient information, or starts at too high of a level. For example, the IPTABLES-HOWTO over at LinuxGuruz was really informative but I'm unsure how NAT works and what destination ip is getting set on my packets. (I know incoming packets are NOT designated for my internal network, something is changing (??) the packet information and redirecting it)
So.... any recommendations would be GREATLY appriciated.