LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-20-2006, 08:40 PM   #1
freesco
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Rep: Reputation: 0
gateway with many ethernet cards


Hi,


I must replace a SMC router with a slack server.....but I have a question about nat and routing
my scheme will be like this
1 public ip and a subnet with 8 ip`s routed through first ip


eth0 - interface with internet
eth1 - dhcp 192.168.0.x-
eth2 - dhcp 192.168.1.x-
eth3 - dhcp 192.168.2.x-
eth4 - 80.86.x.y - this must be a DMZ and ip will be the first from subnet


i have a voip modem and require many forwarded ports......it`s more simple to put in a DMZ....this modem will have next ip from subnet like 80.86.x.z

now....i use jay iptables firewall and doesn`t have a option with DMZ.....when I will activating ip_forward i will seen voip from internet?.......firewall for eth0 will block access to 80.86.x.y?.....i think no

thanks and excuse my poor english
 
Old 06-20-2006, 08:48 PM   #2
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479

Rep: Reputation: 30
Well one way that I can think of it, make routes to each of those ips like

/sbin/route add -net 192.168.1.0 netmask 255.255.255.0 eth0
/sbin/route add -net 192.168.2.0 netmask 255.255.255.0 eth0
/sbin/route add -net 192.168.3.0 netmask 255.255.255.0 eth1
/sbin/route add -net 192.168.4.0 netmask 255.255.255.0 eth1

Modify the above command to suit your needs.

Sorry if I did not answer your question.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
machine has adsl ethernet modem, to make it gateway over lan do i need more lan cards b0nd Linux - Networking 2 10-04-2005 10:19 PM
Ethernet cards for a Gateway Solo 1150 ? coperni Linux - Laptop and Netbook 1 03-10-2005 04:47 PM
Two WAN cards on same gateway h8trix Linux - Networking 8 10-28-2004 10:37 PM
Ethernet Cards and Sound Cards SchizoIV Linux - Newbie 2 07-05-2002 09:10 PM
two nic cards configuration for gateway red1526 Linux - Networking 3 03-06-2002 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration