{"id":463,"date":"2019-08-17T13:55:39","date_gmt":"2019-08-17T13:55:39","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=463"},"modified":"2019-08-17T13:55:39","modified_gmt":"2019-08-17T13:55:39","slug":"how-to-stop-redirecting-all-traffic-trough-openvpn","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/how-to-stop-redirecting-all-traffic-trough-openvpn.html","title":{"rendered":"How to Stop Redirecting All Traffic Trough OpenVPN"},"content":{"rendered":"\n<p>There are cases, where you might want to use OpenVPN to redirect only a fraction of traffic, but not all. By default, after you connect to OpenVPN, server would push the call <code>'redirect-gateway'<\/code> to the client to make the client divert all the traffic through <code>tun<\/code> network.<\/p>\n\n\n\n<p>This behavior can be override with the following command line argument:<\/p>\n\n\n\n<p><code>--pull-filter ignore redirect-gateway<\/code><\/p>\n\n\n\n<p>You can add it in the openvpn command line as following:<\/p>\n\n\n\n<p><code>openvpn  --pull-filter ignore redirect-gateway  --config \"your_file.ovpn\"<\/code><\/p>\n\n\n\n<p>Once this is done, remember that, you have to route the targetted traffic using either the <code>route<\/code> command or <code>'ip route'<\/code> command, otherwise no traffic will route through your openvpn tunnel network.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are cases, where you might want to use OpenVPN to redirect only a fraction of traffic, but not all. By default, after you connect to OpenVPN, server would push the call &#8216;redirect-gateway&#8217; to the client to make the client divert all the traffic through tun network. This behavior can be override with the following &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/how-to-stop-redirecting-all-traffic-trough-openvpn.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Stop Redirecting All Traffic Trough OpenVPN&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,237,294],"tags":[],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/463"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=463"}],"version-history":[{"count":1,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/463\/revisions"}],"predecessor-version":[{"id":464,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/463\/revisions\/464"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}