All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fwd: Server machines behind Firewall]
@ 2005-01-07 15:07 edwardspl
  2005-01-07 15:27 ` Jason Opperisano
  0 siblings, 1 reply; 6+ messages in thread
From: edwardspl @ 2005-01-07 15:07 UTC (permalink / raw)
  To: netfilter@lists.netfilter.org

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=x-user-defined, Size: 3 bytes --]

 

[-- Attachment #2: Type: message/rfc822, Size: 1599 bytes --]

From: edwardspl@ita.org.mo
To: Jason Opperisano <opie@817west.com>
Cc: "netfilter@lists.netfilter.org" <netfilter@lists.netfilter.org>
Subject: Re: Server machines behind Firewall
Date: Fri, 07 Jan 2005 22:48:19 +0800
Message-ID: <41DEA133.8319FDDD@ita.org.mo>


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2.1: Type: text/plain; charset=big5, Size: 915 bytes --]

From: edwardspl@ita.org.mo
To: Jason Opperisano <opie@817west.com>
Cc: "netfilter@lists.netfilter.org" <netfilter@lists.netfilter.org>
Subject: Re: Server machines behind Firewall
Date: Fri, 07 Jan 2005 22:48:19 +0800
Message-ID: <41DEA133.8319FDDD@ita.org.mo>

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] 6+ messages in thread

end of thread, other threads:[~2005-01-08  4:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-07 15:07 [Fwd: Server machines behind Firewall] edwardspl
2005-01-07 15:27 ` Jason Opperisano
2005-01-07 15:45   ` edwardspl
2005-01-07 15:43     ` Jason Opperisano
2005-01-07 21:09     ` R. DuFresne
2005-01-08  4:39       ` edwardspl

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.