linux network bridge/router

im trying to get my linux box to act as a website host and a bridge to my wireless network, i got the hardware to do it, just need help on configuring everything right. running redhat8
Who is Participating?
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.


Make sure iptables start at boot.
Create the file /etc/sysconfig/iptables
Which should conatin the following:
:PREROUTING ACCEPT [25196:1898884]
:POSTROUTING ACCEPT [14998:1131452]
:OUTPUT ACCEPT [43648:2908137]
:INPUT ACCEPT [523751:223511834]
:FORWARD ACCEPT [49970:22849700]
:OUTPUT ACCEPT [585526:308231978]

This is if eth0 is your outside interface, change it for whatever net interface you use for outside.

Setup eth0 and eth1 as you like either by netconfig, linuxconf or manually, your choice.

If you're not using DHCP on your eth0 interface configure DNS servers and everything.

Setup a caching DNS on your linux box.
This is done by simple rpm -ivh named-x.x.x.i386.rpm, if you don't allready have done that.
Also install rpm -ivh dhcp*
So you get both dhcp client and server.
Edit /etc/dhcpd.conf:
ddns-update-style ad-hoc;
subnet netmask {
# --- default gateway
        option routers        ;
        option subnet-mask    ;

        option domain-name-servers;

        option time-offset              -18000; # Eastern Standard Time

        range dynamic-bootp;

        default-lease-time 21600;
        max-lease-time 43200;

        # Fixes address for windows domain/file server
        host mysrv {
                next-server dragonsrv;
                hardware ethernet 00:00:00:AA:AA:AA;

This is only an example how you can set it up, change ip and range to anything you want.

Now on all server on your inside interface just go and click use DHCP.

Hope this helps.

/Hans - Erik Skyttberg

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
JTWolfmanAuthor Commented:
thanks for the help man
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
Linux Networking

From novice to tech pro — start learning today.

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.