File: NOTES.proxy-datatransfer-policy

package info (click to toggle)
proftpd-mod-proxy 0.9.2-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,972 kB
  • sloc: perl: 43,469; ansic: 43,171; sh: 3,479; makefile: 247
file content (120 lines) | stat: -rw-r--r-- 2,994 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120

                       Client:

  C -> P: PORT 1,2,3,4,5,6        P -> S: PORT 9,8,7,6,5,4
  C <- P: 200 OK                  P <- S: 200 OK

  C -> P: PASV                    P -> S: PASV
  C <- P: 227 (1,2,3,4,5,6)       P <- S: 227 (9,8,7,6,5,4)

Order of operations:

  C -> P: PORT
    Parse addr/port
    Check RFC1918 addr
    Check AllowForeignAddress
    Check high-numbered port

    Open local listening conn
    Format local listening addr for PORT command
    Send new PORT command to S
    Receive 200 OK response from S

    Send 200 OK response to C
    Set frontend_sess_flags = SF_PORT
    Set backend_sess_flags = SF_PORT

  C -> P: PASV
    Send PASV command to S
    Receive 227 response from S
    Parse addr/port
    Check addr against remote addr
    Check high-numbered port

    Open local listening conn
    Format local listening addr for PASV response
    Send new PASV response to C

    Set frontend_sess_flags = SF_PASSIVE
    Set backend_sess_flags = SF_PASSIVE


                       Active:

  C -> P: PORT 1,2,3,4,5,6        P -> S: PORT 9,8,7,6,5,4
  C <- P: 200 OK                  P <- S: 200 OK

  C -> P: PASV                    P -> S: PORT 9,8,7,6,5,4
  C <- P: 227 (1,2,3,4,5,6)       P <- S: 200 OK

Order of operations:

  C -> P: PORT
    Parse addr/port
    Check RFC1918 addr
    Check AllowForeignAddress
    Check high-numbered port

    Open local listening conn
    Format local listening addr for PORT command
    Send new PORT command to S
    Receive 200 OK response from S

    Send 200 OK response to C
    Set frontend_sess_flags = SF_PORT
    Set backend_sess_flags = SF_PORT

  C -> P: PASV
    Open local listening conn
    Format local listening addr for PORT command
    Send new PORT command to S
    Receive 200 OK response from S

    Open local listening conn
    Format local listening addr for PASV response
    Send new PASV response to C

    Set frontend_sess_flags = SF_PASSIVE
    Set backend_sess_flags = SF_PORT


                       Passive:

  C -> P: PORT 1,2,3,4,5,6        P -> S: PASV
  C <- P: 200 OK                  P <- S: 227 (9,8,7,6,5,4)

  C -> P: PASV                    P -> S: PASV
  C <- P: 227 (1,2,3,4,5,6)       P <- S: 227 (9,8,7,6,5,4)

Order of operations:

  C -> P: PORT
    Parse addr/port
    Check RFC1918 addr
    Check AllowForeignAddress
    Check high-numbered port

    Send new PASV command to S
    Receive 227 responses from S
    Parse addr/port
    Check addr against remote addr
    Check high-numbered port

    Send 200 OK response to C
    Set frontend_sess_flags = SF_PORT
    Set backend_sess_flags = SF_PASSIVE

  C -> P: PASV
    Send PASV command to S
    Receive 227 response from S
    Parse addr/port
    Check addr against remote addr
    Check high-numbered port

    Open local listening conn
    Format local listening addr for PASV response
    Send new PASV response to C

    Set frontend_sess_flags = SF_PASSIVE
    Set backend_sess_flags = SF_PASSIVE