{"id":2097,"date":"2014-03-16T22:06:53","date_gmt":"2014-03-16T21:06:53","guid":{"rendered":"http:\/\/kudzia.eu\/b\/?p=2097"},"modified":"2015-11-02T10:07:36","modified_gmt":"2015-11-02T09:07:36","slug":"openvpn-throttled-from-ovhs-bhs-datacenter","status":"publish","type":"post","link":"https:\/\/kudzia.eu\/b\/2014\/03\/openvpn-throttled-from-ovhs-bhs-datacenter\/","title":{"rendered":"openvpn throttled from ovh&#8217;s bhs datacenter?"},"content":{"rendered":"<p>for work we rent a dedicated server from <a href=\"http:\/\/ovh.com\">OVH<\/a>. it&#8217;s been 5 months now and i&#8217;m pretty satisfied with the service provided. at the initial stage we&#8217;ve bumped into a problem that was never really solved; i cannot be even 100% sure if it&#8217;s OVH&#8217;s fault.<\/p>\n<p>UDP-based OpenVPN connection established from OVH&#8217;s BHS datacenter to IP addresses in Poland and Sweden [Bahnhof] had terrible performance and packet losses &#8211; it looked to me like the encrypted connection was throttled to ~2mbit\/s while we could easily push 60-90mbit\/s over tcp or udp. i exchanged some mails with the OVH&#8217;s support &#8211; but &#8211; to my despair &#8211; they denied any throttling. the problem remains unsolved but i found a simple workaround &#8211; i have a GRE tunnel established from OVH to both endpoints and i run OpenVPN via GRE. it&#8217;s not a very elegant solution, but it works just fine and we&#8217;re pushing at peak 70-90mbit\/s each day via that encrypted tunnel.<\/p>\n<p>on one end of the tunnel [machine with ip: 192.95.ovh.ip] i have:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nip tunnel add tun20 mode gre local 192.95.ovh.ip remote 79.136.ip.inSweden ttl 225\r\nip link set dev tun20 up\r\nip address add dev tun20 10.1.1.4 peer 10.1.1.3\/32\r\n<\/pre>\n<p>on another end [linux box with ip 79.136.ip.inSweden]:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nip tunnel add tun20 mode gre local 79.136.ip.inSweden remote 192.95.ovh.ip  ttl 225\r\nip link set dev tun20 up\r\nip address add dev tun20 10.1.1.3 peer 10.1.1.4\/32\r\n<\/pre>\n<p>and openvpn is configured to use 10.1.1.3, 10.1.1.4 addresses rather than public ips. i lose a bit of bandwidth on encapsulation but still get 60-80mbit\/s via such vpn instead of mere 2mbit\/s.<\/p>\n<p><b>2015-11 edit:<\/b> we&#8217;ve been using UDP over IPv6 as an openvpn transport sine ~ April 2015 and it gave us most stable connection so far.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>for work we rent a dedicated server from OVH. it&#8217;s been 5 months now and i&#8217;m pretty satisfied with the service provided. at the initial stage we&#8217;ve bumped into a problem that was never really solved; i cannot be even 100% sure if it&#8217;s OVH&#8217;s fault. UDP-based OpenVPN connection established from OVH&#8217;s BHS datacenter to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,51],"tags":[47,82],"class_list":["post-2097","post","type-post","status-publish","format-standard","hentry","category-tech","category-unimportant","tag-linux-networking","tag-ovh"],"_links":{"self":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/2097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/comments?post=2097"}],"version-history":[{"count":5,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/2097\/revisions"}],"predecessor-version":[{"id":2550,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/2097\/revisions\/2550"}],"wp:attachment":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/media?parent=2097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/categories?post=2097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/tags?post=2097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}