LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-04-2016, 11:30 AM   #1
harish-mn
Member
 
Registered: Sep 2016
Posts: 37

Rep: Reputation: Disabled
Wink access denied on other internet network


Hello
I would like to say am totally new in Linux platform so i have a simple question please suggest me.

I have one dedicated Linux server.

i want to access this server in only my internet network not to other..If anyone try to access this server in other internet network then it would give the message like access denied on this network.

so please help me how can i do this
 
Old 11-05-2016, 04:55 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
Quote:
Originally Posted by harish-mn View Post
I would like to say am totally new in Linux platform
While Linux as a whole, and certainly mainstream Linux distributions, have come a long way, working with Linux efficiently and safely requires you to have knowledge. So if you are new to Linux then you will want to read the (security) documentation your Linux distribution offers you and practice common admin tasks. Please know running a server with a Control Panel (or GUI) is no substitute for actual practical knowledge.


Quote:
Originally Posted by harish-mn View Post
i want to access this server in only my internet network not to other..If anyone try to access this server in other internet network then it would give the message like access denied on this network.
*Would your current question perhaps have anything to do with this: https://www.linuxquestions.org/quest...ts-4175591988/ ? Either way please update that thread with relevant information and stay with it until completion.


Quote:
Originally Posted by harish-mn View Post
i want to access this server in only my internet network not to other.
So what other networks are available to your server ('ifconfig -a;'?)?
What does your firewall rule set look like ('sudo iptables-save;')?
What have you already read and done to research / answer your question?
 
Old 11-05-2016, 08:29 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,895
Blog Entries: 27

Rep: Reputation: 4672Reputation: 4672Reputation: 4672Reputation: 4672Reputation: 4672Reputation: 4672Reputation: 4672Reputation: 4672Reputation: 4672Reputation: 4672Reputation: 4672
Quote:
i want to access this server in only my internet network not to other..If anyone try to access this server in other internet network then it would give the message like access denied on this network.
It looks to me as if this really isn't a Linux problem, but a networking problem. We need a bit more information about this situation. In addition to the questions unSpawn posed, what exactly do you mean by "my internet network" in the sentence below?

Quote:
i want to access this server in only my internet network not to other.
Is the server local to you, that is, is it inside your local network on the same subnet as your computer?
 
Old 11-07-2016, 08:24 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179
A very simple solution to your requirement ... available on all types of computers and operating systems ... is a firewall.

In fact, probably several firewalls: one on the router that provides access to this network "from the outside," and a second one on the target computer itself.

A firewall simply consists of a set of rules that are applied, by the operating system, to every incoming and outgoing packet. The rules will direct one disposition for each packet: ACCEPT, REJECT, or DROP.

If you "reject" the packet, they will be notified of the rejection. (But it won't be any sort of "access denied.") If you "drop" it, they won't receive any response at all.

Every operating system has some implementation of this, and some user-interface for it, as do most routers. In Linux, the low-level interface is iptables, although there are a variety of interfaces (such as Ubuntu's "UFW = Uncomplicated FireWall") to make it more palatable. The behavior and general features of all firewalls will be more-or-less the same.

Firewalls are suitable if the connections can be reasonably trusted, i.e. no one is trying to "spoof" or otherwise trying seriously to penetrate anything. The packets can be accepted for what they say that they contain, and disposed-of accordingly by the firewall.

Firewalls can also be a very useful "housekeeping" tool, since they will reliably interdict traffic that you didn't want or expect to be in some particular place within your internal network. (After all, there's no reason for servers in some part of your network to be accepting and discarding "garbage" that they never were intended to see and that they can't do anything with. "Head 'em off at the pass!")

Last edited by sundialsvcs; 11-07-2016 at 08:31 AM.
 
  


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
Access to /etc/network/interfaces denied jbis2k Linux - Newbie 3 02-24-2013 08:21 PM
openssh-server access denied from internet drdale Debian 8 09-30-2009 02:48 PM
Not able to access network printer access denied. arvind.s Linux - Networking 1 08-04-2009 07:05 PM
Ubuntu 8.04 in mixed Mac & Windows network Internet access but no access to network. traveller7 Linux - Networking 1 01-10-2009 08:53 PM
access to Internet denied paulgiles Linux - Hardware 15 06-02-2005 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:38 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration