Article View: alt.os.linux.suse
Article #224Re: iptables/routing and DMZ's
From: Jonathan Hume
Date: Thu, 11 Oct 2001 23:19
Date: Thu, 11 Oct 2001 23:19
70 lines
3929 bytes
3929 bytes
Hi Alex,
Doh, I think I got the wrong end of the stick!
I'm not sure if I know the answer, but for clarity am I right in
thinking that what you'd like to do is the following:
eth0=210.2.5.16-31 --- Router --- eth1=210.2.5.19
|
|
-------- eth2=210.2.5.25
i.e. pick up everything on eth0 for the address range 210.2.5.16
through 210.2.5.31, and then route to either eth1 or eth2 for the
appropriate IP addresses. Additionally you'd like both eth1 and eth2 to
be outside of the firewall, i.e. in the DMZ.
If this is the case then your original mask looks to me to be correct
since it masks of your block of assigned addresses. Maybe what really
needs to be played with is the Yast2 Network Routing configuration
rather than the firewall stuff (note I'm guessing since this is getting
well out of my depth :-) ).
Good luck
JH
alex wrote:
>>As Cedric says they need be on seperate subnets, however when your
>>current subnet mask is bitwise AND'ed with either of the two current
>>addresses you specify it can't see any difference between the subnets.
>>The solution is to reallocate either of the two IP addresses so that
>>they appear different using your existing subnet mask or to change the
>>last part of your subnet mask to
>>248 = 1111 1000
>>
>
> i get from my isp 16 addresses this can only be done by a subnet
> 255.255.255.240 (210.2.5.16-31) - i think so!? if i am wrong - please
> correct me... and please tell my why (newbie :-((( ). this is the situation
> i'm in - and i need to workaround - how ever!
>
> can i change the subnetmask without telling this my isp? realy i haven't
> anytime worked with calculating ip subnets... and haven't deep tcpip
> knowledge :-((( one of my greatest problems...
>
> am i right and will this be working if i will change this to
> eth0 = 210.2.5.17 / 255.255.255.252 - (210.2.5.16-19)
> eth1 = 210.2.5.20 / 255.255.255.248 - (210.2.5.16-23)
> eth2 = 210.2.5.24 / 255.255.255.248 - (210.2.5.24-31)
>
> hm... looks wrong... eth0 and eth1 having overlapping ip's... in eth0 .19 is
> broadcast adress and in eth1 the .23 - this looks like only 2 hosts in
> dmz... shit...
>
> hm. i don't realy need to route the official ip address over eth2 - i can
> masquerade - if no other way is possible... but this might bei a bad
> workaround, on my view.
>
>
> Alex
>
>
>
>
Technical Details
Message-ID:
<3BC628F2.60503@ntlworld.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!btnet-peer0!btnet-peer!btnet!newspeer.clara.net!news.clara.net!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mailReferences:
<9q3qa9$tbr$06$1@news.t-online.com> <3BC5D700.8040408@ntlworld.com> <9q4vv7$csk$00$1@news.t-online.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1041dd,b373d989fc833e9e X-Google-Attributes: gid1041dd,public X-Google-Thread: f4b73,b373d989fc833e9e X-Google-Attributes: gidf4b73,public X-Google-Thread: 10669a,b373d989fc833e9e X-Google-Attributes: gid10669a,public X-Google-ArrivalTime: 2001-10-11 16:19:34 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!btnet-peer0!btnet-peer!btnet!newspeer.clara.net!news.clara.net!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail Message-ID: <3BC628F2.60503@ntlworld.com> From: Jonathan Hume <jonathan.hume@ntlworld.com> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010801 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: alt.os.linux.suse,ch.comp.os.linux,comp.os.linux.networking Subject: Re: iptables/routing and DMZ's References: <9q3qa9$tbr$06$1@news.t-online.com> <3BC5D700.8040408@ntlworld.com> <9q4vv7$csk$00$1@news.t-online.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 71 Date: Fri, 12 Oct 2001 00:19:14 +0100 NNTP-Posting-Host: 213.105.222.36 X-Complaints-To: abuse@ntlworld.com X-Trace: news2-win.server.ntlworld.com 1002842055 213.105.222.36 (Fri, 12 Oct 2001 00:14:15 BST) NNTP-Posting-Date: Fri, 12 Oct 2001 00:14:15 BST Organization: ntl Cablemodem News Service