I am bussy with using the latest implementation of IKv2 with EAP authentication. I have it working but I have to manually change each time the entry address of the IKEv2 connection in Mangle.
Using the IPIP is partly working when I test it using the ping tool in Winbox.
/ip address
add address=172.20.20.5 interface=ipip-inner network=172.20.20.1
/interface ipip
add local-address=172.20.20.5 mtu=1500 name=ipip-inner remote-address=127.0.0.1
This creates a route:
DC 172.20.20.1/32 172.20.20.5 ipip-inner 255
When I ping to an external IP the traffic is going through the tunnel because it is matched in NAT by the source address 172.20.20.5 which dynamicly generated when connecting to the IKEv2 server.
0 D ;;; ipsec mode-config
chain=srcnat action=src-nat to-addresses=10.xx.xx.162 src-address-list=IKEV dst-address-list=!KEV
In connection tracking the ipencap is visible:
6 C s protocol=ipencap src-address=172.20.20.5 dst-address=127.0.0.1 reply-src-address=127.0.0.1 reply-dst-address=10.xx.x.162 timeout=9m56s orig-packets=260 orig-bytes=10 400 orig-fasttrack-packets=0 orig-fasttrack-bytes=0 repl-packets=0 repl-bytes=0
repl-fasttrack-packets=0 repl-fasttrack-bytes=0 orig-rate=0bps repl-rate=0bps
And when pinging through the IPIP interface:
13 S C s protocol=icmp src-address=172.20.20.5 dst-address=8.8.8.8 reply-src-address=8.8.8.8 reply-dst-address=10.xx.x.162 icmp-type=8 icmp-code=0 icmp-id=46338 timeout=9s orig-packets=7 orig-bytes=350 orig-fasttrack-packets=0 orig-fasttrack-bytes=0
repl-packets=7 repl-bytes=350 repl-fasttrack-packets=0 repl-fasttrack-bytes=0 orig-rate=800bps repl-rate=400bps
How can get it working that I send traffic through the IPIP address so that if ends up at the entry-point 10.xx.x.162 to go through the IKEv2 tunnel?
