LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 02-04-2011, 11:28 PM   #1
mosharaf_linux
Member
 
Registered: Aug 2008
Location: Chittagong
Distribution: Red hat 9, Fedora, Centos, RHEL5, Debian
Posts: 53
Blog Entries: 1

Rep: Reputation: 0
Blocking a IP address


How to block an ip address from mikrotik so that when a fake user use this ip he does'nt get internet but in the mean time real user gets internet. Real user will not harm if fake user trying to access.
 
Old 02-05-2011, 12:34 AM   #2
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 54
I can't understand this post. First of all, if you block an IP address you only block *one* site, not the entire Internet (unless you're talking about blocking the IP address of the computer in question). Secondly, the grammar in that post is hard to understand.

However, to block Internet access from a particular user, what you would do is take the Internet configuration files (/etc/hosts and /etc/resolv.conf) and edit the permissions on them so that the user(s) in question cannot access them at all -- perhaps by logging into that user's account and typing:

Code:
sudo chmod u-rwx /etc/hosts
sudo chmod u-rwx /etc/resolv.conf
Then, log into your account again. In doing this to users one by one you can block them from accessing the Internet at all.
 
Old 02-10-2011, 02:26 AM   #3
mosharaf_linux
Member
 
Registered: Aug 2008
Location: Chittagong
Distribution: Red hat 9, Fedora, Centos, RHEL5, Debian
Posts: 53
Blog Entries: 1

Original Poster
Rep: Reputation: 0
I just means that in local network when 2 pc are connected by a switch assigning same ip address. Is there any solution that one user can get desire service but other user not?
 
Old 02-10-2011, 04:27 PM   #4
lazydog
Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Kubuntu Sabayon Peppermint
Posts: 46

Rep: Reputation: 4
You could use IPTABLES and block on the MAC address. Then it doesn't matter what IP Address he has his connections will be blocked.

I just question why you allow someone to use a fake IP Addres on your network.
 
  


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
Blocking dhcpd address lease for specific MAC address kulman Linux - Server 8 03-30-2013 01:51 PM
blocking email address kwaslee Linux - Server 1 08-11-2009 09:02 AM
"Deny from" IP address using http.conf (Apache 2) not blocking the IP address griffey Linux - Security 2 02-22-2008 08:32 AM
MAC address blocking ridwan77 Linux - Newbie 1 04-22-2007 12:08 PM
blocking a address in sendmail roopunix Linux - Networking 1 08-25-2005 03:51 AM


All times are GMT -5. The time now is 06:35 AM.

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