Go Back   The UNIX and Linux Forums > Operating Systems > Solaris
google site



Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Search this Thread
  #1  
Old 03-13-2010
Registered User
 

Join Date: Mar 2010
Posts: 6
Thanks: 3
Thanked 0 Times in 0 Posts
SSH/Firewall issue

I am a complete UNIX neophyte with the unenviable task of trying to pseudo manage two SUN boxes with an unknown past. I was not responsible for setting them up, anything that was done on them previously, and have no means of figuring out anything that was done to them. So far I have changed the IPs and enabled root access for SSH. I also changed the IP in /etc/hosts associated with one of them from its previous public IP to its current IP on the local (private) network. Otherwise I have done nothing.

The machines are named Sun1 and Sun2 and are both on the same network. Everything works fine on Sun1. I can ssh into it from anywhere. For Sun2, however, I can only ssh into it from a client that is on the same network but not from a client on another network. For now, the user has been ssh'ing into Sun1 and going from there to Sun2. This works but is awkward.

I first suspected a firewall was active on Sun2 but ipfstat shows nothing and there are no rules defined in /etc/ipf/ipf.conf. As far far as I can tell ipf is not even running anyway. Is there some way I can tell for sure if a firewall is running somewhere on Sun2? Is there some other ssh setting that would allow only LAN access? I also compared /etc/ssh/sshd_config between Sun1 and Sun2 and could not find any differences.
Sponsored Links
  #2  
Old 03-13-2010
System Shock's Avatar
Registered User
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 546
Thanks: 0
Thanked 3 Times in 2 Posts
Are you sure the default route and netmask are set correctly in sun2?
  #3  
Old 03-14-2010
Registered User
 

Join Date: May 2008
Location: SINGAPORE.. The "FINE" City
Posts: 2,671
Thanks: 0
Thanked 8 Times in 8 Posts
check your /etc/hosts.allow and hosts.deny files in Sun2
  #4  
Old 03-14-2010
Registered User
 

Join Date: Sep 2007
Location: SE Mass
Posts: 193
Thanks: 0
Thanked 0 Times in 0 Posts
By the way, I really wouldn't advise enabling ssh for root unless absolutely necessary.

Better to ssh in as an ordinary user and su or sudo.

When testing for firewalls, a simple test for any protocol is to try

telnet sun2 (port)

which in this case is 22.

If nothing is blocking that, you'll see something like

Trying x,.x.x.x
Connected to sun2
Escape character is '^]'.
SSH-2.0-OpenSSH_4.3

(with that last line varying, of course)

If you don't get that, yes, you are looking at a firewall or routing issue. If you do get it, then ssh itself is refusing you and your next move is "ssh -v" to figure out why.

Note: Because ssh HAS -v, you don't really need the "telnet sun2 22" - the "ssh -v" would hang if it is blocked by a firewall or routing. It's just a good trick to keep in mind for any sort of access.
  #5  
Old 03-14-2010
Registered User
 

Join Date: Mar 2010
Posts: 6
Thanks: 3
Thanked 0 Times in 0 Posts
It was the default gateway. I had changed it initially using route delete/add but apparently that doesn't permanently change it. It went back to the old default route after someone rebooted. I did delete/add again and changed it in /etc/defaultrouter and now it works. The change should be persistent over reboots this time I hope.
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
vpnclient firewall policy mismatch issue zing_foru UNIX for Advanced & Expert Users 1 08-21-2009 06:40 AM
Set up your firewall with Firewall Builder Linux Bot UNIX and Linux RSS News 0 08-14-2008 04:30 AM
Unix Arithmatic operation issue , datatype issue thambi Shell Programming and Scripting 23 02-19-2008 06:19 AM
linux firewall / dns issue frankkahle UNIX for Advanced & Expert Users 1 06-13-2006 12:53 AM
What Firewall do you use? tarballed Security 5 08-08-2002 12:17 AM



All times are GMT -4. The time now is 09:21 PM.