Changes

no edit summary
Line 38: Line 38:  
  echo "5 rt" >> /etc/iproute2/rt_tables
 
  echo "5 rt" >> /etc/iproute2/rt_tables
   −
aaafafa
+
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.
 
----
 
----
*
+
* 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:
 +
 
 +
config interface 'vpnas'
 +
        option 'proto' 'none'
 +
        option 'ifname' '<span style="color:red>tun_c_client1</span>'
 +
 +
config 'route'
 +
        option 'interface' 'vpnas'
 +
        option 'target' '0.0.0.0'
 +
        option 'netmask' '0.0.0.0'
 +
        option 'table' 'rt'
 +
        option gateway '172.16.0.1'
 +
 +
config rule
 +
        option in 'lan'
 +
        option src '192.168.2.128/25'
 +
        option lookup 'rt'
 +
        option priority '10'

Navigation menu