Ok, mtu is good ... msfix is not defined...
We make a test environement for determine why it do that. All configurations is on the same switch.
We make a First computer > WIN7 with
192.168.0.21 ip adress
We make a router in Debian with 2 network interface :
one in > Eth0
192.168.1.20
and the other > Eth1
192.168.0.20
We make a second debian with OpenVPN > Eth0
192.168.1.2
And the final computer is in WIN7 >
192.168.1.3
The translation between router and the VPN is in UDP / NAT
------
result :
The ping between 192.168.0.21 and 192.168.1.3 is good, when in make a TSE between these computer, it's good but very slow. When I made a big transfert by a windows sharing, the transfert begin at 30 Megabyte/s for 20 secondes and falls at 0 Kb/s
The links between two machines is already works...
------
I don't understand...
here our config files :
dev tun
proto udp
remote 192.168.0.20 1194
resolv-retry infinite
nobind
persist-key
persist-tun
#tun-mtu 1500
#link-mtu 1472
#tls-client
#mssfix 1400
#fragment 1300
#no-replay
verb 5
ca ca.crt
key A206698.key
cert A206698.crt
ns-cert-type server
comp-lzo
port 1194
proto udp
dev tun
ca ca.crt
cert mcdpmad01.crt
key mcdpmad01.key
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.1.0 255.255.255.0"
;push "route 10.150.0.0 255.255.0.0"
;push "dhcp-option DNS 10.150.20.6"
;push "dhcp-option DNS 10.150.20.2"
;push "dhcp-option DOMAIN mcd.fr.atosorigin.com"
client-to-client
duplicate-cn
keepalive 10 120
;tls-auth ta.key 0
;cipher BF-CBC # Blowfish (default)
;cipher AES-128-CBC # AES
;cipher DES-EDE3-CBC # Triple-DES
comp-lzo
;max-clients 100
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
log-append openvpn.log
verb 5
;mute 20
here the configuration of router and debian vpn
echo 1 > /proc/sys/net/ipv4/ip_forward
and this configuration for the router !
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT
iptables -A FORWARD -o eth0 -i eth1 -j ACCEPT
iptables -t nat -A PREROUTING -i eth1 -p udp -m udp --dport 1194 -j DNAT --to 192.168.1.2:1194
iptables -A FORWARD -d 192.168.1.2/24 -i eth1 -p udp -m udp --dport 1194 -j ACCEPT
Thank for your answer, I hope this problem can be resolv.