[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Setting up a linux server

Posted on 2004-11-10
Medium Priority
Last Modified: 2010-04-20
Could someone please help me, i need to configure a linux box to act as a mail server, webserver and a file server, on a windows network, ive tried and tried i can get one thing working then something else dosent, i think its just a matter of IP addresses as im not sure where to put what, here's IP Addresses im working with

Linuxserver needs to be
Client PC's range from -
with a netmask of

My ADSL Modem comes with the following Configuration

IP address
Preferred DNS
Alternate DNS
Default Gateway

My Plusnet connection gives me a static IP of  212.159.126.xxx

Could someone go through step by step where all the above information needs to go on the linux box as well as the individual client pc's.

Thanks in advance
Question by:damieneowen
LVL 38

Accepted Solution

wesly_chen earned 1000 total points
ID: 12545243
> Linuxserver needs to be
> Client PC's range from -
> with a netmask of

Your client PCs' should range from - with netmask
because is the broadcast address for your network.

> act as a mail server, webserver and a file server, on a windows network
So you are setting up
mail server -- Sendmail
webserver  -- Apache
file server for Windows -- Samba

> one thing working then something else dosent
Can you give more details about this? Such as error message and how something doesn't

Besides, which Linux you are using? Fedora/RedHat or SuSE?



Expert Comment

ID: 12549135
Need some more details as Wesly reported above.  If you can provide the following:

Distribution of linux (SuSE, Redhat, Fedora, etc)?

Is the Default Gateway a router or firewall of any kind?

With the linux box on the network, can it route traffic (ie ping) both internal and external machines?

Do you have a DHCP server in the 172. network?

In order to get a mail server to work corerctly you will need to make sure that your DNS MX record from your ISP is setup to point to your firewall or router, then being forwarded to the Sendmail server.  Will you be sending and receiving mail?  If receiving email will it be using POP3 or IMAP or both?

If the Webserver is going to service the internet, the same applies as with Sendmail.  The firewall or router that is configured for your internet IP has to forward the port 80 to the internal Webserver.


In my experience when first learning to set up linux servers I found it best practice to start small and with a single task.  Once you have that down and working, slowly add services one at a time and get a full understanding of each task.  I know that a lot of the HOWTOs are very cumbersome for administrators new to linux.  With this is mind, all three of the services that you want to use are very versitile and require a lot of time to learn from the ground up.  There is security to keep in mind (both internet and local), configuration troubleshooting and regular patching and maintenance.

LVL 38

Expert Comment

ID: 12549210

   As a beginner (I was before), you can go to download webadmin to asist you through the configuration (GUI):

   I setup webadmin for my boss (Windows guy) to back me up.


Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.


Expert Comment

ID: 12549312
Be careful with Webmin you are allowing simple root access via clear text web sessions.  I must admit it was a useful tool until I learned how to do things without a 3rd party tool.  It's been a long time (many years) since I've used Webmin so I hope that they've tightened it up some.  At the very least, I would not leave the service running by default and just shell in, turn it on when needed, then shut it down.  Militant security folkes would want to setup iptables to only allow access to the Webmin interface from specific IPs =)  I'm not talking down Webmin, just use it with caution because it is a major cenvenience tool.

LVL 24

Expert Comment

ID: 12563149
with all respect, you ask a bit too much IMHO. Setting up Linux Servers is not terrible difficult but you have to know quite a bit about the diverse options.

What Web Server?
What MTA (sendmail,qmail,postfix,exim ...)?

What do you mean by Mail server? Do you want to store the mails on the Server do you want to offer pop3 acess?

For serving windows boxes you have to learn about Samba.

You did not even mention any kind of security. I assume you do not want to serve
the whole world, so you want probably learn about
- firewalls
- ssh
- maybe certificates

and more.

So if you do not even know how to start with the simplest problems, it's will be very very tough for you to set up all the things you want to do.


LVL 31

Expert Comment

ID: 12568326
"Linuxserver needs to be
Client PC's range from -
with a netmask of

My ADSL Modem comes with the following Configuration

IP address
Preferred DNS
Alternate DNS
Default Gateway"

This does not make 100% sense to me

If your server is behind that modem, it cannot use a 172.26 address range very easily - it would need to be in the same (private) subnet as the gateway (the modem/router "inside").

If you are using the 172.26. .  address as your outward visible IP, there needs to be a router somewhere in the setup that does NAT, and you need to set up port forwarding for the web and mail traffic that your server is supposed to do.

If you get a static IP of 212.159..., where does the 172.26... range come into play? The mask seems odd, too. You'd have at least three addresses for your outward IP (network, broadcast and gateway) and the mask should end in .252 or something.


Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month19 days, 13 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question