{"id":310,"date":"2017-04-22T17:34:40","date_gmt":"2017-04-22T16:34:40","guid":{"rendered":"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=310"},"modified":"2017-04-22T17:34:40","modified_gmt":"2017-04-22T16:34:40","slug":"hadante-routing","status":"publish","type":"post","link":"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=310","title":{"rendered":"Hadante Routing"},"content":{"rendered":"<p>Well, that took quite some doing. Turns out that KabelDeutschland\/Vodafone is the least worse provider for VPN-Connections. Routed via Telekom the RDP-Connections are flaky at best.<\/p>\n<p>By default, everything is routed via ppp0\/tkom, set up in \/etc\/ppp\/ip-up.d\/tkom-up.sh, <strong>except<\/strong> for valhalla and the VPN-Server@Work:<\/p>\n<pre>\/usr\/bin\/ip rule add to &lt;valhalla&gt;\/32 lookup kd\r\n\/usr\/bin\/ip rule add to &lt;work&gt;\/32 lookup kd<\/pre>\n<p><strong>DO NOT<\/strong> flush all rules, no matter what! This will inevitably lead to &#8220;Destination Host Unreachable&#8221;, because the rules for looking up main and default are flushed, too. Took me a while to figure out \ud83d\ude41<\/p>\n<p>To fill the routing table kd, add this to \/etc\/systemd\/network\/ext.network:<\/p>\n<pre>[DHCP] \r\nRouteMetric=4096 \r\nRouteTable=199<\/pre>\n<p>This adds the routes pushed by DHCP to table 199. RouteTable 199 is defined in \/etc\/iproute2\/rt_tables:<\/p>\n<pre># \r\n# reserved values \r\n# \r\n255 \u00a0\u00a0\u00a0\u00a0local \r\n254 \u00a0\u00a0\u00a0\u00a0main \r\n253 \u00a0\u00a0\u00a0\u00a0default \r\n0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0unspec \r\n# \r\n# local \r\n# \r\n#1 \u00a0\u00a0\u00a0\u00a0\u00a0inr.ruhep \r\n200 tkom \r\n199 kd<\/pre>\n<p>Together with the rules above everything to valhalla and work is now routed via KD.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well, that took quite some doing. Turns out that KabelDeutschland\/Vodafone is the least worse provider for VPN-Connections. Routed via Telekom the RDP-Connections are flaky at best. By default, everything is routed via ppp0\/tkom, set up in \/etc\/ppp\/ip-up.d\/tkom-up.sh, except for valhalla and the VPN-Server@Work: \/usr\/bin\/ip rule add to &lt;valhalla&gt;\/32 lookup kd \/usr\/bin\/ip rule add to &lt;work&gt;\/32 &hellip; <a href=\"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=310\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Hadante Routing<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,77,76],"tags":[98],"class_list":["post-310","post","type-post","status-publish","format-standard","hentry","category-arch-linux","category-linux","category-network","tag-routing"],"_links":{"self":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=310"}],"version-history":[{"count":1,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/310\/revisions"}],"predecessor-version":[{"id":311,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/310\/revisions\/311"}],"wp:attachment":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}