Thanks for the help. I tried the those settings but they didn't seem to
work. Perhaps I am not understanding the <IF> part of the command.
netstat -i shows 2 entries:

lo0  8232 loopback    localhost   ...
bge0 1500 machinename machinename ...

I tried using both of these as the value for <IF> but the machine still
didn't seem to forward the ports. I reloaded the file with the following
commands:

ipnat -C
ipnat -f ipnat.conf

Am I missing something?


Brad Mann
Software Engineer - Information Access Services
HARRIS Corporation / GCSD
(321) 984-6292

-----Original Message-----
From: Flemming Laugaard [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 13, 2006 7:46 AM
To: Mann, Bradley
Cc: [email protected]
Subject: Re: Easy port forwarding question

>> Hello,
>>
>> I am extremely new to ipfilter/ipnat, and all I am attempting to
>> accomplish is to have port 80 on a machine forward to its own port
8080.
>> This command will need to be as generic as possible so that it can be
>> deployed to other locations that have the same configuration but
>> different IP address.
>>
>
> ipnat:
> rdr <IF> <SRVIP>/32 port 80 -> 127.0.0.1 port 8080
>
> I can't do it more generic than this. You need to set both IP
adresses.
> But that could be solved by scripting :-)

You could also try

rdr <IF> 0.0.0.0/0 port 80 -> 127.0.0.1 port 8080

For redirecting anything going anywhere on <IF> port 80. I haven't tried
it myself.

Regards
Flemming Laugaard


Reply via email to