Help!!!! Home-Network-mini-HOWTO

Help!!!! Home-Network-mini-HOWTO

Post by Chuc » Sun, 31 Dec 1899 09:00:00



Hello all.

I am trying to use the Home-Network-mini-HOWTO to set up a Linux box to
serve up my DSL connection to my Windows 98 box

I'm running RedHat 6.1.

I've struggled through to the point where my Linux box can talk to the
outside world (I'm on it now).  The windows box can get it's IP from the
Linux Box's DHCP server.  I can ping the Windows box from the Linux Box,
and Ping both of the Linux Box's network cards with the Windows box.

However, I can't get outside to the Internet with the Windows box.

I tried checking out some different firewalling scripts (for
masquerading etc) except that all of the other ones that I have looked
at try to run the /proc/sys/net/ipv4/ip_forward script.  However, I
don't have a /proc/sys directory.  I am not sure if the HOWTO is doing
something different than my other sources, or if I don't have some
package installed that I should.

Any help would be appreciated

Thanks in advance

Chuck

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Help!!!! Home-Network-mini-HOWTO

Post by Hal Burgi » Sun, 31 Dec 1899 09:00:00



>I am trying to use the Home-Network-mini-HOWTO to set up a Linux box to
>serve up my DSL connection to my Windows 98 box

>I'm running RedHat 6.1.

>I've struggled through to the point where my Linux box can talk to the
>outside world (I'm on it now).  The windows box can get it's IP from
>the Linux Box's DHCP server.  I can ping the Windows box from the Linux
>Box, and Ping both of the Linux Box's network cards with the Windows
>box.

>However, I can't get outside to the Internet with the Windows box.

>I tried checking out some different firewalling scripts (for
>masquerading etc) except that all of the other ones that I have looked
>at try to run the /proc/sys/net/ipv4/ip_forward script.  However, I
>don't have a /proc/sys directory.

This is absolutely necessary AFAIK. Did you build your own kernel? If
so, you need to go back through the config and add the right options for
masquerading. (Don't have them off the top of my head.) If not something
is fubar.

--
Hal B



--

 
 
 

Help!!!! Home-Network-mini-HOWTO

Post by Zebee Johnsto » Sun, 31 Dec 1899 09:00:00


In comp.os.linux.setup on Sun, 30 Jul 2000 19:31:20 GMT


>I tried checking out some different firewalling scripts (for
>masquerading etc) except that all of the other ones that I have looked
>at try to run the /proc/sys/net/ipv4/ip_forward script.  However, I
>don't have a /proc/sys directory.  I am not sure if the HOWTO is doing
>something different than my other sources, or if I don't have some
>package installed that I should.

I ignore that bit and do it elsewhere :)

Redhat keeps most of its networking doodads in /etc/sysconfig.

Head over to there, edit the file "network" and  set the
value of FORWARD_IPV4 to true

restart your networking by
        /etc/rc.d/init.d/network restart

Now run the simplest masquerading:
        /sbin/ipchains -F forward
        /sbin/ipchains -P forward DENY
        /sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ

where 192.168.1.0/24 matches your own internal network.

Now see if you can get out.

If you can, then time to finetune the firewall - ftp masq proxies and
such.

Zebee

 
 
 

Help!!!! Home-Network-mini-HOWTO

Post by Chuc » Sun, 31 Dec 1899 09:00:00


> This is absolutely necessary AFAIK. Did you build your own kernel? If
> so, you need to go back through the config and add the right options
for
> masquerading. (Don't have them off the top of my head.) If not
something
> is fubar.

> --
> Hal B



> --

Excellent -- I thought I had them all, but I had missed something in
the Masquerading help.  Once I installed sysctl support and tweaked my
ipchains commands it finally worked.

Thanks! if you hadn't mentioned it I wouldn't have went digging some
more to tell you what I had installed.

Chuck

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Help!!!! Home-Network-mini-HOWTO

Post by Chuc » Sun, 31 Dec 1899 09:00:00




> In comp.os.linux.setup on Sun, 30 Jul 2000 19:31:20 GMT

> >I tried checking out some different firewalling scripts (for
> >masquerading etc) except that all of the other ones that I have
looked
> >at try to run the /proc/sys/net/ipv4/ip_forward script.  However, I
> >don't have a /proc/sys directory.  I am not sure if the HOWTO is
doing
> >something different than my other sources, or if I don't have some
> >package installed that I should.

> I ignore that bit and do it elsewhere :)

> Redhat keeps most of its networking doodads in /etc/sysconfig.

> Head over to there, edit the file "network" and  set the
> value of FORWARD_IPV4 to true

> restart your networking by
>    /etc/rc.d/init.d/network restart

> Now run the simplest masquerading:
>    /sbin/ipchains -F forward
>    /sbin/ipchains -P forward DENY
>    /sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ

> where 192.168.1.0/24 matches your own internal network.

> Now see if you can get out.

> If you can, then time to finetune the firewall - ftp masq proxies and
> such.

> Zebee

Yes, I had the FORWARD_IPV4 set to true, I didn't have sysctl
installed.  Once I installed it, recompiled my kernel and fixed a
couple of mistakes in the firewalling script I was going.

Thanks for the help,

Chuck

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

1. ISP hetnet redhat linux ppp inbellen mini-mini-howto

This small document describes a method to connect a (redhat) linux box to a
FREE provider
called "hetnet". It cost me some effort to get it working so I hope someone
can use this information.

Hierbij stuur ik voor de liefhebber na heel lang zelf te hebben gepuzzeld
een manier
om makkelijk gebruik te maken van de gratis provider "hetnet".

Hierbij voor de liefhebber, een handleiding om snel gebruik te kunnen
maken van RedHat Linux in combinatie met provider hetnet.

1. NetworkConfiguration onder X (links in de balk bij mij onder het icoontje
van de printersettings.

2. Kies interfaces, add ppp, vul telefoonnummer in, (vul geen username en
password in en klik op done).
 Kies voor Save configuration.

3. Kies nu voor edit om je device aan te passen, en vul het volgende in bij
ppp options


4. Ga naar het tabblad communication en verwijder bij expect

         ogin: en ord:
         (Hierdoor voorkomen we ASCII not alowed problemen)

5.  Ga naar het tabblad Networking en vink daar het voorkom daar dat PPP een
restart doet als de connectie
 mislukt. (anders start elke keer ppp opnieuw op als het fout gaat.)

6. Sluit NetworkConfiguration af en kies voor Save.

7.  Zoek nu met het commando "find" naar chap-secrets en pap-secrets

 find / -name chap-secrets

           /etc/ppp/chap-secrets ; Dit is output van mijn systeem

 find / -name pap-secrets

           /etc/ppp/pap-secrets ; Dit is output van mijn systeem, de
onderste is verwarrend,
           /usr/doc/ppp-2.3.5/sample/pap-secrets ; deze hoort bij
documentatie, NIET editten

8. Maak in pap-secrets en chap-secrets de volgende entry:


   (    Gebruik tessen elk item bijvoorbeeld een tab)

9. Start onder X Usernet en kies je ppp device. Klik er dubbel op en je
Linux systeem gaat             inbellen.
 Als het vakje naast je ppp device groen wordt is de connectie geslaagd.
 Als je connectie niet goed is verlopen, treur dan niet, dit heb ik ook heel
vaak gehad :)
 Je kan bij het configuratiescherm ook nog debugging aanzetten, bel daarna
nog een keer in, en
 nadat het modem heeft opgehangen kun je met de opdracht

  tail -30 /var/log/messages

 de laatste 30 regels van je logfile bekijken. Hopelijk kun je dan hieruit
de fout herleiden.

Have a nice day!

Wouter-Jan Wessels


2. X client to monitor logins?

3. Howto or Mini Howto - to replace your Windows NT server

4. strtok --> strsep in framebuffer drivers

5. New Howto/mini-howto/man page/rfc/irc/book site

6. SCSI, Epox MVP3C and AMDK6-2 problems

7. DiP-NetWorking-mini-HowTo [FINAL 4-10-96]

8. getrootfs hdisk0 fails

9. problem with mini home network

10. HOWTO: Redhat Kernel Customization mini-HOWTO

11. Dip-Networking-mini-HowTo (FINAL)

12. Submission: HOWTO: new ADSL mini-howto ver 0.81 released

13. Subnet Questions from the IP Sub-Networking Mini-Howto