LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-13-2008, 09:33 PM   #1
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158
Blog Entries: 1

Rep: Reputation: 30
Internet Access from the Server


This may be a "desktop" or "networking" question instead of a "server" question, but I'm using the Linux OpenSuSE 11.0 with Samba as a file server for my 2 XP Pro boxes, and the network is "assumed" to be working (it is) at this point.

I can't surf! I can hit the Internet from both XP boxes, and I can hit the server from both XP boxes. But, I can't surf the Internet from the server. This is really no big deal, and may be a security plus. But, here's what happened...

I had everything set up and working perfectly, using our years old Belkin wired router (PPPoE on the router and the DSL modem bridged). This included surfing from all 3 machines.

We just built brand new boxes and all 3 have gigabit cards. So, I thought I'd take advantage of the gigabit for doing file transfers - especially considering that I'm moving tons of data off the desktops onto the server. The brand new D-Link broadband gigabit router would only allow the server and ONE (whichever booted up first) computer to be on the network (in the workgroup).
I made NO changes to the server or either XP box or the Belkin - but I did reconfigure the new D-Link to the IP scheme that the Belkin had (nothing worked otherwise). D-Link customer support said that if they're surfing, they don't support file/printer sharing, so I'm getting an RMA and sending back this piece of junk (it won't even respond anymore).
But, when I reconnected the Belkin for the final time (after going back & forth several times), nothing worked, even after taking it all off-line and rebooting each piece of equipment, in order.
  • Finally, I removed the configuraion in YaST's Network Devices - Network Settings, rebooted, then reinstalled it, and I'm now able to access the files from the XP boxes.
  • But, I can't hit the Internet from the OpenSuSE server, and I am surfing up a storm (& moving files to the server) from both XP boxes.
  • I can surf all around my server from the server browsers, but I can't get to the Internet - either with IPs or Domain Names.
  • I CAN surf to the router's IP address from the server, but I can't surf to Google's IP address from the server.
  • There's no blocked anything in the router to prevent any connected device from accessing the Internet.
The only real utility I have for surfing from the server is to update server software. I can, admittedly, do this from my desktop and save the files to the server, so I'm not losing MUCH sleep over this. But, any hints would be a HUGE help.

Thanks,
David
San Antonio, TX
 
Old 12-14-2008, 08:35 AM   #2
bmarx
Member
 
Registered: Dec 2004
Distribution: Slackware, Arch, FreeBSD
Posts: 202

Rep: Reputation: 34
First thing you may want to check is if you have a default route on the server: ~$route. If not, you may want to point it at your belkin router.

Are your devices being assigned ip addresses through dhcp? Are there any logs you can check on the belkin router to confirm which machines are getting which address? What does ~$dhcpcd -d show?
 
Old 12-14-2008, 09:16 AM   #3
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
What do you get with nslookup from the server?:
Code:
nslookup www.linuxquestions.org
 
Old 12-14-2008, 02:54 PM   #4
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Quote:
Originally Posted by bmarx View Post
First thing you may want to check is if you have a default route on the server: ~$route. If not, you may want to point it at your belkin router.
I typed in
Quote:
~$route
& it came back with
Quote:
-bash: ~: command not found
I typed in
Quote:
$route
& it came back with nothing, just the prompt.

I typed in
Quote:
route
& it came back with
Quote:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
The router is 192.168.2.1, and it does show the connections. However, it only shows mine right now (doesn't even show April's computer, even tho it's connected, has access to the Linux server, and is able to surf the Internet). It DID show all 3, but apparently, somewhere in all the booting & rebooting, it got a little confused. Now that I have everything working, I'm going to shut it all down & reboot it from scratch (yet again) & hope that everything works at least as good as it's working right now.

Quote:
Originally Posted by bmarx View Post
Are your devices being assigned ip addresses through dhcp? Are there any logs you can check on the belkin router to confirm which machines are getting which address? What does ~$dhcpcd -d show?
I typed in
Quote:
~$dhcpcd -d
& it came back with
Quote:
-bash: ~: command not found
So, I tried just
Quote:
$dhcpcd -d
& it came back with
Quote:
-bash: -d: command not found
So, I tried just
Quote:
$dhcpcd d
& it came back with
Quote:
-bash: d: command not found
So, I tried just
Quote:
$dhcpcd
& it came back with nothing, just the prompt.

So, I did this:
Quote:
RCH-SERVER:~ # dhcpcd -?
& it came back with this:
Quote:
dhcpcd: invalid option -- '?'
usage: dhcpcd [-adknpEGHKMNRSTYKD] [-c script] [-h hostname] [-i classID]
[-l leasetime] [-m metric] [-r ipaddress] [-s ipaddress]
[-t timeout] [-u userclass] [-F none | ptr | both]
[-I clientID] <interface>
RCH-SERVER:~ #
Note, RCH-SERVER is the name of the server, I'm logged in as root, and I'm able to open a terminal session from my WinXP Pro workstation using Putty.

Is there another command you meant to offer up? Or another option?
Thanks,
-> David



Quote:
Originally Posted by Disillusionist View Post
What do you get with nslookup from the server?:
Code:
nslookup www.linuxquestions.org
It's showing:

Quote:
;; connection timed out; no servers could be reached
Maybe this is something meaningful & you'll have a suggestion?
Thanks,
-> David
 
Old 12-14-2008, 04:17 PM   #5
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
As root (or using sudo) run the following:

Code:
route add default gw 192.168.2.1
Additionally, what is in your /etc/resolv.conf file?

I'm assuming it should say:
Code:
nameserver 192.168.2.1

Last edited by Disillusionist; 12-14-2008 at 04:24 PM.
 
Old 12-14-2008, 05:56 PM   #6
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Quote:
Originally Posted by Disillusionist View Post
As root (or using sudo) run the following:

Code:
route add default gw 192.168.2.1
]
Executing the command from a terminal screen {F1} and logged in as root, the response is:
Quote:
SIOCADDRT: No such process

Quote:
Originally Posted by Disillusionist View Post
Additionally, what is in your /etc/resolv.conf file?

I'm assuming it should say:
Code:
nameserver 192.168.2.1
The file resolv.conf contains only
Code:
### BEGIN INFO
#
#
### END INFO
#
search site
It's almost as if DHCP simply doesn't exist on the computer. Mind you, it WAS working fine. I've got the OpenSUSE 11.0 and SUSE Linux Enterprise Server Bible to help guide me through this, but even the applications such as DHCP Server do not exist in my YaST interface. I did have it working, straight out of the box, but using that worthless D-Link broadband gigabit piece of trash caused me to try setting up static IPs, and now I can't get back to where I was. I sound like someone who has no clue about networking, but I've set up a good number of networks using MS products.

I THINK I should be able to setup the DHCP client using the YaST GUI, but I'm just spinning my wheels going nowhere.
 
Old 12-14-2008, 10:02 PM   #7
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Ok, I've FDISK'd (in FREEDOS) my OS drive (not touching the 4 disk RAID5 array), and reinstalled OpenSuSE from scratch, including some of the software that I failed to check when I originally installed it (file server, etc.). I had to go into Partitioner and remount the RAID5 array, and my data is still there, too (whew!).

Now, I've just got to go through the process of re-sharing the drive/folder, setting up the SMBPASSWD for each XP user, etc. But, I've got Internet access from the server. The rest is (has become) routine for me.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
internet server that use a prepaid account to access the internet elgieb1 Linux - General 0 02-19-2007 11:59 PM
Clients can't access internet through server Lenard Spencer Linux - Networking 1 09-02-2006 03:57 PM
Unable to access my ssh server and ftp server from the Internet, but smtp works foxone Linux - Networking 1 05-28-2004 05:17 PM
Internet Access via Server louisb Linux - Security 3 01-09-2004 10:46 PM
Network access OK but server cannot use internet gkhewitt Linux - Networking 6 08-04-2003 08:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration