An example of working port-forwarding configuration » History » Version 10
Anchi Cheng, 10/25/2013 10:09 PM
| 1 | 1 | Anchi Cheng | h1. An example of working port-forwarding configuration |
|---|---|---|---|
| 2 | |||
| 3 | 3 | Anchi Cheng | h2. (Paraphrased from description by Brian J. Gibbens) |
| 4 | 1 | Anchi Cheng | |
| 5 | For those interested, this is how I set up Leginon on the TF20 in the |
||
| 6 | Kornberg lab at Stanford with the following configuration: |
||
| 7 | |||
| 8 | 5 | Anchi Cheng | Local network (192.168.xxx.xxx in this example) can not be accessed directly through |
| 9 | 10 | Anchi Cheng | institute network that has internet access before port forwarding. |
| 10 | 1 | Anchi Cheng | |
| 11 | 10 | Anchi Cheng | h2. The computer hosts involved in this port-forwarding configuration: |
| 12 | 1 | Anchi Cheng | |
| 13 | 10 | Anchi Cheng | # *ScopePC* (Windows) - The computer controlling the microscope |
| 14 | ** connected only to local network |
||
| 15 | ** Static local IP addresses (192.168.200.99 in this example) is set to this host. |
||
| 16 | # *SupportPC* (Windows) - The computer provided by FEI to protect *ScopePC* while allow RAPID system support from them through internet. |
||
| 17 | ** Two network cards are on this computer. |
||
| 18 | ** Local network Static IP address (192.168.200.100 in this example) |
||
| 19 | ** Outbound institute network Static IP address (137.131.204.250 in this example) |
||
| 20 | # *LeginonMain* (Linux) - The computer that runs Leginon processing/database/storage. Could be multiple. Here assumes just 1 |
||
| 21 | ** Institute network Static IP address (137.131.204.500 in this example) |
||
| 22 | |||
| 23 | 1 | Anchi Cheng | !http://emg.nysbc.org/attachments/2484/PortForward.png! |
| 24 | |||
| 25 | 10 | Anchi Cheng | *Ethernet cables should be connected like in the figure above.* |
| 26 | 1 | Anchi Cheng | |
| 27 | 10 | Anchi Cheng | h2. TCP/IP Gateway Settings on *ScopePC* |
| 28 | This should be set to the local IP address of the *SupportPC* like this: |
||
| 29 | !gateway.png! |
||
| 30 | |||
| 31 | h2. Firewall settings on *SupportPC* |
||
| 32 | ** allow communication to both *ScopePC* and *LeginonMain*. |
||
| 33 | |||
| 34 | h2. Hosts file addition if needed |
||
| 35 | |||
| 36 | 1 | Anchi Cheng | --Appropriate IP addresses and hostnames added to the hosts files |
| 37 | (C:/WINDOWS/System32/drivers/etc/hosts.txt on Windows PC's and |
||
| 38 | 10 | Anchi Cheng | /etc/hosts on Linux). |
| 39 | 1 | Anchi Cheng | |
| 40 | 10 | Anchi Cheng | * On *ScopePC* - list both hostnames of *SupportPC* and *LeginonMain* |
| 41 | * On *SupportPC* - list both hostnames of *ScopePC* and *LeginonMain* |
||
| 42 | * On *LeginonMain* - list only hostname of *SupportPC* since all communication from *ScopePC* to *LeginonMain* through *SupportPC* will appear to |
||
| 43 | come from *SupportPC* |
||
| 44 | 8 | Jim Pulokas | |
| 45 | 10 | Anchi Cheng | h2. Install port forwarding program AUTAPF which allows needed host/port specification on *SupportPC* |
| 46 | |||
| 47 | Below is a screen shot of how we configured AUTAPF for a test at NRAMM. The hosts are represented as follows: |
||
| 48 | 6 | Jim Pulokas | localdefcon3: the microscope PC running leginon client/launcher |
| 49 | defcon3: the support PC with AUTAPF installed |
||
| 50 | 2 | Anchi Cheng | amilab7: the remote linux running main leginon |
| 51 | |||
| 52 | 10 | Anchi Cheng | !autapf.PNG! |
| 53 | 2 | Anchi Cheng | |
| 54 | |||
| 55 | ______ |
||
| 56 | 1 | Anchi Cheng | |
| 57 | [[Network Configuration| Go up]] |
||
| 58 | |||
| 59 | ______ |