Networking Forums

Networking Forums > Computer Networking > Linux Networking > newbie question: suse8.2 as a router for a windowsXP machine

Reply
Thread Tools Display Modes

newbie question: suse8.2 as a router for a windowsXP machine

 
 
pipo
Guest
Posts: n/a

 
      06-07-2004, 05:03 PM
Hi all,

I'm new to linux and to this group, so if I'm posting
off topic I apoligize.

The problem is this:

I have a suse8.2 machine with two network cards.
192.168.0.3 is in connection with a apache router,
which has a intenet connection via a cable modem
(I share internet with a house-mate).
192.168.1.1 is in connection with my windowsXP machine.
Obviously I want a internet connection on my windowsXP
machine, but I can't get it working (It's working fine
on the suse8.2 machine).

On the suse8.2 machine I've made the following config. with YaST2:

subnetmask for 192.168.0.3: 255.255.255.0
subnetmask for 192.168.1.1: 255.255.0.0
default gateway : 192.168.0.1 (the apache router)
ip-forwarding: enabled

windowsXP config.:

ip adress: 192.168.1.2
subnetmask: 255.255.0.0
default gateway: 192.168.1.1

Now the strange thing is (to me, as a layman), that, from the
windowsXP machine, I can ping 192.168.1.1 and 192.168.0.3 but
not 192.168.0.1!

Can anyone help me?

TIA
 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      06-09-2004, 01:50 AM
On Mon, 07 Jun 2004 19:03:40 +0200, pipo <(E-Mail Removed)> wrote:
> Hi all,
>
> I'm new to linux and to this group, so if I'm posting
> off topic I apoligize.
>
> The problem is this:
>
> I have a suse8.2 machine with two network cards.
> 192.168.0.3 is in connection with a apache router,
> which has a intenet connection via a cable modem
> (I share internet with a house-mate).
> 192.168.1.1 is in connection with my windowsXP machine.
> Obviously I want a internet connection on my windowsXP
> machine, but I can't get it working (It's working fine
> on the suse8.2 machine).
>
> On the suse8.2 machine I've made the following config. with YaST2:
>
> subnetmask for 192.168.0.3: 255.255.255.0
> subnetmask for 192.168.1.1: 255.255.0.0
> default gateway : 192.168.0.1 (the apache router)
> ip-forwarding: enabled
>
> windowsXP config.:
>
> ip adress: 192.168.1.2
> subnetmask: 255.255.0.0
> default gateway: 192.168.1.1
>
> Now the strange thing is (to me, as a layman), that, from the
> windowsXP machine, I can ping 192.168.1.1 and 192.168.0.3 but
> not 192.168.0.1!
>
> Can anyone help me?


Does the apache router know anything about the 192.168.1.0/24 network or
how to route to it via 192.168.0.3 as gateway? If not, or you have no
control over that, you will need to configure SuSEfirewall2 so your
192.168.0.3 interface will masquerade and answer for your 192.168.1.0/24
subnet.

Read through and edit /etc/sysconfig/SuSEfirewall2 and set:
FW_DEV_EXT="eth0" (assuming that is 192.168.0.0/24 net)
FW_DEV_INT="eth1" (assuming that is 192.168.1.0/24 net)
FW_ROUTE="yes"
FW_MASQUERADE="yes"
FW_MASQ_NETS="192.168.1.0/24"

and read through the rest.

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
 
pipo
Guest
Posts: n/a

 
      06-09-2004, 06:57 PM
Thanks a lot, that did the trick!
Though these settings make some sense
to me, I don't yet fully understand them.
Hope this comes with time.
Thanks again!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A router question from a newbie Eatmorepies Broadband 16 12-28-2007 07:53 PM
newbie with wireless router question A Call Network Routers 1 08-16-2006 10:27 AM
Newbie router question Ed Smith Wireless Internet 3 07-26-2005 04:36 PM
newbie question about netgear 814 router Bob Buzzotta Wireless Internet 0 02-28-2004 12:58 PM
newbie router question Kris Broadband 2 11-29-2003 09:41 PM



1 2 3 4 5 6 7 8 9 10 11