Testsuite: workaround TFO blackhole detection
[exim.git] / test / scripts / 4027-TFO-socks / 4027
CommitLineData
0ab63f3d
JH
1# socks5 proxy on smtp transport, TCP Fast Open
2#
3munge loopback
4#
5#
38da9088
JH
6# Wipe any stored TFO cookie, to start from known state.
7# Disable TFO blackhole-detection as we seem to be running afoul of that
8255135b
JH
8sudo perl
9system ("ip tcp_metrics delete 127.0.0.1");
38da9088 10system ("echo 0 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec");
8255135b
JH
11****
12#
38da9088 13# TFO both clients and server, no cookie yet
8255135b
JH
14server -tfo PORT_D
15<<\x05\x01\x00
16>>\x05\x00
17<<\x05\x01\x00\x01\x7f\x00\x00\x01\x04\xc8
18>>\x05\x00\x00\x01\x7f\x00\x00\x01\xbe\xef
19220 Connected OK
20EHLO
21250-server id
22250
23MAIL FROM
24250
25RCPT TO
26250
27DATA
28354 go ahead
29.
30250 accepted OK
31QUIT
32250 bye
33****
34#
35#
36exim -odi -bs -DOPT=
37ehlo test.ex
38mail from:<>
39rcpt to:<user_tfo@test.ex>
40data
41Date: Fri, 17 Dec 2004 14:35:01 +0100
42Subject: message should be sent
43
44connection trying TFO via proxy; no cookie yet
45.
46quit
47****
48#
49#
50#
0ab63f3d
JH
51# TFO client, not server
52server PORT_D
53<<\x05\x01\x00
54>>\x05\x00
55<<\x05\x01\x00\x01\x7f\x00\x00\x01\x04\xc8
56>>\x05\x00\x00\x01\x7f\x00\x00\x01\xbe\xef
57220 Connected OK
58EHLO
59250-server id
60250
61MAIL FROM
62250
63RCPT TO
64250
65DATA
66354 do me
67.
68250 accepted OK
69QUIT
70250 bye
71****
72#
73#
74exim -odi -bs -DOPT=
75ehlo test.ex
76mail from:<>
77rcpt to:<user_tfo@test.ex>
78data
79Date: Fri, 17 Dec 2004 14:35:01 +0100
80Subject: message should be sent
81
82connection trying TFO
83via null-auth proxy
84.
85quit
86****
87#
88#
89#
90# TFO client and server
91server -tfo PORT_D
92<<\x05\x01\x00
93>>\x05\x00
94<<\x05\x01\x00\x01\x7f\x00\x00\x01\x04\xc8
95>>\x05\x00\x00\x01\x7f\x00\x00\x01\xbe\xef
96220 Connected OK
97EHLO
98250-server id
99250
100MAIL FROM
101250
102RCPT TO
103250
104DATA
105354 do me mate
106.
107250 accepted OK
108QUIT
109250 bye
110****
111#
112#
113exim -odi -bs -DOPT=
114ehlo test.ex
115mail from:<>
116rcpt to:<user_tfo@test.ex>
117data
118Date: Fri, 17 Dec 2004 14:35:01 +0100
119Subject: message should be sent
120
121connection using TFO
122via null-auth proxy
123.
124quit
125****
126#
8255135b 127millisleep 500
0ab63f3d 128#
38da9088
JH
129sudo perl
130system ("echo 3600 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec");
131****
132#
0ab63f3d 133# Ends