Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
fuss:openwrt [2019/03/25 14:19]
office [Getting Python Running Properly]
fuss:openwrt [2020/05/06 13:53] (current)
office [Getting Python Running Properly]
Line 96: Line 96:
 pip install -U pip setuptools pip install -U pip setuptools
 </​code>​ </​code>​
 +
 +====== Routing all Traffic through OpenVPN ======
 +
 +TL;DR: old trick, set a lower interface metric for the OpenVPN interface than the default gateway.
 +
 +Since there does not seem to be an official straightforward answer to route all traffic through OpenVPN "the OpenWrt way"​™ the following should be easy to accomplish via the interface:
 +
 +  * ensure that the OpenVPN server (or client configuration file) contains ''​redirect-gateway def1'',​
 +  * using the OpenWrt interface: ''​Network''​ -> ''​Interfaces''​ and for each WAN interface, click ''​Edit''​ and then go to ''​Advanced Settings''​ and set the ''​Interface Metric''​ to a given value (ie: ''​10''​),​
 +  * using the OpenWrt interface: ''​Network''​ -> ''​Interfaces''​ open up the OpenVPN interface, go to ''​Advanced Settings''​ and set the ''​Interface Metric''​ to a value lower than all WAN interfaces from the previous step (ie: ''​1''​).
 +
 +OpenWrt does not do this automatically even if ''​redirect-gateway def1''​ is pushed by the server.
  
  
  

fuss/openwrt.txt · Last modified: 2020/05/06 13:53 by office

Access website using Tor Access website using i2p


For the copyright, license, warranty and privacy terms for the usage of this website please see the license, privacy and plagiarism pages.