LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cant contact the outside world... :( (https://www.linuxquestions.org/questions/linux-software-2/cant-contact-the-outside-world-278732/)

biscuitbarrel 01-17-2005 01:20 AM

cant contact the outside world... :(
 
hi peeps,

im having trouble with one of my linux boxs contacting the outside world.
the box in question is running suse 9.1 with samba 3.x.
its role is file/printer server for the homogene home network. i'm using fixed ip addreses with the host names and ip addresses saved in the host file.
the dns addresses are also entered (router address, and 2 external)
samba is running and working perfectly.

the problem is from the samba box no outside ip can be reached (internal subnet is 192.168.x.x)
im not sure if this is samba typical that all non internal ip addresses are ignored or if i forgot to do something. The samba box has 2 network cards. the second one isnt configured correctly yet as i wish to use the box as squid/proxy/mail server and as such nead to reach the outside world:
i believe this configuration should work with the samba box in a dmz without the needs for buying an expensive router with dmz function (the cheaper routers on the market tend to cover the fact that their dmz function is really just an unprotected host port)

i.e.:
WWW
|
router (192.168.1.1)
|
samba (192.168.1.200; 192.168.0.200)
|
(switch/router)
|
internal house network (192.168.0.x)

so my questions are:


a) what did i forget/ bugger up/ miss?
b)anything wrong with my topology, any improvements?


thx

MasterC 01-17-2005 01:58 AM

So your router's aren't connected directly to each other, but go through the SAMBA box first? This sounds odd to me, but maybe that's normal practice and I just am out of the loop ;)

If it's possible, I'd temporarily connect another regular box to the router that seperates the world from your samba box and try surfing with that.

Generally when I'm troubleshooting network problems (which I'm sure you have tried, but just to cover it) I start with pinging google and then google's IP. If neither work, I look at my network card, ensure it has an IP, and ensure I can ping my router. If the card has an IP, can ping the router, and even other boxes on the LAN, then I move onto router. Is it denying me for a reason I can fix, or is there something physically wrong with it? If the machine is setup as the DMZ host, is it blocked somehow from traffic one way or the other, does another router produce the same the result?

Cool

biscuitbarrel 01-17-2005 02:18 AM

sorry, your quite correct, the routers are connected together, the samba box into the first router, rest of the net in the second. my bad.

at the moment (at least until i can find my error) all the boxs are now in the same subnet (192.168.0.x), plugged into the one router (192.168.0.1)

im getting the same result, intern network fine
outside nothing. although i think i just pinged via host address and not using ip address (*sigh*)

im thinking it might be a dns problem (error from ping = no host found), i entered the data via yast and not directly by editing the files. i thought i checked them, but i'll recheck when i get home.

MasterC 01-17-2005 02:28 AM

Good idea, also, while you are at it, take down your hosts file, just temp. Move it to /tmp or something to ensure that you aren't resolving something funny.

Cool

biscuitbarrel 01-17-2005 02:34 AM

will do thx cool

biscuitbarrel 01-18-2005 02:12 AM

fixed:

guess one becomes too lazy when you use yast...*sigh*

the dns entry via yast wasnt being written to the /etc/resolv.conf file for some reason.
file vim'd, everything hunkydorey.
thx

MasterC 01-18-2005 02:14 AM

Sweeeeet, gotta love knowing how to do things on your own, just in case your lazy tools don't do it for you ;)

Cool


All times are GMT -5. The time now is 08:29 AM.