This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorials:vpn [2011/04/30 12:57] – clemens | tutorials:vpn [2012/05/02 17:51] – minor formatting fixes memnon | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Contents ===== | ===== Contents ===== | ||
- | * [[#overview|Overview]] | + | * [[# |
- | * [[#setup|Setting it up]] | + | * [[#Setting it up]] |
- | * [[#xp|Connecting in Windows XP]] | + | * [[# |
- | * [[#vista|Connecting in Windows Vista]] | + | * [[# |
- | * [[#linux|Connecting in Linux]] | + | * [[# |
- | * [[#freebsd|Connecting in FreeBSD]] | + | * [[# |
- | * [[#osx|Connecting in Mac OS X]] | + | * [[# |
- | * [[#wrapup|The Wrap-up]] | + | * [[#The Wrap-up]] |
===== Overview ===== | ===== Overview ===== | ||
Line 62: | Line 62: | ||
- Make sure PPP and PPTP are installed. The can be accomplished in Debian or Ubuntu by entering ' | - Make sure PPP and PPTP are installed. The can be accomplished in Debian or Ubuntu by entering ' | ||
- | - Create a file named sdfpptp in / | + | - Create a file named sdfpptp in / |
remotename sdfpptp | remotename sdfpptp | ||
linkname sdfpptp | linkname sdfpptp | ||
Line 81: | Line 81: | ||
bsdcomp 9,15 | bsdcomp 9,15 | ||
deflate 9,15 | deflate 9,15 | ||
- | idle 0 | + | idle 0 </ |
- Save the file. | - Save the file. | ||
- Edit / | - Edit / | ||
Line 89: | Line 89: | ||
Alternatively to steps 5 and 6, you might use a wrapper script like this:\\ | Alternatively to steps 5 and 6, you might use a wrapper script like this:\\ | ||
+ | <code bash> | ||
#!/bin/bash | #!/bin/bash | ||
SDFVPNHOST=**// | SDFVPNHOST=**// | ||
Line 100: | Line 100: | ||
ip route del $SDFVPNHOST via $VIA dev $DEV | ip route del $SDFVPNHOST via $VIA dev $DEV | ||
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" |