Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Networking > router preventing samba share from reaching higher subnet

Forgot Password?
 Linux Networking   Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 4 Weeks Ago   #1 (permalink)
Just Joined!
 
Join Date: Dec 2006
Posts: 83
router preventing samba share from reaching higher subnet

hope i worded that correctly..
basically the situation is this:
i have a working samba share, it been working for some time...however when i hooked up a new router to the old router, people connected to the first router cannot connect to my samba share.

here is a diagram:
Code:
(modem)---(10.0.0.1)-┐--(192.168.1.1)---(my computer with the sama share)
                     ├(friends computer)
                     └(other friends computer)
no ones connected to 10.0.0.1 can't access my server at 192.168.1.100
the_ultimate_samurai is offline  


Reply With Quote
Old 4 Weeks Ago   #2 (permalink)
Linux Guru
 
coopstah13's Avatar
 
Join Date: Nov 2007
Location: NH, USA
Posts: 1,760
is there a real need for 2 routers? You could try adding a route to the 192.168.1 subnet via 10.0.0.1 on the clients.
coopstah13 is offline   Reply With Quote
Old 4 Weeks Ago   #3 (permalink)
Just Joined!
 
Join Date: Dec 2006
Posts: 83
hm?
the two routers issue is more or less geographical. i needed to connect my 2 friends computers, my computer, and sadly...their xbox 360 to the network...which happen to all be spread out as far as humanly possible from the router.
as for adding a route to 192.168.1 subnet...im not sure how to do that (also note...im the only linux system here)
the_ultimate_samurai is offline   Reply With Quote
Old 4 Weeks Ago   #4 (permalink)
Linux Guru
 
coopstah13's Avatar
 
Join Date: Nov 2007
Location: NH, USA
Posts: 1,760
So you are all in the same location? Why not just use the 10.0.0.1 router for its switch ports instead of plugging into WAN? Or if you can afford it, a small 4 or 8 port switch is fairly cheap these days. Multiple subnets just gets overly complicated for home networking...
coopstah13 is offline   Reply With Quote
Old 4 Weeks Ago   #5 (permalink)
Linux Engineer
 
Lazydog's Avatar
 
Join Date: Jun 2004
Location: The Key Stone State
Posts: 1,187
How are you connecting everything together? Are you connecting the WAN port of 192.168.1.1 to a normal port 10.0.0.1? If you are then you have to tell everyone to look for your share on the ip address that 10.0.0.1 has assigned to 192.168.1.1 router. Then on the 192.168.1.1 router you have to do port forwarding to to the address of the share.
__________________

Regards
Robert

Linux
The adventure of a life time.

Linux User #296285
Get Counted
Lazydog is offline   Reply With Quote
Old 4 Weeks Ago   #6 (permalink)
Linux Newbie
 
Join Date: Sep 2004
Location: UK
Posts: 114
Can the machines on 10.0.0.x network ping the machine on 192.168.1.x network?

1. If no then you need to turn off the firewall on the 192.168.1.x router
2. On the 10.0.0.x router (or each machine on the 10.0.0.x network) add a network route in the routing tables to give them access to the 192.168.1.x network.

eg. if the second router (192.168.1.1) has an ipaddres off 10.0.0.5 (on the 10.0.0.x network) then on a linux box (on the 10.0.0.x network) you would do something like

route add -net 192.168.1.0.0 netmask 255.255.255.0 gw 10.0.0.5

If you can add a route to the 192.x.x.x network in first router (10.0.0.1), even better.
__________________
In a world without walls and fences, who needs Windows and Gates?
blinky is offline   Reply With Quote
Old 4 Weeks Ago   #7 (permalink)
Linux Newbie
 
Join Date: Sep 2004
Location: UK
Posts: 114
Just to clarify

Code:
                  10.0.0.1     10.0.0.5   192.168.1.1
modem --- (   router#1   ) ------ (   router#2 )
                       |                   |
                       |                   |--- 192.168.1.20 (node_1)
                       |
                       |----- 10.0.0.10 (node_2)
                       |----- 10.0.0.11 (node_3)
Either add a route in router#1 to the 192.168.1.x network (via router#2)
or
Add route to node_2 and node_3 to the 192.168.1.x network (via router#2)

Hope it makes sense
__________________
In a world without walls and fences, who needs Windows and Gates?
blinky is offline   Reply With Quote
Old 4 Weeks Ago   #8 (permalink)
Linux Newbie
 
Join Date: Sep 2004
Location: UK
Posts: 114
forgot to add:

I would go with coopstah13 idea - far simpler than multiple subnets
__________________
In a world without walls and fences, who needs Windows and Gates?
blinky is offline   Reply With Quote
Old 4 Weeks Ago   #9 (permalink)
Just Joined!
 
Join Date: Dec 2006
Posts: 83
im not all together sure what most of that means...wan is wireless isnt it? no one is connected via wireless...
i may be confusing peple with the use of subnet...im not sure if that is the right word...
but the connection is such that my friends are hooked into the router with the 10.0.0.1 address and the router I am hooked into has a 192.168.1.1 address, that router is connected such that the cord going from the first router is plugged into the internet port and i am hooked into port 1. the router itself i think was in gateway mode or something...i switched it to router mode and put the cord in port one (and myself in port 2) and this allowed samba to get through to the other people (who btw could not previously ping me but i could ping them...) however then port 80 was no longer routed so i couldnt get my webpage to show...
i havent really fixed the problem i more or less just gave up on it...
the_ultimate_samurai is offline   Reply With Quote
Old 4 Weeks Ago   #10 (permalink)
Linux Engineer
 
Lazydog's Avatar
 
Join Date: Jun 2004
Location: The Key Stone State
Posts: 1,187
Quote:
Originally Posted by the_ultimate_samurai View Post
im not all together sure what most of that means...wan is wireless isnt it? no one is connected via wireless...
WAN = Wide Area Network (i.e. the internet)
LAN = Local Area Network (i.e. Home/office network)
WLAN = Wire Network

Quote:
i may be confusing peple with the use of subnet...im not sure if that is the right word...
That is the correct word.

Quote:
but the connection is such that my friends are hooked into the router with the 10.0.0.1 address and the router I am hooked into has a 192.168.1.1 address, that router is connected such that the cord going from the first router is plugged into the internet port and i am hooked into port 1.
Ok. Are you using a cross-over cable to connect the 2 routers?

Quote:
the router itself i think was in gateway mode or something...i switched it to router mode and put the cord in port one (and myself in port 2)
We are talking about router 2 here I will assume.

Quote:
and this allowed samba to get through to the other people (who btw could not previously ping me but i could ping them...)
Most likely a firewall rule that was not allowing ping to your system.

Quote:
however then port 80 was no longer routed so i couldnt get my webpage to show...
i havent really fixed the problem i more or less just gave up on it...
No! You cannot give up. This is how you learn something. Hack away at ti until you get it figured out.
You will have a sense of accomplishment when you do fix it.
__________________

Regards
Robert

Linux
The adventure of a life time.

Linux User #296285
Get Counted
Lazydog is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:51 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2