45 | | The CXA backend will examine the virtual parameters whenever an |
46 | | an ns file is (re-)parsed and will (re-)initialize the risky experiment |
47 | | table entries for the experiment based on the values for two |
48 | | keys, namely "nat" and "rdr". |
| 45 | The CXA backend will examine the virtual parameters specified above whenever an |
| 46 | an ns file is (re-)parsed and will (re-)initialize the risky_experiment |
| 47 | table entries in the testbed database, based on the values for two |
| 48 | specific keys, namely "nat" and "rdr". |
| 49 | |
| 50 | The terminology is borrowed from the BSD packet filter; "nat" indicates (towards in the internet) network address translation |
| 51 | (for otherwise unroutable testbed nodes), and "rdr" indicates in-bound (toward experiment nodes) port redirection or forwarding. |
| 52 | |
| 53 | Each of these keys may be specified a maximum of one time. |
| 79 | Here's an example of all six forms: |
| 80 | |
| 81 | {{{ |
| 82 | tb-allow-external $node shared nat "192.154.6.22/udp/13 192.154.6.21/25 128.32.112.228" rdr "22 mywebserver/80 othernode/udp/13" |
| 83 | }}} |
| 84 | |
| 85 | This allows any node in the experiment to send traffic to udp port 13 or boss.ucb.deterlab.net (which must be specified by dotted quad, |
| 86 | to the SMTP port on 192.154.6.21 and to any TCP port on 128.32.112.228. hosts on the internet can also connect to an address and |
| 87 | port and protocol which will be listed on the experiment page, and variously forward to the SSH port on the node named "node", |
| 88 | the SMTP port on the experiment node named "mywebserver" and to the daytime UDP port on the experiment host called "othernode". |
| 89 | |
| 90 | |