sdf_s_vpn_servers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
sdf_s_vpn_servers [2021/03/20 19:40] – [Connecting in Linux] hc9 | sdf_s_vpn_servers [2021/03/21 00:16] – [Connecting in FreeBSD] hc9 | ||
---|---|---|---|
Line 78: | Line 78: | ||
< | < | ||
- | root@OpenWrt: | + | |
</ | </ | ||
Line 177: | Line 177: | ||
ip route del $SDFVPNHOST via $VIA dev $DEV table sdftun | ip route del $SDFVPNHOST via $VIA dev $DEV table sdftun | ||
</ | </ | ||
- | + | * This automatically detects the default gateway and adds appropriate routes, starts the VPN and deletes the routes after VPN has been stopped. If you do not use a custom routing table dedicated to the SDF VPN you should delete the lines ending in "table sdftun" | |
- | This automatically detects the default gateway and adds appropriate routes, starts the VPN and deletes the routes after VPN has been stopped. If you do not use a custom routing table dedicated to the SDF VPN you should delete the lines ending in "table sdftun" | + | |
==== GUI Setup With NetworkManager ==== | ==== GUI Setup With NetworkManager ==== | ||
Line 198: | Line 197: | ||
{{ : | {{ : | ||
- | Click on the **Add** button, and choose **Point-to-Point Tunneling Protocol (PPTP)**, then click **Create**. Fill out the **User name**, **Password** and **Gateway** fields with appropriate values ([[#setup|from when you ran //setvpn//]]): | + | Click on the **Add** button, and choose **Point-to-Point Tunneling Protocol (PPTP)**, then click **Create**. Fill out the **User name**, **Password** and **Gateway** fields with appropriate values ([[#setting_it_up|from when you ran setvpn]]): |
{{ : | {{ : | ||
Line 224: | Line 223: | ||
For this setup you'll need to install the following kernel module packages: // | For this setup you'll need to install the following kernel module packages: // | ||
- | |**1**|Login to your OpenWRT device via SSH.| | + | - Login to your OpenWRT device via SSH. |
- | |**2**|Install the required kernel modules and plugins: //opkg install kmod-pptp kmod-mppe ppp-mod-pptp// | + | |
- | |**3**|Open /// | + | |
- | + | ||
- | < | + | |
#### VPN configuration | #### VPN configuration | ||
config ' | config ' | ||
Line 239: | Line 235: | ||
option ' | option ' | ||
option ' | option ' | ||
- | |||
</ | </ | ||
- | + | - Open /// | |
- | |**4**|Open /// | + | |
- | + | ||
- | < | + | |
noipdefault | noipdefault | ||
nodefaultroute | nodefaultroute | ||
Line 261: | Line 252: | ||
deflate 9,15 | deflate 9,15 | ||
idle 0 | idle 0 | ||
- | |||
</ | </ | ||
- | + | - Restart networking to connect to the VPN: /// | |
- | |**5**|Restart networking to connect to the VPN: /// | + | |
- | |**6**|If everything worked correctly, the // | + | |
- | + | ||
- | < | + | |
pptp-vpn | pptp-vpn | ||
inet addr: | inet addr: | ||
Line 276: | Line 262: | ||
collisions: | collisions: | ||
RX bytes:1159 (1.1 KiB) TX bytes:128 (128.0 B) | RX bytes:1159 (1.1 KiB) TX bytes:128 (128.0 B) | ||
- | |||
</ | </ | ||
- | + | - Routing can be set up like any Linux OS, so follow the routing instructions found above: [[#connecting_in_linux|Linux]]. | |
- | |**7**|Routing can be set up like any Linux OS, so follow the routing instructions found above: [[#linux|Linux]].| | + | |
==== PPTP Userspace Utility ==== | ==== PPTP Userspace Utility ==== | ||
Line 285: | Line 269: | ||
- Login to your OpenWRT device via SSH. | - Login to your OpenWRT device via SSH. | ||
- Install the required userspace tools and module for MPPE: //opkg install pptp kmod-mppe// | - Install the required userspace tools and module for MPPE: //opkg install pptp kmod-mppe// | ||
- | - Follow the [[#linux|Linux]] directions above like normal. | + | - Follow the [[#connecting_in_linux|Linux]] directions above like normal. |
- If you are still having trouble, look over the official OpenWRT documentation found here: http:// | - If you are still having trouble, look over the official OpenWRT documentation found here: http:// | ||
===== Connecting in FreeBSD ===== | ===== Connecting in FreeBSD ===== | ||
- | * Install mpd4 from ports or packages. | + | * Install |
* Add the following section to your / | * Add the following section to your / | ||
Line 389: | Line 373: | ||
[[http:// | [[http:// | ||
- | |**1**|Open Viscosity' | + | - Open Viscosity' |
- | |**2**|Create a new connection| | + | |
- | + | | |
- | {{: | + | |
- | + | | |
- | |**3**|In the New Connection window,| | + | |
- | + | | |
- | * Give your connection a name | + | |
- | | + | |
- | | + | |
- | | + | |
- | + | | |
- | {{: | + | |
- | + | | |
- | |**4**|Move on to the Authentication tab| | + | |
- | + | | |
- | * You will need to copy the certificates and keys you received in e-mail to a //SECURE// location on your //local// disk. | + | |
- | | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | |**5**|Now move to the Options tab| | + | |
- | |**6**|Set LZO Compression to **On** or **On (Adaptive)**| | + | |
- | + | ||
- | {{: | + | |
That's it! Hit Save, and you're ready to roll securely through the SDF VPN. | That's it! Hit Save, and you're ready to roll securely through the SDF VPN. |
sdf_s_vpn_servers.txt · Last modified: 2021/03/21 00:29 by hc9