{"id":1487,"date":"2021-12-10T04:18:55","date_gmt":"2021-12-10T02:18:55","guid":{"rendered":"http:\/\/www.shukko.com\/x3\/?p=1487"},"modified":"2021-12-10T04:19:26","modified_gmt":"2021-12-10T02:19:26","slug":"routing-traffic-over-wireguard-with-mikrotik-to-a-specific-ip-address","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2021\/12\/10\/routing-traffic-over-wireguard-with-mikrotik-to-a-specific-ip-address\/","title":{"rendered":"routing traffic over wireguard with mikrotik to a specific ip address&#8230;"},"content":{"rendered":"\n<p>routing traffic over wireguard with mikrotik to a specific ip address\u2026<\/p>\n\n\n\n<p>Routing traffic for a specific destination over the VPN is definitely much easier. After creating the VPN tunnel between two Mikrotik routers, it was a two-more step process:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/ip firewall nat\nadd action=masquerade chain=srcnat ipsec-policy=out,none out-interface=NAME-OF-WG-INTERFACE\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\/ip route\nadd distance=1 dst-address=ip.ip.ip.ip\/32 gateway=IP-OF-WG-SERVER<\/code><\/pre>\n\n\n\n<p>Larger subnets than a single ip can be routed through the VPN, and multiple subnets can be routed too. The caveat for this simpler method is that you cannot route &#8220;all&#8221; traffic (ie. to 0.0.0.0) through the VPN, or else the client Mikrotik itself cannot route its own traffic either.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>routing traffic over wireguard with mikrotik to a specific ip address\u2026 Routing traffic for a specific destination over the VPN is definitely much easier. After creating the VPN tunnel between two Mikrotik routers, it was a two-more step process: Larger subnets than a single ip can be routed through the VPN, and multiple subnets can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1487","post","type-post","status-publish","format-standard","hentry","category-kategerisiz"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=1487"}],"version-history":[{"count":2,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1487\/revisions"}],"predecessor-version":[{"id":1489,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1487\/revisions\/1489"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=1487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=1487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=1487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}