Try changing your ipfwadm lines to reflect _YOUR_ network settings. Right
now, your ipfwadm line is for the 192.168.1.0 network, but you're using
the 192.168.2.0 network. Change the ipfwadm line to be 192.168.2.0/24,
and you should be set.
--Rod
On Fri, 10 Apr 1998, ABAMF ICI wrote:
>
> I have two computers, one is running win95 and the other slackware linux
> 2.0.33. I have read the IP-Masquerade mini howto MANY MANY times and VERY
> thoroughly. I still can't get it to work :(
>
> My goal is to have the win95 machine access the internet via the linuxbox's
> dial up internet connection via an ethernet cable connecting the two. So far
> the only thing the win95 and linux comps can do is ping each other (OH BOY!!!)
> ftp, telnet, www, etc... via the ethernet cable, but that is of no real value
> to me.
>
> I'm sorry I can't just give a specific problem that I'm having so I could just
> get some help so instead I'll try and give you all the information I can give
> you.
>
>
> Windows 95 computer:
> IP address: 192.168.2.2
> Gateway: 192.168.2.1
> Subnet mask: 255.255.255.0
> DNS host: 205.252.116.10 (my isp's nameserver)
>
> Please not that my ISP is ____ NOT____ AOL. I just use it for e-mail, honest.
>
> Everything else in network setup left untouched. That information was setup
> in the tcp/ip protocol for my ethernet card.
>
> Linux computer:
> IP address: 192.168.2.1
> DNS host: 205.252.116.10
>
>
> /etc/rc.d/rc.inet1
> (I removed a little at the top)
> Edit for your setup.
> IPADDR="192.168.2.1"
> NETMASK="255.255.255.0"
> NETWORK="192.168.2.0"
> BROADCAST="192.168.2.255"
> GATEWAY=""
>
> Uncomment the lines below to initialize the ethernet device.
> (well I did that, not going to type it up)
>
> /etc/rc.d/rc.firewall
> #Flush all commands
> ipfwadm -F -f
> ipfwadm -I -f
> ipfwadm -O -f
>
> #other stuff (I know you love my technicality)
> ipfwadm -F -p deny
> # now NOTHING can get through...let's change that...
> ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0
>
> # if I wanted to do it by individual computer...
> # ipfwadm -F -a m -S 192.168.1.2/24 -D 0.0.0.0/0
>
> (and then I have some stuff from the firewall/proxy server howto which
> apparently forwards e-mail to my server and stuff like that....I've tried with
> it commented out and normally, with it[masqueradeing] not working either way)
>
>
> before connencting to ISP
> ----
> # route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0
> 1 eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
> 1 lo
>
> while connected to ISP
> -----
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 10.65.33.17 0.0.0.0 255.255.255.255 UH 0 0 0
> ppp0
> 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0
> 3 eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
> 2 lo
> 0.0.0.0 10.65.33.17 0.0.0.0 UG 0 0
> 2 ppp0
>
> after disconnecting from ISP
> ------
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0
> 4 eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
> 2 lo
>
>
> Well, that's about all I can think of that would be useful for someone trying
> to diaganose my problem. If you need more info, I'll be glad to give it to
> you. I can't reach servers from the win95 machine either by numbers or names.
>
> Thanks in advance,
> Kevin
> :)
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For daily digest info, email [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]