Skip to contentSkip to conversation

Howto Make Gateway with iptables?

DISCUSSION Mojgan Masroor 2 participants 2 messages Mar 10, 2004

lore
Share & tools
lore
#0 lore raw

Hi,
I have a linux redhat9.0 - I want to create an gateway between our
sections and central site.
It have 4 ethernet cards. 2 cards for internal LANs with 2 invalid sunbet 192.168.101.x and 192.168.102.x range. 3th card for intranet use such connect to our web-server or email-server, 4th card for internet connection and when they want go to internet.i want also close all extra ports and close udp + icmp protocols.
How i could do this with IPTABLES Rules? Anybody have such this schema? Any help would be appriciated

thanks a lot,
mojgan

#1 lore raw
Quoted 10 lines · Mojgan Masroor

Hi,
I have a linux redhat9.0 - I want to create an gateway between our
sections and central site.
It have 4 ethernet cards. 2 cards for internal LANs with 2 invalid sunbet 192.168.101.x and 192.168.102.x range. 3th card for intranet use such connect to our web-server or email-server, 4th card for internet connection and when they want go to internet.i want also close all extra ports and close udp + icmp protocols.
How i could do this with IPTABLES Rules? Anybody have such this schema? Any help would be appriciated

Oskar Andreasson's netfilter tutorial at
http://iptables-tutorial.frozentux.net should tell you most, if not all, of what you need to know.

If you have any specific questions after getting as far as you can with that, feel free to come back and ask here.

Regards,

Antony.

Signature · 7 lines
"The joy of X!!??  I've always hated compiling graphical shite.  You have a 10 
line program, and it ends up depending on the entire known universe."

 - Philip Hands

                                                     Please reply to the list;
                                                           please don't CC me.