In the following situation on my ipfilter box:

hme1=10.0.0.1
hme2=200.0.0.1

I have a webserver at 10.0.0.20.  I wish to create a
NAT such that anyone accessing 200.0.0.1:22222 lands
on the internal webserver 10.0.0.20:80.
>From what I've read, I'd do the following in
ipnat.conf:

rdr hme2 200.0.0.1 port 22222 -> 10.0.0.20 port 80

I found that I also needed to have a line such as:
map hme1 101.211.14.0/24 -> 0/32

(if my goal is to only permit people from 101.211.14.0
network to use this NAT, in combination with my
entries in ipf.conf)

If I wanted to have the web server available to
everyone, I found that I need to use:

map hme1 0.0.0.0/0 -> 0/32

My question is about the 'map' statements above.  Are
they necessary, or am I doing something else incorrect
which forces me to use them?
Also, if they are necessary, is there any [security]
issue with the:
map hme1 0.0.0.0/0 -> 0/32
entry?  Specifically, if I have several other NATs on
this system which only permit certain people to
access, and if I then add one like above where I want
everyone to access, doesn't the map statement above
overrule any specific map statements I might have in
place for the other NATs, such as:

map hme1 144.1.2.0/24 -> 0/32

?




        
                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

Reply via email to