1 # socks5 proxy on smtp transport, TCP Fast Open
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
9 system ("ip tcp_metrics delete 127.0.0.1");
10 system ("[ -e /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec ] && echo 0 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec");
13 # TFO both clients and server, no cookie yet
17 <<\x05\x01\x00\x01\x7f\x00\x00\x01\x04\xc8
18 >>\x05\x00\x00\x01\x7f\x00\x00\x01\xbe\xef
39 rcpt to:<user_tfo@test.ex>
41 Date: Fri, 17 Dec 2004 14:35:01 +0100
42 Subject: message should be sent
44 connection trying TFO via proxy; no cookie yet
51 # TFO client, not server
55 <<\x05\x01\x00\x01\x7f\x00\x00\x01\x04\xc8
56 >>\x05\x00\x00\x01\x7f\x00\x00\x01\xbe\xef
77 rcpt to:<user_tfo@test.ex>
79 Date: Fri, 17 Dec 2004 14:35:01 +0100
80 Subject: message should be sent
90 # TFO client and server
94 <<\x05\x01\x00\x01\x7f\x00\x00\x01\x04\xc8
95 >>\x05\x00\x00\x01\x7f\x00\x00\x01\xbe\xef
116 rcpt to:<user_tfo@test.ex>
118 Date: Fri, 17 Dec 2004 14:35:01 +0100
119 Subject: message should be sent
130 system ("[ -e /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec ] && echo 3600 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec");