* Server machines behind Firewall
@ 2005-01-05 16:14 edwardspl
2005-01-06 16:35 ` Jason Opperisano
2005-01-06 23:48 ` Jose Maria Lopez
0 siblings, 2 replies; 5+ messages in thread
From: edwardspl @ 2005-01-05 16:14 UTC (permalink / raw)
To: netfilter@lists.netfilter.org
Dear All,
Is there a sample ( nat scripts ) for the title ?
Edward.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Server machines behind Firewall
2005-01-05 16:14 Server machines behind Firewall edwardspl
@ 2005-01-06 16:35 ` Jason Opperisano
2005-01-07 14:48 ` edwardspl
2005-01-08 3:33 ` edwardspl
2005-01-06 23:48 ` Jose Maria Lopez
1 sibling, 2 replies; 5+ messages in thread
From: Jason Opperisano @ 2005-01-06 16:35 UTC (permalink / raw)
To: netfilter@lists.netfilter.org
On Thu, Jan 06, 2005 at 12:14:16AM +0800, edwardspl@ita.org.mo wrote:
> Dear All,
>
> Is there a sample ( nat scripts ) for the title ?
EXT_IF="eth0"
INT_IF="eth1"
SRV1="10.1.1.10"
iptables -t nat -A PREROUTING -i $EXT_IF -p tcp --dport 80 \
-j DNAT --to-destination $SRV1
iptables -A FORWARD -i $EXT_IF -o $INT_IF -p tcp --syn -d $SRV1 \
--dport 80 -j ACCEPT
rinse, repeat.
-j
--
"Ooh, they used nylon rope this time. It feels smooth against my skin,
almost sensuous."
--The Simpsons
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Server machines behind Firewall
2005-01-05 16:14 Server machines behind Firewall edwardspl
2005-01-06 16:35 ` Jason Opperisano
@ 2005-01-06 23:48 ` Jose Maria Lopez
1 sibling, 0 replies; 5+ messages in thread
From: Jose Maria Lopez @ 2005-01-06 23:48 UTC (permalink / raw)
To: netfilter@lists.netfilter.org
El mié, 05 de 01 de 2005 a las 17:14, edwardspl@ita.org.mo escribió:
> Dear All,
>
> Is there a sample ( nat scripts ) for the title ?
>
> Edward.
You need to do DNAT from the ports you have in the firewall
to the servers in your internal network.
--
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac@bgsec.com
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA
The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Server machines behind Firewall
2005-01-06 16:35 ` Jason Opperisano
@ 2005-01-07 14:48 ` edwardspl
2005-01-08 3:33 ` edwardspl
1 sibling, 0 replies; 5+ messages in thread
From: edwardspl @ 2005-01-07 14:48 UTC (permalink / raw)
To: Jason Opperisano; +Cc: netfilter@lists.netfilter.org
Jason Opperisano wrote:
> On Thu, Jan 06, 2005 at 12:14:16AM +0800, edwardspl@ita.org.mo wrote:
> > Dear All,
> >
> > Is there a sample ( nat scripts ) for the title ?
>
> EXT_IF="eth0"
> INT_IF="eth1"
> SRV1="10.1.1.10"
>
> iptables -t nat -A PREROUTING -i $EXT_IF -p tcp --dport 80 \
> -j DNAT --to-destination $SRV1
I want to know why needn't to define the original IP ( Public IP ) ?
eg :
iptables -t nat -A PREROUTING -i $EXT_IF -p tcp -s 202.175.xxx.xxx --dport
80 \
-j DNAT --to-destination 192.168.xxx.xxx
Sorry, what useful about the following function ( command line ) ?
> iptables -A FORWARD -i $EXT_IF -o $INT_IF -p tcp --syn -d $SRV1 \
> --dport 80 -j ACCEPT
In additional, if I want to setup a NAT ( 192.168.101.0/24 ) with a Server
machines ( 192.168.100.1 ) behind Firewall...
So, is there more than one sample ( nat scripts ) for reference ?
Edward.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Server machines behind Firewall
2005-01-06 16:35 ` Jason Opperisano
2005-01-07 14:48 ` edwardspl
@ 2005-01-08 3:33 ` edwardspl
1 sibling, 0 replies; 5+ messages in thread
From: edwardspl @ 2005-01-08 3:33 UTC (permalink / raw)
To: Jason Opperisano; +Cc: netfilter@lists.netfilter.org
Jason Opperisano wrote:
> On Thu, Jan 06, 2005 at 12:14:16AM +0800, edwardspl@ita.org.mo wrote:
> > Dear All,
> >
> > Is there a sample ( nat scripts ) for the title ?
>
> EXT_IF="eth0"
> INT_IF="eth1"
> SRV1="10.1.1.10"
>
> iptables -t nat -A PREROUTING -i $EXT_IF -p tcp --dport 80 \
> -j DNAT --to-destination $SRV1
>
> iptables -A FORWARD -i $EXT_IF -o $INT_IF -p tcp --syn -d $SRV1 \
> --dport 80 -j ACCEPT
Can we setup server machines behind firewall with same machine ?
Because there is only one machine allow to setup firewall + Internet
Server...
Edward.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-01-08 3:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-05 16:14 Server machines behind Firewall edwardspl
2005-01-06 16:35 ` Jason Opperisano
2005-01-07 14:48 ` edwardspl
2005-01-08 3:33 ` edwardspl
2005-01-06 23:48 ` Jose Maria Lopez
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.