Hello,

I'm very new with IP Filter and i have few questions abt. NAT.

Im running it on Solaris8 (intel)
IP Filter version is 3.3.22. I was not able to compile the3.4.26 version :(
External Interface elx0
Internal Interface iprb0
"public" network where elx0 is connected is 10.0.65.0/24
Private network where iprb0 is connected is 192.168.1.0/24

What i liked to do is make static NAT from one address to another, so that
the internal machine would be seen from outside world.

I have following line in ipnat.conf file:

bimap elx0 192.168.1.2/32 -> 10.065.2/32

That works fine from inside to outside, but .. nothing is forwared from
outside to inside (new connections i mean). Now if i add following line into
ipnat.conf file, all packects to port 22 will be forwared as i like to have
it:

rdr elx0 10.0.65.2/32 port 22 -> 192.168.1.2 port 22

But what i'm looking for is that all connections from outside to address
10.0.62.2 would be forwarded, all ports all protocols just ALL. Is the only
way to do it, to just specify all ports i need ? Or is there another way to
do it. like (that don't work, trust me i have tryed, but maybe you can see
the point i'm meaning):

rdr elx0 10.0.65.1/32 -> 192.168.1.2

I would be very thankfull if some one could help me with that one.

Another issue is that NATed external addresses. If i just say map this to
that, do i allways have to make "virtual" outside address into interface
elx0 on Solaris side or is there easier way to do it. For example if i wan't
to map group of internal addresses to group of external addresses. In that
case do i have to tell Solaris all adresses that will be used in nat or am i
missing the red line in here ?

You can mail me directly if you wan't....

Petteri


Reply via email to