<div dir='auto'><div>Hi Ken,<div dir="auto"><br></div><div dir="auto">The example you're using IS ALREADY mapping multiple ports.  It is mapping host port 2323 to simulated system port 23 AND host port 2121 to simulated system port 21.  This maps telnet (on port 23) and ftp (on port 21).</div><div dir="auto"><br></div><div dir="auto">You can add additional mappings on the same command line up to some reasonably large command line length limit.</div><div dir="auto"><br></div><div dir="auto">- Mark</div><br><div class="gmail_extra"><br><div class="gmail_quote">On Sep 11, 2018 10:54 PM, Ken Wiebe <me@networkguy.com> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<div style="font-family:'verdana'">Hi,<br>
</div>
<div style="font-family:'verdana'"><br>
</div>
<div style="font-family:'verdana'">I've successfully used "attach xq nat:" command with VAX, with and without the tcp port mapping as shown in the example:<br>
</div>
<div style="font-family:'verdana'"><br>
</div>
<div style="font-family:'verdana'">sim> attach xq nat:tcp=2323:10.0.2.15:23,tcp=2121:10.0.2.15:21<br>
</div>
<div style="font-family:'verdana'"><br>
</div>
<div style="font-family:'verdana'">Questions though:<br>
</div>
<div style="font-family:'verdana'"><br>
</div>
<div style="font-family:'verdana'">Even though it worked, I don't fully understand each part of the above syntax.  Can someone break it down?<br>
</div>
<div style="font-family:'verdana'"><br>
</div>
<div style="font-family:'verdana'">The only part that seems clear to me is the last piece, where you're linking to the port (21) the emulated machine is listening on.  And I know the 2323 is the port opened on localhost to map to 21.  But what is the port 23
 and port 2121 doing in the middle?<br>
</div>
<div style="font-family:'verdana'"><br>
</div>
<div style="font-family:'verdana'">So if I wanted to add a map for SMTP (port 25), it would be this?<br>
</div>
<div style="font-family:'verdana'"><br>
</div>
<div style="font-family:'verdana'">
<div style="font-family:'verdana'">sim> attach xq nat:tcp=2327:10.0.2.15:27,tcp=2125:10.0.2.15:25<br>
</div>
<div style="font-family:'verdana'">
<div style="font-family:'verdana'"><br>
</div>
</div>
<div style="font-family:'verdana'">Also, How would one go about mapping multiple ports?<br>
</div>
<div style="font-family:'verdana'">
<div style="font-family:'verdana'">
<div style="font-family:'verdana'">
<div style="font-family:'verdana'"><br>
</div>
</div>
</div>
<div style="font-family:'verdana'">Can there be multiple "attach xq nat:" commands issued to accomplish, i.e.:<br>
</div>
<div style="font-family:'verdana'">
<div style="font-family:'verdana'">
<div style="font-family:'verdana'"><br>
</div>
</div>
</div>
<div style="font-family:'verdana'">sim> attach xq nat:tcp=2323:10.0.2.15:23,tcp=2121:10.0.2.15:21<br>
</div>
</div>
</div>
<div style="font-family:'verdana'">sim> attach xq nat:tcp=2327:10.0.2.15:27,tcp=2125:10.0.2.15:25<br>
</div>
<div style="font-family:'verdana'">etc.<br>
</div>
<div style="font-family:'verdana'"><br>
</div>
<div style="font-family:'verdana'">Thanks!<br>
</div>
<div style="font-family:'verdana'">
<div style="font-family:'verdana'"><br>
</div>
</div>
<div style="font-family:'verdana'"><br>
</div>
</div>
</blockquote></div><br></div></div></div>