Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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
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?
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.