On Wed, 4 Apr 2001, Temp wrote:
>
> However, forgive me that I'm really new to Linux, I want to know where am I
> going to do with the lines you type. Should I type them in terminal (I guess
> not), insert them to an existing file (which file?), or type them into a new
> script file (where to place the file, and how should I name it)?
you can type them in to a terminal (as root) to test them. Once you have
it working, you can put it in a file to be run for you at startup. There
are many ways to do this. One is to put them in
/etc/rc.d/rc.local. Another is to create a "service" script and put it in
/etc/rc.d/init.d, but for a beginner I'd suggest /etc/rc.d/rc.local
> And I want to know that, what is the function of the line >
> echo "ip_masq 192.168.1.3"
>
> perform? It seems to me that it is just echo a string (where to echo to?).
correct. You can see it on your terminal as the machine boots (the snippet
I gave you came from rc.local on one of my machines)
> And is this true that I can omit and ".o" in all files (and are you sure
> that I have all the files you listed? I'm using Red Hat Linux 7.0)?
Yes, sorry about that. The snippet is from a 6.2 machine. Use this to load
all modules avialable on your 7.0 machine
# Load all available ip_masq modules
OLD_DIR="$PWD"
cd /lib/modules/`uname -r`/ipv4/
for amod in ip_masq* ; do
masqmod=`echo ${amod} | sed -e 's/\.o$//'`
echo installing $masqmod
/sbin/modprobe "$masqmod"
done
cd "$OLD_DIR"
> If I'm going to place the lines into a script file, how can it find all
> these files?
see above
>
> In your example, I see 2 IP addresses, one is "192.168.1.3" and one is
> "192.168.1.0". How should I replace them for my case? My Linux Server's IP
> is "192.168.0.81", my Windows NT workstation's IP is "192.168.0.42". Is it
> true that the first one is for Linux server, the second one is for Windows
> NT workstation?
Ok, in your case replace 192.168.1 with 192.168.0. Ignore the last
3. You will have to do some reading/learning about subneting networks,
but for now just believe me that when using syntax like 192.168.0.0/24 you
are saying to cover all IPs starting with 192.168.0.
Thats a crappy explanation, but ohers can do better, and I honestly don't
have time right now. Run these ipchains commands, setup a pc to use it as
it's gateway and see how it works for you.
> Thanks in advance!
you are welcome
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list