In v6 I did the following (assuming pptp-out1 exists and is running) - this routes all traffic for received BGP prefixes through a VPN (and BGP requests themselves are sent out via a VPN too).
I understood that I can do roughly the same (without update-source) for instance and peer, but I'm not sure about filter since there's no
/ip route add dst-address=22.214.171.124/32 gateway=pptp-out1 /routing bgp instance set default as=64999 ignore-as-path-len=yes router-id=126.96.36.199 /routing bgp peer add hold-time=4m in-filter=bgp_in keepalive-time=1m multihop=yes name=antifilter remote-address=188.8.131.52 remote-as=65444 ttl=default update-source=pptp-out1 /routing filter add action=accept chain=bgp_in comment="Set nexthop to VPN" set-in-nexthop-direct=pptp-out1 /ip firewall nat add chain=srcnat action=masquerade out-interface=pptp-out1
But v7 completely changed the way BGP configuration works, so I'm at a loss for how I can replicate this in v7.
/routing bgp template set antifilter as=64999 hold-time=4m input.filter=bgp_in keepalive-time=1m multihop=yes name=antifilter # How do I specify that I want this connection to be done through pptp-out1 ? /routing bgp connection add local.role=ibgp remote.address=184.108.40.206/32 template=antifilter # How do I specify that I want traffic matching this rule to go through pptp-out1 ? /routing filter rule add action=accept chain=bgp_in /ip firewall nat add chain=srcnat action=masquerade out-interface=pptp-out1
Any help would be appreciated!