dd-wrtでOpenVPN (9)

MTU
sshログインができず調べていくと297byteまでしか通らないことがわかり、試行錯誤して変更。1374 bytesまでは通るようになった。ssh loginもできる。

サーバ(dd-wrt)側変更点
項目
Advanced OptionEnable
CompressionYes
Redirect default GatewayDisable
Allow Client to ClientDisable
Allow duplicate ClientsDisable
Tunnel MTU setting1500
Tunnel UDP Fragment(blank)
Tunnel UDP MSS-FixDisable
Use ECDH instead of DH.PEMDisable

クライアント側変更点
項目
Use LZO data compressiony
Use custom tunnel maximum Transmission Unit(MTU)1500

これで1374byte (1402byte)までのパケットは通過するが、1375byte (1403byte)以上はロストする。ファイル転送で失敗しそうな。
$ ping -s 1375 10.10.1.1
PING 10.10.1.1 (10.10.1.1) 1375(1403) bytes of data.
^C
--- 10.10.1.1 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

$ ping -s 1374 10.10.1.1
PING 10.10.1.1 (10.10.1.1) 1374(1402) bytes of data.
1382 bytes from 10.10.1.1: icmp_seq=1 ttl=64 time=2.78 ms
1382 bytes from 10.10.1.1: icmp_seq=2 ttl=64 time=2.27 ms
^C
--- 10.10.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 2.275/2.530/2.785/0.255 ms
(つづく)