ubuntu machine as bridge between two eth cards

I would like to use an ubuntu machine as a safe filter for an internet connection. The machine has two ethernet cards, one connected to the internet with dhcp and another connected to a local LAN with static IP.

How should i configure the ubuntu machine to send only port 80 traffic to the local LAN? thanks!
Who is Participating?
Fatal_ExceptionConnect With a Mentor Commented:
You just set it up as a router, and allow traffic to the internal LAN from a request by your local PC..  anything else should be discarded...

Here is a basic router setup for ubuntu..

cataliniAuthor Commented:
i just would like to make local lan access port 80...

when i boot ubuntu with both cards enabled i cannot navigate anymore even on the linux machine...
Did you setup the firewall?  as shown in the link above?

Masquerading is also known as NAT. To enable it, login to Webmin, go to the networking section, and click on firewall. It will ask you to configure it now. press "Do network address translation on external interface:" and choose the external interface (the one that is connected to the internet) and click on "Enable firewall at boot time?" then click on "Setup Firewall".
Hope you got it, and thanks!

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.