Testsuite: for TFO testcases manipulate the system state
[exim.git] / test / scripts / 4027-TFO-socks / 4027
1 # socks5 proxy on smtp transport, TCP Fast Open
2 #
3 munge loopback
4 #
5 #
6 # TFO both clients and server, no cookie yet
7 sudo perl
8 system ("ip tcp_metrics delete 127.0.0.1");
9 ****
10 #
11 server -tfo PORT_D
12 <<\x05\x01\x00
13 >>\x05\x00
14 <<\x05\x01\x00\x01\x7f\x00\x00\x01\x04\xc8
15 >>\x05\x00\x00\x01\x7f\x00\x00\x01\xbe\xef
16 220 Connected OK
17 EHLO
18 250-server id
19 250
20 MAIL FROM
21 250
22 RCPT TO
23 250
24 DATA
25 354 go ahead
26 .
27 250 accepted OK
28 QUIT
29 250 bye
30 ****
31 #
32 #
33 exim -odi -bs -DOPT=
34 ehlo test.ex
35 mail from:<>
36 rcpt to:<user_tfo@test.ex>
37 data
38 Date: Fri, 17 Dec 2004 14:35:01 +0100
39 Subject: message should be sent
40
41 connection trying TFO via proxy; no cookie yet
42 .
43 quit
44 ****
45 #
46 #
47 #
48 # TFO client, not server
49 server PORT_D
50 <<\x05\x01\x00
51 >>\x05\x00
52 <<\x05\x01\x00\x01\x7f\x00\x00\x01\x04\xc8
53 >>\x05\x00\x00\x01\x7f\x00\x00\x01\xbe\xef
54 220 Connected OK
55 EHLO
56 250-server id
57 250
58 MAIL FROM
59 250
60 RCPT TO
61 250
62 DATA
63 354 do me
64 .
65 250 accepted OK
66 QUIT
67 250 bye
68 ****
69 #
70 #
71 exim -odi -bs -DOPT=
72 ehlo test.ex
73 mail from:<>
74 rcpt to:<user_tfo@test.ex>
75 data
76 Date: Fri, 17 Dec 2004 14:35:01 +0100
77 Subject: message should be sent
78
79 connection trying TFO
80 via null-auth proxy
81 .
82 quit
83 ****
84 #
85 #
86 #
87 # TFO client and server
88 server -tfo PORT_D
89 <<\x05\x01\x00
90 >>\x05\x00
91 <<\x05\x01\x00\x01\x7f\x00\x00\x01\x04\xc8
92 >>\x05\x00\x00\x01\x7f\x00\x00\x01\xbe\xef
93 220 Connected OK
94 EHLO
95 250-server id
96 250
97 MAIL FROM
98 250
99 RCPT TO
100 250
101 DATA
102 354 do me mate
103 .
104 250 accepted OK
105 QUIT
106 250 bye
107 ****
108 #
109 #
110 exim -odi -bs -DOPT=
111 ehlo test.ex
112 mail from:<>
113 rcpt to:<user_tfo@test.ex>
114 data
115 Date: Fri, 17 Dec 2004 14:35:01 +0100
116 Subject: message should be sent
117
118 connection using TFO
119 via null-auth proxy
120 .
121 quit
122 ****
123 #
124 millisleep 500
125 #
126 # Ends