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....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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? |
|
|||
|
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/ |
|
|||
|
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 |