Hi!
I'm a real newbie to linux, so I would really appreciate some help on this one.
I've just installed debian sarge with kernel 2.6 for the third time on the same computer in a month. The reason for this is that I get the IP-table part wrong every time. The computer is supposed to work as a server and a internet gateway.
I've tried to follow the tutorial at
http://en.tldp.org/HOWTO/IP-Masquerade-HOWTO/ on howto set up my IP-masquerade but it doesn't cover the 2.6 kernel, and there seem to be a few differences.
To start with I still haven't figured out how to make the configuration of my network cards yet. I (obviously) have two cards in the computer. The one connected to my internet I want to configure with static network options. I even think I have to emulate an other MAC on this one. But for my internal network I want to set up the computer for running a DHCP-server. Where and how do I fix this?
The HOWTO says I should run the command "
ls /lib/modules/`uname -r`/kernel/net/ipv4/netfilter/" to se if my kernel uses IPTABLES as modules. If so is the case it should list a few files with names ending with .o In my case they all end with .ko I suppose this is the same thing, right?
The next problem I encounter is that when I shall create a file for the firewall rules i shall put it in /etc/rc.d/ On my system there is no such place. But I've got some rcX.d where X is a number from one to six. Is it in any of these I want my file?
The last thing that I see as a problem right now is that when I've got my firewall rules all right I want it to run every time I reboot. Unfortunatly I don't know in witch file I should add this. In the HOWTO there is examples of howto do this the radhat way and the slackware way. But niether of this seems to be the debian way.
I really hope this wasn't to much at the same time, 'couse I would really like to get this working.
/palano