Hiya, I’m having an issue with my IPSec tunnel and I cannot figure out what the issue is. I have a fairly simple PSK + Xauth setup:
[rbadmin@MikroTik] /ip pool> print where name="IPSec Clients"
# NAME RANGES
0 IPSec Clients 10.7.0.100-10.7.0.254
[rbadmin@MikroTik] /ip ipsec> export hide-sensitive verbose compact
# jun/04/2014 10:27:28 by RouterOS 6.13
# software id = 3192-5XAK
#
/ip ipsec mode-config
set (unknown) name=request-only send-dns=yes
add address-pool="IPSec Clients" address-prefix-length=24 name=MobileClients send-dns=yes split-include=192.168.10.0/24
/ip ipsec policy group
add name=MobileClients
/ip ipsec proposal
set [ find default=yes ] auth-algorithms=sha1 disabled=no enc-algorithms=aes-256-cbc lifetime=8h name=default pfs-group=none
/ip ipsec peer
add address=0.0.0.0/0 auth-method=pre-shared-key-xauth dh-group=modp1024 disabled=no dpd-interval=2m dpd-maximum-failures=5 enc-algorithm=aes-256 exchange-mode=main \
generate-policy=port-strict hash-algorithm=sha1 lifebytes=0 lifetime=1d local-address=192.168.10.1 mode-config=MobileClients nat-traversal=yes passive=yes policy-group=\
MobileClients port=500 proposal-check=obey send-initial-contact=no
/ip ipsec policy
add disabled=no dst-address=0.0.0.0/0 group=MobileClients proposal=default protocol=all src-address=10.7.0.0/24 template=yes
First thing I notice is the line that says set (unknown) name=request-only send-dns=yes. Is it supposed to say unknown? Anyhow, I have configured both my android device and my Windows7 laptop with Shrewsoft to connect and that works fine. The tunnel is established and it passes data. I can ping internal resources and internal resources can ping the mobile client.
But when I copy data in bigger packets such as CIFS towards my samba server of SCP to the routerboard itself there are a lot of retransmissions and duplicate ACK’s and the transfer stalls almost immediately. I have attached a screenshot to this post, this is what the packet stream from an IPSec client doing SCP to the routerboard looks like.
The internet connection is fine, no retransmissions or packet loss there.
The remote internet connection is fine, no retransmissions or packet loss there.
Tested from both Android and Windows client, same behaviour.
Only happens on IPSec, running OpenVPN through the routerboard (terminated inside the LAN) works fine.
I have firewall rules that allow 10.7.0.0/24 to anywhere in the forward chain and the default accept established. I also added an allow rule for 192.168.10.0/24 (LAN) to 10.7.0.0/24 on any interface.
This almost looks like a bug to me? Any suggestions? The capture is done on the routerboard itself.



