LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Forward traffic from internal NIC to external NIC (https://www.linuxquestions.org/questions/linux-newbie-8/forward-traffic-from-internal-nic-to-external-nic-743787/)

laurens 07-29-2009 06:28 PM

Forward traffic from internal NIC to external NIC
 
1 Attachment(s)
Hi all,

I have a (virtual) server with 3 NIC's: 1 external (inet), 1 local and 1 DMZ. This server is my gateway.
I would like my internal network, where every server has a static 192.168.0.x IP, to access the internet via the gateway.
That means the traffic has to pass from the 'local' NIC to the 'external' NIC, connected to the internet.
Which setting do I change to accomplish this ?

Please check the sceenshot (attachment) for my current setup

Thanks in advance!

laurens 07-30-2009 04:25 AM

No one?! Thx

EricTRA 07-30-2009 04:39 AM

Hello,

Use iptables to do this. Google gives you more info on how to do this.

Kind regards,

Eric

vishesh 07-30-2009 05:02 AM

Dear
It sounds like you want routing in Server. for static routing you can use 'ip route ' command. If you want dynamic routing quagga daemon can help you

thanks

scheidel21 07-30-2009 10:53 AM

It appears that iptables would be the appropriate thing to use, you need to set up a rule that forwards traffic for the outside network to the NIC that goes to the internet.

There are a host of front ends that might be able to set it up for you though, I think webmin can generate the rules for instance.


All times are GMT -5. The time now is 03:24 AM.