1 # socks5 proxy on smtp transport, TCP Fast Open
3 # NOTE: ensure that TFO is fully enabled in the kernel.
4 # For linux: sysctl net.ipv4.tcp_fastopen=3
9 # Wipe any stored TFO cookie, to start from known state.
10 # Disable TFO blackhole-detection as we seem to be running afoul of that
12 system ("ip tcp_metrics delete 127.0.0.1");
13 system ("[ -e /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec ] && echo 0 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec");
16 # TFO both clients and server, no cookie yet
20 <<\x05\x01\x00\x01\x7f\x00\x00\x01\x04\xc8
21 >>\x05\x00\x00\x01\x7f\x00\x00\x01\xbe\xef
42 rcpt to:<user_tfo@test.ex>
44 Date: Fri, 17 Dec 2004 14:35:01 +0100
45 Subject: message should be sent
47 connection trying TFO via proxy; no cookie yet
54 # TFO client, not server
58 <<\x05\x01\x00\x01\x7f\x00\x00\x01\x04\xc8
59 >>\x05\x00\x00\x01\x7f\x00\x00\x01\xbe\xef
80 rcpt to:<user_tfo@test.ex>
82 Date: Fri, 17 Dec 2004 14:35:01 +0100
83 Subject: message should be sent
93 # TFO client and server
97 <<\x05\x01\x00\x01\x7f\x00\x00\x01\x04\xc8
98 >>\x05\x00\x00\x01\x7f\x00\x00\x01\xbe\xef
119 rcpt to:<user_tfo@test.ex>
121 Date: Fri, 17 Dec 2004 14:35:01 +0100
122 Subject: message should be sent
133 system ("[ -e /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec ] && echo 3600 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec");