CentOS 7: Install Firewall, DCHP and DNS Server

Hi,
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)
LVL 2
José PerezAsked:
Who is Participating?
 
gheistCommented:
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....
0
 
savoneCommented:
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.
0
 
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?
0
 
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?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.