LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-15-2003, 11:08 AM   #1
renato167
LQ Newbie
 
Registered: May 2003
Posts: 16

Rep: Reputation: 0
Question newbie/ssh/slackware - questions


Hi All,

I thought I posted this earlier but it's not showing up so I'll try to remember the output from the commands I initiated from home earlier.


Problem.

I can't ssh into my Slackware 9.1 box from Windows 2000.

Slackware has squid running w/ basic authentication. Everything ok on that end.

I can ping slackware from windows via Dlink router/access point

Network is 192.168.0.0/255.255.255.0

Dlink is 192.168.0.1/24

Windows 192.168.0.102/24
Slackware 192.168.0.100/24

Can't ping windows from slackware.

Can't ping yahoo from slackware either but windows has complete internet access w/ slackware used as a proxy

iptables has not input

iptables -L

/etc/hosts.allow file contains

sshd : 192.168.0.0/255.255.255.0

netstat -nlp shows sshd listening

i can ssh slackware using localhost command

ssh localhost

when i try pinging yahoo, I receive unknown host error.

error is simple connection refused on port 22.

Any ideas on what I'm doing wrong?
 
Old 12-15-2003, 01:19 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
What's the output of
route
on the slackware box?

Did you specify the slackbox
as default gateway on the evil
operating system?


Cheers,
Tink
 
Old 12-15-2003, 01:40 PM   #3
renato167
LQ Newbie
 
Registered: May 2003
Posts: 16

Original Poster
Rep: Reputation: 0
the evil system(lol) has

192.168.0.102
255.255.255.0
192.168.0.1 (default gw)

slackware has

192.168.0.100
255.255.255.0

route command shows 192.168.0.1 has default gw


i find it weird that i can ping from windows the local net and the Internet, along with web browsing with the slackware as my squid server.

However, i can't ping the local net nor the Internet from slackware.
 
Old 12-15-2003, 02:19 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
I don't know ... maybe windohs is running a
firewall...

You listed /etc/hosts.allow....
What does hosts.deny look like?
If you were denying ALL:ALL and
only permitted SSH ....

Are you using names or IP's trying to ping
hosts on the internet?

Does name resolution work on Slack?



Cheers,
Tink
 
Old 12-15-2003, 02:41 PM   #5
renato167
LQ Newbie
 
Registered: May 2003
Posts: 16

Original Poster
Rep: Reputation: 0
well, i've turned off zone alarm on the windows box. host.deny doesn't have any hosts listed. I'm ping via www.cisco.com and slack returns host unknown. i'm at work now so i can't troubleshoot it but perhaps when i get home i'll look at the resolv.conf file.

but why can't i ping the windows box? it's on the same segment(lan)

route has default gw of my dlink router. i can ping slack using the ipaddress provided from windows.
 
Old 12-15-2003, 03:26 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Again, are you pinging it by a name, or the IP?

As for the outside world, what's the /etc/resolv.conf
like?


Cheers,
Tink
 
Old 12-15-2003, 04:39 PM   #7
renato167
LQ Newbie
 
Registered: May 2003
Posts: 16

Original Poster
Rep: Reputation: 0
I ping slackware box from windows using ip address, ie.

ping 192.168.0.100

reply from 192.168.0.100
reply from 192.168.0.100
""
""

I then, from windows ping www.yahoo.com and I get response as well.


Then when I log on my slackware, I ping using either hostname or ip address but no response from local network nor the Internet.

regards,

renato
 
Old 12-15-2003, 04:41 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Odd ... what's the output of
ifconfig
on the slack box?

Cheers,
Tink
 
Old 12-15-2003, 04:48 PM   #9
renato167
LQ Newbie
 
Registered: May 2003
Posts: 16

Original Poster
Rep: Reputation: 0
ifconfig shows eth0

192.168.0.100 255.255.255.0

route shows

192.168.0.1 as my default gateway....
 
Old 12-15-2003, 04:57 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Please post the entire output of
ifconfig?

Cheers,
Tink
 
Old 12-15-2003, 05:15 PM   #11
renato167
LQ Newbie
 
Registered: May 2003
Posts: 16

Original Poster
Rep: Reputation: 0
doh!

i'll have to reply later on. hopefully you'll be able to respond thereafter.
I'm at work and thus, unable to print output from said commands.

thanks for your help.

ciao..


regards,

renato
 
Old 12-16-2003, 02:20 PM   #12
renato167
LQ Newbie
 
Registered: May 2003
Posts: 16

Original Poster
Rep: Reputation: 0
tinkster,

i figured out the problem per your suggestion.

it was the resolv.conf file.

nameserver had my domain which isn't even registered. i used my dlink routers ip address in place of that domain and joila!!!

aok.


thanks a million...
 
Old 12-16-2003, 02:49 PM   #13
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Pleasure mate ... :}


Was it worth an affero? ;)


Cheers,
Tink
 
Old 12-16-2003, 04:44 PM   #14
renato167
LQ Newbie
 
Registered: May 2003
Posts: 16

Original Poster
Rep: Reputation: 0
forgive me for being a dunce on the subject matter but what is
an affero?
 
Old 12-16-2003, 07:31 PM   #15
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Just a nerd-rating thing :)


Click the button at the bottom of my
post that says affero :)
The rest is quite self-explanatory.


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SSH to UNIX, X forwarding... newbie questions bronzepiglet Linux - Networking 7 01-29-2005 05:47 PM
newbie slackware questions slinky2004 Slackware - Installation 5 10-05-2004 02:57 PM
A few Slackware questions (I'm a newbie) Trust Slackware 25 03-21-2004 02:40 AM
Newbie to Slackware. Couple Questions. snowiewolf Slackware 7 02-27-2004 04:34 AM
Configuration of SSH daemon on Slackware 9.1 - Newbie BenChase Slackware 7 12-14-2003 10:57 PM


All times are GMT -5. The time now is 04:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration