Link to home
Start Free TrialLog in
Avatar of José Perez
José PerezFlag for Chile

asked on

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)
Avatar of Steven Vona
Steven Vona
Flag of United States of America image

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.
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?
Avatar of José Perez

ASKER

@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?
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial