Article View: alt.os.linux.suse
Article #222Re: iptables/routing and DMZ's
From: Jonathan Hume
Date: Thu, 11 Oct 2001 17:29
Date: Thu, 11 Oct 2001 17:29
67 lines
3582 bytes
3582 bytes
Hi alex, Firing up kcalc reveals the following: 019 = 0001 0011 025 = 0001 1001 240 = 1111 0000 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 Regards JH alex wrote: > hi > > it looks like - i'm to stupid and i cannot get this config working. maybee > the reason is that my knowledge of routing is very bad. i hope you can help > me. here is a structure picture of what i want to do... my subnetmask is > 255.255.255.240 > > Internet NIC (eth0) - ip 210.2.5.18 > | > SuseFW2---------- DMZ NIC (eth1) > | 210.2.5.19 > | > NIC (eth2) - ip 210.2.5.25 > > > 1. Webserver1 (IP 210.2.5.20) and Webserver2 (IP 210.2.5.21) stand inside > the DMZ, behind eth1 > 2. Behind eth2 stands 2 diffrent Hardwarefirewalls of different companies - > and i want to configure a OnToOneNat, Direct Routing or whatever posible to > the HardwareFirewalls. Maybe the IP's 210.2.5.26 and 210.2.5.27. > > my loveliest dreams are 2 DMZ's but i'm not shure if this is possible... the > real problems i have is - how to get the incoming packets from eth0 to the > eth1 and eth2 and vice versa. the funktion IP_FORWARD isn't working - or > bedder to say - i don't know why and how. i'm trying with the config script > of susefirewall2 and was unsuccessful. i read 2 books about firewall and > iptables but i cannot find any example with a dmz having official ip > adresses... i cannot work with internal ip's and port forwarding from one > official ip because different machines using the same ports (e.g. > webservers). config examples are absolutly welcome! i'm a newbie on linux! > > if you have bedder ideas to solve my problem - tell me! i'm open for > "everything"... > > > Greetings > Alex > > > > > >
Technical Details
Message-ID:
<3BC5D700.8040408@ntlworld.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!colt.net!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>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 10:30:44 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!colt.net!newspeer.clara.net!news.clara.net!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail Message-ID: <3BC5D700.8040408@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> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 68 Date: Thu, 11 Oct 2001 18:29:36 +0100 NNTP-Posting-Host: 213.105.222.36 X-Complaints-To: abuse@ntlworld.com X-Trace: news2-win.server.ntlworld.com 1002821078 213.105.222.36 (Thu, 11 Oct 2001 18:24:38 BST) NNTP-Posting-Date: Thu, 11 Oct 2001 18:24:38 BST Organization: ntl Cablemodem News Service