I've setup an IPsec on Linksys 3200ACM (Router IP:192.168.1.1) running on OpenWrt SNAPSHOT r10899. My settings are as follows. This setup works fine with iOS connections, but failed on all other platforms such as Windows 10 (error messages says:security layer could not authenticate remote computer), Andriod (no erroe message given) and macOS (no response from VPN server). I wonder what might be the reason for this.
# basic configuration
config setup
charondebug=all
# Add connections here.
conn %default
ikelifetime=60m
keylife=20m
rekeymargin=3m
keyingtries=1
conn roadwarrior
keyexchange=ikev1
left=%any
leftid=@openwrt.lan
leftdns=8.8.8.8,8.8.4.4
leftsubnet=0.0.0.0/0
leftauth=psk
leftfirewall=yes
lefthostaccess=yes
right=%any
rightauth=psk
rightauth2=xauth
rightsourceip=192.168.11.0/24
rightdns=8.8.8.8,8.8.4.4
auto=add
firewall setting
config rule 'ipsec_esp'
option src 'wan'
option name 'IPSec ESP'
option proto 'esp'
option target 'ACCEPT'
config rule 'ipsec_ike'
option src 'wan'
option name 'IPSec IKE'
option proto 'udp'
option dest_port '500'
option target 'ACCEPT'
config rule 'ipsec_nat_traversal'
option src 'wan'
option name 'IPSec NAT-T'
option proto 'udp'
option dest_port '4500'
option target 'ACCEPT'
config rule 'ipsec_auth_header'
option src 'wan'
option name 'Auth Header'
option proto 'ah'
option target 'ACCEPT'