File: nat-adv-alias.dita

package info (click to toggle)
virtualbox 7.1.12-dfsg-2
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 565,672 kB
  • sloc: ansic: 2,330,854; cpp: 2,193,228; asm: 230,777; python: 223,895; xml: 86,771; sh: 25,541; makefile: 8,158; perl: 5,697; java: 5,337; cs: 4,872; pascal: 1,782; javascript: 1,692; objc: 1,131; lex: 931; php: 906; sed: 899; yacc: 707
file content (18 lines) | stat: -rw-r--r-- 1,026 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic xml:lang="en-us" id="nat-adv-alias">
  <title>Configuring Aliasing of the NAT Engine</title>
  
  <body>
    <p>By default, the NAT core uses aliasing and uses random ports when generating an alias for a connection. This
      works well for the most protocols like SSH, FTP and so on. Though some protocols might need a more transparent
      behavior or may depend on the real port number the packet was sent from. You can change the NAT mode by using the
      following commands: </p>
    <pre xml:space="preserve">$ VBoxManage modifyvm <varname>VM-name</varname> \
--nataliasmode1 proxyonly</pre>
    <pre xml:space="preserve">$ VBoxManage modifyvm "Linux Guest" --nataliasmode1 sameports</pre>
    <p>The first example disables aliasing and switches NAT into transparent mode, the second example enforces
      preserving of port values. These modes can be combined if necessary. </p>
  </body>
  
</topic>