Line 3: |
Line 3: |
| <th width=325; style="border-bottom: 1px solid white;></th> | | <th width=325; style="border-bottom: 1px solid white;></th> |
| <th width=820; style="border-bottom: 1px solid white;" rowspan=2;> | | <th width=820; style="border-bottom: 1px solid white;" rowspan=2;> |
− | [[File:Networking_rut_configuration_example_openvpn_bridge_use_case_topology_v1.png|border|class=tlt-border|750px|right]]</th> | + | [[File:Networking_rut_configuration_example_openvpn_bridge_use_case_topology_v3.png|border|class=tlt-border|750px|right]]</th> |
| </tr> | | </tr> |
| <tr> | | <tr> |
Line 28: |
Line 28: |
| ===OpenVPN=== | | ===OpenVPN=== |
| ---- | | ---- |
− | ====Generating static key==== | + | ====Generating Static key==== |
| ---- | | ---- |
| | | |
Line 56: |
Line 56: |
| <tr> | | <tr> |
| <td style="border-bottom: 1px solid white> | | <td style="border-bottom: 1px solid white> |
− | Write the following commands to create OpenVPN '''static key''', which will be used for authentication: | + | Write the following commands to create OpenVPN '''Static key''', which will be used for authentication: |
| 1) cd /etc/easy-rsa | | 1) cd /etc/easy-rsa |
| 2) openvpn --genkey --secret static.key | | 2) openvpn --genkey --secret static.key |
Line 79: |
Line 79: |
| <table class="nd-othertables_2"> | | <table class="nd-othertables_2"> |
| <tr> | | <tr> |
− | <th width=355; style="border-bottom: 1px solid white;></th> | + | <th width=525; style="border-bottom: 1px solid white;></th> |
− | <th width=790; style="border-bottom: 1px solid white;" rowspan=2>[[File:Winscp login instructions.PNG|770px|right]]</th> | + | <th width=620; style="border-bottom: 1px solid white;" rowspan=2>[[File:Winscp login instructions.PNG|border|class=tlt-border|550px|right]]</th> |
| </tr> | | </tr> |
| <tr> | | <tr> |
Line 95: |
Line 95: |
| <table class="nd-othertables_2"> | | <table class="nd-othertables_2"> |
| <tr> | | <tr> |
− | <th width=355; style="border-bottom: 1px solid white;></th> | + | <th width=525; style="border-bottom: 1px solid white;></th> |
− | <th width=790; style="border-bottom: 1px solid white;" rowspan=2>[[File:Winscp interface example.PNG|770px|right]]</th> | + | <th width=620; style="border-bottom: 1px solid white;" rowspan=2>[[File:Winscp interface example.PNG|border|class=tlt-border|550px|right]]</th> |
| </tr> | | </tr> |
| <tr> | | <tr> |
Line 137: |
Line 137: |
| <li>Select '''Authentication: Static key'''.</li> | | <li>Select '''Authentication: Static key'''.</li> |
| <li>Add '''Keep alive''' interval: '''10 120'''.</li> | | <li>Add '''Keep alive''' interval: '''10 120'''.</li> |
− | <li>Upload '''Static pre-shared key''' (use the .txt file you created in previous steps).</li> | + | <li>Upload '''Static pre-shared key'''.</li> |
| <li>'''Save''' the changes.</li> | | <li>'''Save''' the changes.</li> |
| </ol> | | </ol> |
Line 145: |
Line 145: |
| | | |
| ==Configuring remote office router== | | ==Configuring remote office router== |
− | ===OpenVPN=== | + | |
| + | Before you start configuring the remote office router, set a static IP address on the device you are configuring the router with (e.g. 192.168.1.10). You can find instructions on how to do that here: |
| + | |
| + | [[Setting_up_a_Static_IP_address_on_a_Ubuntu_16.04_PC|Ubuntu]] |
| + | |
| + | [[Setting up a Static IP address on a Windows 10 PC|Windows]] |
| + | |
| + | <span style="color: red;">'''Note: make sure to switch back to automatic DNS and IP address obtaining when you are done configuring the router.'''</span> |
| + | |
| + | ===LAN=== |
| ---- | | ---- |
| | | |
Line 151: |
Line 160: |
| <tr> | | <tr> |
| <th width=525; style="border-bottom: 1px solid white;></th> | | <th width=525; style="border-bottom: 1px solid white;></th> |
− | <th width=620; style="border-bottom: 1px solid white;" rowspan=2>[[File:Networking_rut_configuration_example_openvpn_bridge_use_case_6_v1.png|border|class=tlt-border|550px|right]]</th> | + | <th width=620; style="border-bottom: 1px solid white;" rowspan=2>[[File:Networking_rut_configuration_example_openvpn_bridge_use_case_8_v1.png|border|class=tlt-border|550px|right]]</th> |
| </tr> | | </tr> |
| <tr> | | <tr> |
| <td style="border-bottom: 1px solid white> | | <td style="border-bottom: 1px solid white> |
− | Go to '''Services → VPN → OpenVPN'''. There create a new configuration by selecting role '''Client''', writing '''New configuration name''' and pressing '''Add New''' button. It should appear after a few seconds. Then press '''Edit'''. | + | Go to '''Network → LAN''' and apply the following steps: |
| + | |
| + | <ol> |
| + | <li>Change your '''LAN IP address''' to: '''192.168.1.2</li> |
| + | <li>Disable '''DHCP'''.</li> |
| + | <li>'''Save''' the changes.</li> |
| + | </ol> |
| </td> | | </td> |
| </tr> | | </tr> |
| </table> | | </table> |
| | | |
| + | ===OpenVPN=== |
| + | ---- |
| + | ====Configuring OpenVPN client==== |
| ---- | | ---- |
| | | |
Line 165: |
Line 183: |
| <tr> | | <tr> |
| <th width=525; style="border-bottom: 1px solid white;></th> | | <th width=525; style="border-bottom: 1px solid white;></th> |
− | <th width=620; style="border-bottom: 1px solid white;" rowspan=2>[[File:Networking_rut_configuration_example_openvpn_bridge_use_case_7_v1.png|border|class=tlt-border|550px|right]]</th> | + | <th width=620; style="border-bottom: 1px solid white;" rowspan=2>[[File:Networking_rut_configuration_example_openvpn_bridge_use_case_6_v1.png|border|class=tlt-border|550px|right]]</th> |
| </tr> | | </tr> |
| <tr> | | <tr> |
| <td style="border-bottom: 1px solid white> | | <td style="border-bottom: 1px solid white> |
− | Now apply the following configuration:
| + | Go to '''Services → VPN → OpenVPN'''. There create a new configuration by selecting role '''Client''', writing '''New configuration name''' and pressing '''Add New''' button. It should appear after a few seconds. Then press '''Edit'''. |
− | | |
− | <ol>
| |
− | <li>'''Enable''' instance.</li>
| |
− | <li>Set '''TUN/TAP''' to '''TAP (bridged)'''.</li>
| |
− | <li>Enable '''LZO'''.</li>
| |
− | <li>Select '''Authentication: Static key'''.</li>
| |
− | <li>Write '''Remote host/IP address''' (RUT OpenVPN server public IP).</li>
| |
− | <li>Add '''Keep alive''' interval: '''10 120'''.</li>
| |
− | <li>Upload '''Static pre-shared key''' (use the .txt file you created in previous steps).</li>
| |
− | <li>'''Save''' the changes.</li>
| |
− | </ol>
| |
| </td> | | </td> |
| </tr> | | </tr> |
| </table> | | </table> |
| | | |
− | ===LAN===
| |
| ---- | | ---- |
| | | |
Line 191: |
Line 197: |
| <tr> | | <tr> |
| <th width=525; style="border-bottom: 1px solid white;></th> | | <th width=525; style="border-bottom: 1px solid white;></th> |
− | <th width=620; style="border-bottom: 1px solid white;" rowspan=2>[[File:Networking_rut_configuration_example_openvpn_bridge_use_case_8_v1.png|border|class=tlt-border|550px|right]]</th> | + | <th width=620; style="border-bottom: 1px solid white;" rowspan=2>[[File:Networking_rut_configuration_example_openvpn_bridge_use_case_7_v2.png|border|class=tlt-border|550px|right]]</th> |
| </tr> | | </tr> |
| <tr> | | <tr> |
| <td style="border-bottom: 1px solid white> | | <td style="border-bottom: 1px solid white> |
− | Now go to '''Network → LAN''' and apply the following steps: | + | Now apply the following configuration: |
| | | |
| <ol> | | <ol> |
− | <li>Change your '''LAN IP address''' to: '''192.168.1.2</li> | + | <li>'''Enable''' instance.</li> |
− | <li>Disable '''DHCP'''.</li> | + | <li>Set '''TUN/TAP''' to '''TAP (bridged)'''.</li> |
| + | <li>Enable '''LZO'''.</li> |
| + | <li>Select '''Authentication: Static key'''.</li> |
| + | <li>Write '''Remote host/IP address''' (RUT OpenVPN server public IP).</li> |
| + | <li>Add '''Keep alive''' interval: '''10 120'''.</li> |
| + | <li>Upload '''Static pre-shared key'''.</li> |
| <li>'''Save''' the changes.</li> | | <li>'''Save''' the changes.</li> |
| </ol> | | </ol> |