CentOS 7: Install Firewall, DCHP and DNS Server

Since I was hacked, I am now trying to re-build my little company network. I have 5 Workstations and 3 servers. I was using Microsoft Servers without a firewall.

I still don't have enough money to buy a dedicated Firewall appliance, so I decided to install a Linux Firewall directly to the Internet so any connection to our Public IP goes through the Firewall first. My intention is that the firewall should have 2 NIC's one to connect to Internet and the other to a Gigabit switch that connects to our machines.

I started installing a CentOS7 Linux, then enabled the Firewalld software. Now, I want to make this Linux box as a DCHP and DNS server.
Can someone helpme to do it? (I have tried several tutorials on the net but nonething has worked yet)
José PerezAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Install DNS:

yum install bind

Install DHCP:

yum install dhcp

Configuring those services is beyond a quick reply answer.  There are so many variables that it would be nearly impossible without A LOT more information.

Also, if you are not familiar with Linux you might be causing more problems that solutions.  Linux is only secure if you know what you are doing.  I do not know your skill level, but to have a public facing server requires a lot of security conscious decisions during configuration.

Are your servers public facing?  Do they need to be accessed by people outside of your "office"?

If the answer is no, you are probably better off going out and buying a Small Office firewall/router.
Zephyr ICTCloud ArchitectCommented:
Why not go with something like pfsense?

It's got all the features you need, DNS, Firewall and DHCP and much more as well ... Just need to make sure your hardware is supported... Setting up something from scratch is nice if you really know what you are doing, but when something is available for free and does exactly what you need (and more) ... Why not try it?
José PerezAuthor Commented:
@spravtek I would love to deploy pfSense! but I have tried twice but in the WAN interface configuration step it displays a "No link-up detected" when connecting the internet cable... the cable do has Intenet signal, but it stills displays the error :(

If I create a new question in EE for pfSense, think you can help me with it?
Try openwrt i386... there are lots of free router software around, all equipped with PPPoE, DNS and DHCP servers and clients. Full-scale Linux distribution is like killing flies with cannons....

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.