I recently bought my first Mikrotik and now I'm trying to set up IPSec/XAUTH connection from my Android device to Mikrotik. I hope I'm correct in assuming pre-shared-key-xauth is correct peer authentication method ? If so... I have a problem. This auth method isn't available using winbox, and when set using terminal, I see this line in the log:
ipsec,debug invalid authmethod 65001 why ?
I should probably mention I'm attempting connection from within my internal network ( thought it's a good idea to make it work that way first before opening IPSec ports ).
Here is my setup:
sep/06/2013 16:52:45 by RouterOS 6.3
software id = QVI6-KQVJ
/ip ipsec proposal
set [ find default=yes ] enc-algorithms=des,3des,aes-256 pfs-group=none
/ip ipsec peer
add auth-method=pre-shared-key-xauth enc-algorithm=des generate-policy=
port-override hash-algorithm=sha1 nat-traversal=yes secret=123456
send-initial-contact=noI have also created a user under /ip ipsec user.
I'm attaching a full log for reference.... I'm a newbie so any help would be greatly appreciated. log.1.txt (55.2 KB)
Hi, did you manage to get this working? Could you post a tutorial if you did? I also want to use IPsec X-Auth PSK with my Android device.
I used to use a Fritz!Box for this, which worked OK.
I’m puzzled about what I need to set up. A Peer? A User? A Policy? A Proposal? What’s the difference between the secret and the xauth password, where do I have to configure the group name which I will use in Android? So many questions…
add action=accept chain=input comment=IPsec !connection-bytes !connection-limit
!connection-mark !connection-rate !connection-state !connection-type !content disabled=
no !dscp !dst-address !dst-address-list !dst-address-type !dst-limit !dst-port !fragment
!hotspot !icmp-options !in-bridge-port in-interface=ether1-gateway !ingress-priority
!ipv4-options !layer7-protocol !limit !nth !out-bridge-port !out-interface !p2p
!packet-mark !packet-size !per-connection-classifier !port !priority protocol=ipsec-ah
!psd !random !routing-mark !routing-table !src-address !src-address-list
!src-address-type !src-mac-address !src-port !tcp-flags !tcp-mss !time !ttl...additionally I experienced different behaviour between Winbox and Terminal when creating proposals. A Winbox-created proposal didn't work but the same in Terminal worked.
But that was back in 6.10 or 6.11 - and I've heard that this bug should have been fixed.