LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-13-2009, 09:47 PM   #1
Winanjaya
Member
 
Registered: Sep 2003
Posts: 239

Rep: Reputation: 32
Unhappy how to deny unknown users


Dear All,

I need to deny unknown users who knows our LAN IP address to login to our LAN.. any body have solution for this?

please help

thanks & regards
Winanjaya
 
Old 05-13-2009, 09:49 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Deny them doing what? Presumably they can't log into any network services without being a valid user.
 
Old 05-13-2009, 10:01 PM   #3
Winanjaya
Member
 
Registered: Sep 2003
Posts: 239

Original Poster
Rep: Reputation: 32
Except for internet browsing we able to deny them based on MAC Address .. , but they are still able to get shared file, folder and printer.. any idea?

can I also use dhcpd for doing this?
 
Old 05-13-2009, 10:32 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Winanjaya View Post
I need to deny unknown users who knows our LAN IP address to login to our LAN.. any body have solution for this?
Quote:
Originally Posted by Winanjaya View Post
Except for internet browsing we able to deny them based on MAC Address .. , but they are still able to get shared file, folder and printer.. any idea?

can I also use dhcpd for doing this?
It sounds like they have physical access into your LAN (since you are referring to MAC addresses, which are directly above the physical layer), so a network firewall wouldn't help (and a DHCP server is beside the point). With that in mind, host-based security on the file/print server would be an option. What kind of file/print server is it? If you post that information, someone may show you how to setup authentication on it. Of course, this whole situation begs the question: How is it that they are gaining physical access in the first place?

Last edited by win32sux; 05-13-2009 at 10:35 PM.
 
Old 05-13-2009, 10:41 PM   #5
Winanjaya
Member
 
Registered: Sep 2003
Posts: 239

Original Poster
Rep: Reputation: 32
The problem is they can manually configure an interface on their computer, is there any access control list that can block access in this case? such as client to have a certificate to access the network or something like that?
 
Old 05-13-2009, 11:52 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Are you sharing a LAN in a suite? Where are these people who can connect? Why don't you have physical control?

How is the file service offered? Is it NFS or Samba or other?

If it is samba, then you should be using at least "Security = User" mode so only authenticated users have access.
You can also include other options in your smb.conf file for host access controls.

Using DHCP, you could control who is automatically assigned an IP address, but a person could easily assign it manually. DHCP is just a convenience, that is used to provide the DNS, IP, gateway & netmask values.

---
p.s. I had this setting a while before I posted it, so some of the questions were subsequently
asked.

Last edited by jschiwal; 05-14-2009 at 12:02 AM.
 
Old 05-14-2009, 01:17 AM   #7
Winanjaya
Member
 
Registered: Sep 2003
Posts: 239

Original Poster
Rep: Reputation: 32
Yes, it is Windows NFS and I have LAN in a 2floors building, peoples can connect from any UTP faceplate..

what do you mean by physical control? .. is that Managable switch?
 
Old 05-14-2009, 02:02 AM   #8
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Winanjaya View Post
Yes, it is Windows NFS and I have LAN in a 2floors building, peoples can connect from any UTP faceplate..

what do you mean by physical control? .. is that Managable switch?
Physical control would involve, for instance, the ability to limit who can "connect from any UTP faceplate". Assuming you don't have any physical control, you should still be able to set authentication on the "Windows NFS" in order to deny access to non-authorized users. Another option would be to implement a centralized authentication system (RADIUS, Kerberos, etc) and use that to lock down access to all shared resources. Regardless of what you do, your lack of physical control creates huge security problems which go way beyond unauthorized file/print server access.

Last edited by win32sux; 05-14-2009 at 02:24 AM.
 
Old 05-14-2009, 08:17 AM   #9
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
802.1x Port based access control

http://tldp.org/HOWTO/8021X-HOWTO/

http://open1x.sourceforge.net/
 
Old 05-22-2009, 08:43 AM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Windows NFS somehow sounds like an oxymoron. You will want to read the windows documentation on what kind of security it supports.
Quote:
For some background, from the nfs manpage (openSUSE linux):
sec=mode The RPCGSS security flavor to use for accessing files on this mount point. If the sec option is not specified, or if sec=sys is specified, the NFS client uses the AUTH_SYS security flavor for all NFS requests on this mount point. Valid security flavors are none, sys, krb5, krb5i, krb5p, lkey, lkeyi, lkeyp, spkm, spkmi, and spkmp. Refer to the SECURITY CONSIDERATIONS section for details.
You are in such a hostile environment, that you also should make sure you are running firewalls on all of your hosts.
You might also consider using a VPN tunnels between your hosts. Your situation is insanely insecure. NFS may be the least of your worries. You aren't in control of your network and are in an environment that resembles a hotel or open hotspot network.

Last edited by jschiwal; 05-22-2009 at 08:48 AM.
 
  


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
deny browse access to users iinfi Linux - Server 2 01-15-2009 12:52 AM
ssh: deny all users, except one hamish Linux - Security 13 09-07-2008 07:58 PM
HowTo sshd deny all users except for one? mattengland Linux - Security 28 11-04-2007 02:53 PM
deny login to users sachin1361 Linux - Enterprise 1 02-28-2007 03:01 AM
how to deny all users in vsftp except one? lzyking Linux - Software 7 12-11-2002 10:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:05 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