Bluehost.com Web Hosting $6.95

internet access through another subnet

This is a discussion on internet access through another subnet within the Linux Networking forums, part of the Linux Forums category; I have to two subnets, two PC's: 192.168.0.1 <-> ISDN/modem <-> 192.168....


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2004
Ekkard Gerlach
 
Posts: n/a
Default internet access through another subnet

I have to two subnets, two PC's:
192.168.0.1 <-> ISDN/modem <-> 192.168.10.1
(ppp gets 192.168.10.20)
I
I
router-PC
192.168.0.99
DSL -> internet

The client 10.1 should have full access
to internet. I've already reached my target
by giving a 0.X-adress to the 10.1-machine.
But not with different subnets. (BTW: I search
a solution that can be expanded to two subnets:
0.X and 10.X. But step by step ....)
192.168.0.1 is calling 10.1 an gets: 192.168.10.20

Thats what I tried to realize surfing from 10.1:

10.1: route add default gw 192.168.0.1 ippp1
entry in /etc/resolve.conf
0.1: arp -Ds 192.168.10.20 eth0 netmask 255.255.255.255 pub
echo "1" > /proc/sys/net/ipv4/ip_forward

.... but it doesn't work with different networks.
What is my fault?

tia
Ekkard

Reply With Quote
  #2 (permalink)  
Old 03-01-2004
Snowbat
 
Posts: n/a
Default Re: internet access through another subnet

Ekkard Gerlach wrote:

> I have to two subnets, two PC's:
> 192.168.0.1 <-> ISDN/modem <-> 192.168.10.1
> (ppp gets 192.168.10.20)
> I
> I
> router-PC
> 192.168.0.99
> DSL -> internet
>
> The client 10.1 should have full access
> to internet. I've already reached my target
> by giving a 0.X-adress to the 10.1-machine.
> But not with different subnets. (BTW: I search
> a solution that can be expanded to two subnets:
> 0.X and 10.X. But step by step ....)
> 192.168.0.1 is calling 10.1 an gets: 192.168.10.20
>
> Thats what I tried to realize surfing from 10.1:
>
> 10.1: route add default gw 192.168.0.1 ippp1
> entry in /etc/resolve.conf
> 0.1: arp -Ds 192.168.10.20 eth0 netmask 255.255.255.255 pub
> echo "1" > /proc/sys/net/ipv4/ip_forward
>
> ... but it doesn't work with different networks.
> What is my fault?


Did you add a route to 192.168.10.1 on router-PC?
Reply With Quote
  #3 (permalink)  
Old 03-01-2004
David Efflandt
 
Posts: n/a
Default Re: internet access through another subnet

On Mon, 01 Mar 2004 01:02:25 +0000, Snowbat <snowbat@geocities.com> wrote:
> Ekkard Gerlach wrote:
>
>> I have to two subnets, two PC's:
>> 192.168.0.1 <-> ISDN/modem <-> 192.168.10.1
>> (ppp gets 192.168.10.20)
>> I
>> I
>> router-PC
>> 192.168.0.99
>> DSL -> internet
>>
>> The client 10.1 should have full access
>> to internet. I've already reached my target
>> by giving a 0.X-adress to the 10.1-machine.
>> But not with different subnets. (BTW: I search
>> a solution that can be expanded to two subnets:
>> 0.X and 10.X. But step by step ....)
>> 192.168.0.1 is calling 10.1 an gets: 192.168.10.20
>>
>> Thats what I tried to realize surfing from 10.1:
>>
>> 10.1: route add default gw 192.168.0.1 ippp1
>> entry in /etc/resolve.conf
>> 0.1: arp -Ds 192.168.10.20 eth0 netmask 255.255.255.255 pub
>> echo "1" > /proc/sys/net/ipv4/ip_forward
>>
>> ... but it doesn't work with different networks.
>> What is my fault?

>
> Did you add a route to 192.168.10.1 on router-PC?


Ie, route add -net 192.168.10.0 gw 192.168.0.1 dev (whatever-eth)

And does router-PC know to masquerade 192.168.10.0/24 network (or entire
192.168.0.0/16 block)?

And make sure that 192.168.0.1 box does NOT set a default route to its
ippp, since that should still point to router-PC.

--
David Efflandt - All spam ignored http://www.de-srv.com/
Reply With Quote
  #4 (permalink)  
Old 03-02-2004
Ekkard Gerlach
 
Posts: n/a
Default Re: internet access through another subnet

David Efflandt wrote:
>>
>> Did you add a route to 192.168.10.1 on router-PC?

>
> Ie, route add -net 192.168.10.0 gw 192.168.0.1 dev (whatever-eth)
>
> And does router-PC know to masquerade 192.168.10.0/24 network (or entire
> 192.168.0.0/16 block)?
>
> And make sure that 192.168.0.1 box does NOT set a default route to its
> ippp, since that should still point to router-PC.
>

thank you, your pointer were right. The IP-traffic reaches the
router PC and it going into internet. But nothing comes back.
First there was no routing to 10.x. I put the routing but nothing
more happens. I think I have to tell my SuseFirewall (Suse 8.2)
that there is a second network. I don't understand much of routing
firewall and masquerading. So, the next days I will read tutorials.
Before any other discussion here is not worth it.

thx
Ekkard
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:38 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0