Project

General

Profile

An example of working port-forwarding configuration » History » Version 11

Anchi Cheng, 10/25/2013 10:42 PM

1 1 Anchi Cheng
h1. An example of working port-forwarding configuration
2
3 11 Anchi Cheng
h2. (Paraphrased from description by Brian J. Gibbens) and tested at NRAMM
4 1 Anchi Cheng
5
Local network (192.168.xxx.xxx in this example) can not be accessed directly through
6 5 Anchi Cheng
institute network that has internet access before port forwarding.
7 1 Anchi Cheng
8 11 Anchi Cheng
h2. The computer hosts involved in this port-forwarding configuration listed by hostname and operation system in ( ):
9 1 Anchi Cheng
10 10 Anchi Cheng
# *ScopePC* (Windows) - The computer controlling the microscope
11
** connected only to local network
12 1 Anchi Cheng
** Static local IP addresses (192.168.200.99 in this example) is set to this host.
13 10 Anchi Cheng
# *SupportPC* (Windows) - The computer provided by FEI to protect *ScopePC* while allow RAPID system support from them through internet.
14 1 Anchi Cheng
** Two network cards are on this computer.
15 10 Anchi Cheng
** Local network Static IP address (192.168.200.100 in this example)
16
** Outbound institute network Static IP address (137.131.204.250 in this example)
17 11 Anchi Cheng
# *ProcessingLinux* (Linux) - The computer that runs Leginon processing.
18 10 Anchi Cheng
** Institute network Static IP address (137.131.204.500 in this example)
19 11 Anchi Cheng
# *DatabaseLInux* (Linux) - The computer that runs Leginon database server.  In a simpler setup this might be the same computer as the ProcessingLinux as illustrated in the figure below.
20
** Institute network Static IP address (137.131.204.700 in this example)
21 10 Anchi Cheng
22 1 Anchi Cheng
!http://emg.nysbc.org/attachments/2484/PortForward.png!
23
24 10 Anchi Cheng
*Ethernet cables should be connected like in the figure above.*
25 1 Anchi Cheng
26 10 Anchi Cheng
h2. TCP/IP Gateway Settings on *ScopePC*
27
This should be set to the local IP address of the *SupportPC* like this:
28
!gateway.png!
29
30
h2. Firewall settings on *SupportPC*
31 11 Anchi Cheng
** allow communication to *ScopePC* and *ProcessLinux* and *DatabaseLinux*.
32 1 Anchi Cheng
33 10 Anchi Cheng
h2. Hosts file addition if needed
34 1 Anchi Cheng
35
--Appropriate IP addresses and hostnames added to the hosts files
36 10 Anchi Cheng
(C:/WINDOWS/System32/drivers/etc/hosts.txt on Windows PC's and
37 1 Anchi Cheng
/etc/hosts on Linux).
38 10 Anchi Cheng
39 11 Anchi Cheng
* On *ScopePC* - list hostnames of *SupportPC*, *DatabaseLinux* and *ProcessingLinux*
40
* On *SupportPC* - list both hostnames of *ScopePC* and *DatabaseLinux* and *ProcessingLinux*
41
* On *ProcessingLinux* and *DatabaseLinux* - list hostname of *SupportPC* in additional to other linux hosts  but not *ScopePC* since all communication from *ScopePC* to these through *SupportPC* will appear to come from *SupportPC*
42 8 Jim Pulokas
43 10 Anchi Cheng
h2. Install port forwarding program AUTAPF which allows needed host/port specification on *SupportPC*
44
45 11 Anchi Cheng
The screen shot below shows that case where:
46
* Port 55555 is opened by legion/laumcher.py (often called Leginon Client") on *ScopePC*, intended to serve data to *ProcessingLinux*. (Fixed port)
47
* Ports 49152 and 49153 are opened by two processes to send/receive data to *ScopePC". (You may need to add more ports in case of blockage.  See [[Ports used by Leginon]])
48
* Port 3306 is dedicated for database connection. (Fixed port)
49 2 Anchi Cheng
50 10 Anchi Cheng
!autapf.PNG!
51 2 Anchi Cheng
52
53
______
54 1 Anchi Cheng
55
[[Network Configuration| Go up]]
56
57
______