All of lore.kernel.org
 help / color / mirror / Atom feed
* set up my DMZ
@ 2004-09-16 14:44 hamals
  2004-09-16 16:45 ` John A. Sullivan III
  2004-09-16 17:39 ` Jason Opperisano
  0 siblings, 2 replies; 7+ messages in thread
From: hamals @ 2004-09-16 14:44 UTC (permalink / raw)
  To: netfilter


I've a DMZ with two server, I would like to acces them 
through my iptables firewall.

IP_serve1_DMZ =192.168.2.2
IP_serve2_DMZ =192.168.2.3

IP_server1_public = x.x.x.52
IP_server2_public = x.x.x.53   (x is for privacy..)


My firewall has

eth1 internet interface = x.x.x.50
eth0 dmz interface = 192.168.2.1

I need to have my server access with their pubbic IP, but 
I've only eth1 as inteface to internet.

I read that I can't use alias in iptables rules (like 
eth1:1 etc) , then what kind of rules have I to write to 
solve my problem?

Thanks
_______________________________________
Connessione ed e-mail gratuita da 10 mb
consultabile tramite web e tramite pop.
www.infinito.it vieni a scoprire tutti 
i nostri servizi!

http://www.infinito.it/xmail



^ permalink raw reply	[flat|nested] 7+ messages in thread
* set up my DMZ
@ 2004-09-17  9:37 hamals
  2004-09-17 11:13 ` Jason Opperisano
  0 siblings, 1 reply; 7+ messages in thread
From: hamals @ 2004-09-17  9:37 UTC (permalink / raw)
  To: netfilter

I've a DMZ with two server, I would like to acces them 
through my iptables firewall.

IP_serve1_DMZ =192.168.2.2
IP_serve2_DMZ =192.168.2.3

IP_server1_public = x.x.x.52
IP_server2_public = x.x.x.53 (x is for privacy..)


My firewall has

eth1 internet interface = x.x.x.50
eth0 dmz interface = 192.168.2.1

I need to have my server access with their pubbic IP, but 
I've only eth1 as inteface to internet.

I read that I can't use alias in iptables rules (like 
eth1:1 etc) , then what kind of rules have I to write to 
solve my problem?


I did this script but is it not working,
what do you think is wrong in it?



#!/bin/bash


iptables -F

iptables -t nat -F

iptables -t mangle -F

# filter table everythingd is ACCEPT  only to follow the 
easyest way#

iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT

## make DMZ -> internet ##

iptables -t nat -A POSTROUTING -s 192.168.2.1 -o eth1 -j 
SNAT --to-source 82.190.228.52


## make internet -> DMZ ##

iptables -t nat -A PREROUTING -i eth1 -d x.x.x.52 -j DNAT 
--to-destination 192.168.2.1


Thanks
_______________________________________
Connessione ed e-mail gratuita da 10 mb
consultabile tramite web e tramite pop.
www.infinito.it vieni a scoprire tutti 
i nostri servizi!

http://www.infinito.it/xmail



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-09-19 13:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-16 14:44 set up my DMZ hamals
2004-09-16 16:45 ` John A. Sullivan III
2004-09-16 17:39 ` Jason Opperisano
     [not found]   ` <1403218a0409190112632977da@mail.gmail.com>
2004-09-19  8:12     ` Fwd: " Mohamed Eldesoky
2004-09-19 13:40       ` Jason Opperisano
  -- strict thread matches above, loose matches on Subject: below --
2004-09-17  9:37 hamals
2004-09-17 11:13 ` Jason Opperisano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.