The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
restricting access to a server melanie_pfefer SUN Solaris 1 02-25-2008 02:55 PM
restricting root access keith.m UNIX for Advanced & Expert Users 2 08-31-2006 07:56 AM
restricting access max_min SUN Solaris 4 08-12-2004 02:20 AM
Restricting access ngagne UNIX for Dummies Questions & Answers 4 07-21-2001 09:44 AM
restricting access... alwayslearningunix Security 9 05-09-2001 07:13 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-17-2003
patch patch is offline
Registered User
  
 

Join Date: Jul 2003
Posts: 2
Post Restricting access to a machine by IP Address

I have a need to allow only certain IP addresses to access a machine running solaris 9. I am not sure how this can be accomplished.

Thanks in advance for your help.

Patch
  #2 (permalink)  
Old 10-19-2003
hassan2 hassan2 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2002
Location: London, England
Posts: 262
solaris 9 come with tcpwrapper which you can use to restricte access to certain ip address.

To enable tcpwrapper edit /etc/inetd.conf or /etc/inet/inetd.conf
to restrict telnet access

Do the following:
change this

telnet stream tcp6 nowait root /usr/sbin/in.telnetd in.telnetd

to

telnet stream tcp6 nowait root /usr/local/bin/tcpd /usr/sbin/in.telnetd

then edit /etc/hosts.allow and put the entry

in.telnetd: x.x.x.x

also

edit /etc/hosts.deny and put the entry

ALL: ALL

You can also do the above to restrict ip access for ftp, rsync, rcp,ssh and so on

Note

x.x.x.x is the ip address you want to allow access, it can also be in form of x.x.0.0/255.255.0.0
  #3 (permalink)  
Old 10-20-2003
patch patch is offline
Registered User
  
 

Join Date: Jul 2003
Posts: 2
Thanks for the hook up

patch
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On




All times are GMT -4. The time now is 02:42 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0