[OpenIndiana-discuss] IPNAT redirection.

Jonathan Adams t12nslookup at gmail.com
Fri Apr 19 09:47:12 UTC 2013


more specific addresses to forward:

root at oldfluffy:/etc/ipf# ipnat -l
List of active MAP/Redirect filters:
rdr iprb0 n.n.62.35/32 port 143 -> 192.168.0.12 port 143 tcp
rdr bge0 192.168.0.65/32 port 143 -> 192.168.0.12 port 143 tcp

List of active sessions:
RDR 192.168.0.12     143   <- ->n.n.62.35    143   [n.n.180.45 34032]

and even if I change the port so there is no possibility of conflict:

root at oldfluffy:/etc/ipf# ipnat -l
List of active MAP/Redirect filters:
rdr iprb0 n.n.62.35/32 port 144 -> 192.168.0.12 port 143 tcp
rdr bge0 192.168.0.65/32 port 144 -> 192.168.0.12 port 143 tcp

List of active sessions:
RDR 192.168.0.12     143   <- -> n.n.62.35    144   [n.n.180.45 36138]

neither worked ... I can only assume that I can't port forward in this way,
and will just go back to using "delegate".

Jon


On 19 April 2013 10:22, Jonathan Adams <t12nslookup at gmail.com> wrote:

> Actually in the real system I am trying to forward a port from an external
> address (on the internet, the address I hid) to an internal RDP server
> (port 3389 tcp) ... but for testing I forwarded to an internal IMAP server
>
> iprb0 is the external interface, bge0 is the internal.
>
> I added bge0 to see if it was a problem with my external connection.
>
> I enabled the telnet server on the local machine and used ipnat to
> redirect 143 to 23 and that worked ... I was just surprised that I couldn't
> connect to any port on another host.
>
> Anyway, to cut your explanation down, you are basically saying that I
> cannot do "port forwarding" with ipnat?
>
> Jon
>
>
>


More information about the OpenIndiana-discuss mailing list