connecting_to_the_sdf_vpn_with_pptp
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
connecting_to_the_sdf_vpn_with_pptp [2021/03/12 04:15] – created hc9 | connecting_to_the_sdf_vpn_with_pptp [2021/03/12 04:57] – [Connecting in FreeBSD] hc9 | ||
---|---|---|---|
Line 51: | Line 51: | ||
- Create a file named sdfpptp in / | - Create a file named sdfpptp in / | ||
- | | + | < |
- | linkname sdfpptp | + | |
- | ipparam sdfpptp | + | remotename sdfpptp |
- | pty "pptp --loglevel 0 **//IP Address//** --nolaunchpppd" | + | |
- | name **// | + | |
- | refuse-eap | + | |
- | refuse-pap | + | |
- | refuse-chap | + | |
- | refuse-mschap | + | |
- | require-mppe | + | |
- | nomppe-stateful | + | |
- | require-mppe-128 | + | |
- | nomppe-40 | + | |
- | noauth | + | |
- | nodetach | + | |
- | lock | + | |
- | bsdcomp 9,15 | + | |
- | deflate 9,15 | + | |
- | idle 0 | + | |
+ | | ||
+ | | ||
+ | |||
+ | </ | ||
- Save the file. | - Save the file. | ||
Line 98: | Line 102: | ||
Fedora: | Fedora: | ||
- | | + | |'' |
Debian/ | Debian/ | ||
- | | + | |'' |
Once installed, restart the NetworkManager service (/// | Once installed, restart the NetworkManager service (/// | ||
Line 127: | Line 131: | ||
* Install mpd4 from ports or packages. | * Install mpd4 from ports or packages. | ||
- | * Add the following section to your / | + | * Add the following section to your / |
+ | |||
+ | < | ||
+ | |||
+ | sdfvpn: | ||
+ | | ||
+ | set iface disable on-demand | ||
+ | set iface idle 0 | ||
+ | # disconnect the client after 8 hours | ||
+ | set iface session 28800 | ||
+ | set iface route 10.0.0.0/24 | ||
+ | set iface route default | ||
+ | set bundle disable multilink | ||
+ | set auth authname " | ||
+ | set auth password " | ||
+ | set link yes acfcomp protocomp | ||
+ | set link no eap | ||
+ | set link no pap | ||
+ | set link accept chap | ||
+ | set link mtu 1460 | ||
+ | set link keep-alive 10 75 | ||
+ | set ipcp yes vjcomp | ||
+ | set ipcp ranges 0.0.0.0/ | ||
+ | set ipcp yes req-pri-dns req-sec-dns | ||
+ | |||
+ | # | ||
+ | # The five lines below enable Microsoft Point-to-Point encryption | ||
+ | # (MPPE) using the ng_mppc(8) netgraph node type. | ||
+ | # | ||
+ | set bundle yes compression | ||
+ | set ccp yes mppc | ||
+ | set ccp yes mpp-compress | ||
+ | set ccp yes mpp-e128 | ||
+ | #set bundle accept crypt-reqd | ||
+ | set ccp yes mpp-stateless | ||
+ | open | ||
+ | |||
+ | </ | ||
* You will have to replace three (3) things in this config: | * You will have to replace three (3) things in this config: | ||
- Your USERNAME | - Your USERNAME | ||
- Your PASSWORD | - Your PASSWORD | ||
- | - The local address of SDF's VPN host. This can be found in /etc/hosts on SDF. The local IP will start with 10.0.0, but have the same last octet as the public IP. ' | + | - The local address of SDF's VPN host. This can be found in /etc/hosts on SDF. The local IP will start with 10.0.0, but have the same last octet as the public IP. |
- | * Add this in your / | + | |
+ | * Add this in your / | ||
+ | |||
+ | < | ||
+ | |||
+ | sdfvpn: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | </ | ||
* You will have to replace one (1) thing in this config: | * You will have to replace one (1) thing in this config: | ||
- The public address of SDF's VPN host. You can get this by running setvpn at the shell. | - The public address of SDF's VPN host. You can get this by running setvpn at the shell. |
connecting_to_the_sdf_vpn_with_pptp.txt · Last modified: 2021/04/02 07:56 by hc9