From: "PiSiC..." <pisic@service.agress.ro>
To: Matt Hellman <mhellman@taxandfinance.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: possibly annoing ...
Date: Fri, 28 Feb 2003 13:42:44 +0200 [thread overview]
Message-ID: <000f01c2df1e$84c04040$c80da8c0@service.agress.ro> (raw)
In-Reply-To: 000101c2dee0$78f1fa80$fd0aa8c0@winxp
I tried this ... and doesn't seem to work... but i'm afraid my firewall
script is kinda messy
I realized that i use MASQUERADE instead of SNAT.
Can you give me a script or a link where to get one for my case ?
I will show the stuff that i have :
eth0(aaa.bbb.ccc.ddd)
|
fw
|
eth1(192.168.13.1)
|
switch
|
LAN
- eth0 has a staticaly assigned IP by my ISP.
- eth1 has an private IP staticaly assigned by me.
- on LAN i have a machine (192.168.13.199) which runs a webserver which i
want to be accesible from the world.
I think that i should use Static NAT for my machines inside LAN.
I have a firewall script that i just realized that was created for Dynamic
NAT.
I'm running Slackware 8.0 with kernel 2.4.5(all the modules for netfilter
are compiled into kernel(i don't need modprobe)).
I hope i was clear enough.
Thank you four your efforts,
Danila Octavian
----- Original Message -----
From: Matt Hellman <mhellman@taxandfinance.com>
To: 'PiSiC...' <pisic@service.agress.ro>
Cc: <netfilter@lists.netfilter.org>
Sent: Friday, February 28, 2003 6:18 AM
Subject: RE: possibly annoing ...
> I'll give you an example. It assumes a default drop policy. Also, INTIF =
> internal interface, HTTP1 = external ip address clients will connect to
> (www.mydomain.com resolves to this address), and HTTPDMZ1 = internal web
> server.
>
> ##### Setup prerouting rules to route Internet traffic internally
> ## Change the destination of external $HTTP requests to the DMZ HTTP
server
> $ipt -t nat -A PREROUTING -i $EXTIF -p tcp -d $HTTP1 --dport 33333 -j DNAT
> --to $HTTPDMZ1:80
>
> ## Allow established,related forward traffic
> $ipt -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
>
> ## Allow new http forward traffic from Internet to servers in the DMZ
> $ipt -A FORWARD -m state --state NEW -i $EXTIF -p tcp -d $HTTPDMZ1 --dport
> 80 -j ACCEPT
> $ipt -A FORWARD -m state --state NEW -i $EXTIF -p tcp -d $SMTPDMZ --dport
25
> -j ACCEPT
next prev parent reply other threads:[~2003-02-28 11:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <OFBFE62721.93AFC0AB-ON80256CDA.005ECFD9@start-global.com>
2003-02-27 18:14 ` possibly annoing PiSiC...
2003-02-28 4:18 ` Matt Hellman
2003-02-28 11:42 ` PiSiC... [this message]
2003-02-28 7:48 ` Joel Newkirk
2003-02-27 14:47 PiSiC...
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000f01c2df1e$84c04040$c80da8c0@service.agress.ro' \
--to=pisic@service.agress.ro \
--cc=mhellman@taxandfinance.com \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox