Changes

Line 23: Line 23:  
==Router configuration==
 
==Router configuration==
   −
Most of the router's configuration will done via a command line interface by executing SSH commands. For examples provided in this guide, we will be using the Linux '''Terminal''' application. This is not the only available method. You can find detailed instruction on all command line interface available in RUTxxx routers '''[[Command line interfaces|here]]'''. Choose one that is available or most preferred by you and you will still be able to follow the guide step-by-step regardless of which method you chose as the commands used will remain identical.
+
Most of the router's configuration will be done via a command line interface. You can find detailed instruction on all command line interfaces supported by RUTxxx routers '''[[Command line interfaces|here]]'''. Choose one that is available or most preferred by you and you will still be able to follow the guide step-by-step regardless of which method you chose as the commands used will remain identical.
    
===OpenVPN client===
 
===OpenVPN client===
Line 33: Line 33:  
[[File:How to check openvpn status.png]]
 
[[File:How to check openvpn status.png]]
 
----
 
----
* If the connection was successful, we can start the traffic split configuration. First, we'll need to add an additional routing table. This can done by issuing the following command:
+
* If the connection was successful, we can start the traffic split configuration. First, we'll need to add an additional routing table. This can be done by issuing the following command:
    
  echo "<span style="color:red>5 rt</span>" >> <span style="color:red>/etc/iproute2/rt_tables</span>
 
  echo "<span style="color:red>5 rt</span>" >> <span style="color:red>/etc/iproute2/rt_tables</span>
   −
This adds a new routing table called ''rt''. ''/etc/iproute2/rt_tables'' is a file used by the ''iproute2'' utilities which translate user friendly names given on the command line into integer values used by the kernel. So the number ''5'' is just the way for the ''iproute'' to identify the table.
+
This adds a new routing table called ''rt''. ''/etc/iproute2/rt_tables'' is a file used by the ''iproute2'' utilities which translate user friendly names given on the command line into integer values used by the kernel. So the number ''5'' is just the way for the ''iproute2'' to identify the table.
 
----
 
----
* Next, we'll need to some entries to the network configuration file ''/etc/config/network''. You can edit the file with the ''vi'' command. Type '''vi /etc/config/network''' and press the "I" button on your keyboard to begin editing. Add the following lines:
+
* Next, we'll need to add some entries to the network configuration file ''/etc/config/network''. You can edit the file with the ''vi'' command. Type '''vi /etc/config/network''' and press the "I" button on your keyboard to begin editing. Add the following lines:
    
  config interface 'vpnas'
 
  config interface 'vpnas'
Line 59: Line 59:  
<ul>
 
<ul>
 
<li>
 
<li>
When you're finished, press the "Esc" button and type ''':wq''' to save the changes and exit the editor. The values highlighted in red are dependent on your configuration and will most likely need to be changed:
+
When you're finished, press the "Esc" button and type ''':wq''' to save the changes and exit the editor (''Control + C'' to exit without saving). The values highlighted in red are dependent on your configuration and will most likely need to be changed:
 
</li>
 
</li>
 
<ul>
 
<ul>
 
<li>
 
<li>
option ifname '<span style="color:red">tun_c_MyClient</span>' - your OpenVPN interface's name. You can check it with this command: '''ifconfig | grep tun'''. The response should look something like this (''ifname'' highlighted in red):
+
option ifname '<span style="color:red">tun_c_MyClient</span>' - your OpenVPN interface's name. You can check it with this command: '''ifconfig | grep tun'''. The response should look something like this:
 
<pre>
 
<pre>
 
tun_c_MyClient Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
 
tun_c_MyClient Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
 
</pre>  
 
</pre>  
 +
'''NOTE''': if the response is empty, your OpenVPN connection might be down.
 
</li>
 
</li>
<li> option gateway '<span style="color:red">10.0.0.5</span>' - your virtual remote endpoint. You can check it with this command: '''ifconfig tun_c_MyClient'''. Replace ''MyClient'' with your own OpenVPN interface name. The response should look something like this:
+
<li> option gateway '<span style="color:red">10.0.0.5</span>' - your virtual remote endpoint (or ''P-t-P''). You can check it with this command: '''ifconfig tun_c_MyClient'''. Replace the ''MyClient'' part with your own OpenVPN interface name. The response should look something like this:
 
<pre>
 
<pre>
 
tun_c_MyClient Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
 
tun_c_MyClient Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
Line 80: Line 81:  
</li>
 
</li>
 
<li>
 
<li>
option src '<span style="color:red">192.168.1.128/25</span>' - devices from this IP range will reach the Internet via the OpenVPN server  
+
option src '<span style="color:red">192.168.1.128/25</span>' - devices from this IP range will use the OpenVPN server as the default gateway to the Internet.
 
</li>
 
</li>
 
</ul>
 
</ul>

Navigation menu