1 | <?xml version='1.0' encoding='UTF-8'?>
|
---|
2 | <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
|
---|
3 | <topic xml:lang="en-us" id="nat-adv-alias">
|
---|
4 | <title>Configuring Aliasing of the NAT Engine</title>
|
---|
5 |
|
---|
6 | <body>
|
---|
7 | <p>By default, the NAT core uses aliasing and uses random ports when generating an alias for a connection. This
|
---|
8 | works well for the most protocols like SSH, FTP and so on. Though some protocols might need a more transparent
|
---|
9 | behavior or may depend on the real port number the packet was sent from. You can change the NAT mode by using the
|
---|
10 | following commands: </p>
|
---|
11 | <pre xml:space="preserve">$ VBoxManage modifyvm <varname>VM-name</varname> \
|
---|
12 | --nataliasmode1 proxyonly</pre>
|
---|
13 | <pre xml:space="preserve">$ VBoxManage modifyvm "Linux Guest" --nataliasmode1 sameports</pre>
|
---|
14 | <p>The first example disables aliasing and switches NAT into transparent mode, the second example enforces
|
---|
15 | preserving of port values. These modes can be combined if necessary. </p>
|
---|
16 | </body>
|
---|
17 |
|
---|
18 | </topic>
|
---|