Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 62511 Details for
Bug 97760
VPN Howto : Using vpnc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
version 0.1
vpnc-howto.xml (text/xml), 5.20 KB, created by
David H. Askew
on 2005-07-02 15:16:32 UTC
(
hide
)
Description:
version 0.1
Filename:
MIME Type:
Creator:
David H. Askew
Created:
2005-07-02 15:16:32 UTC
Size:
5.20 KB
patch
obsolete
><?xml version='1.0' encoding='UTF-8'?> ><!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> > ><guide link="/doc/vpnc-howto.xml"> > ><title>VPN Howto : Using vpnc</title> > ><author title="Author"> > <mail link="insertemailaddresshere">replace with name</mail> ></author> > ><abstract> >This document details how to connect your workstation to a cisco 3000 vpn concentrator. ></abstract> > ><version>0.1</version> ><date>2005-07-02</date> > ><chapter> ><title>Introduction</title> ><section> ><body> > ><p> >If you're reading this, then you likely need to connect to your office network from home or during travel. Many companies utilize Cisco 3000 vpn concentrators for their vpn needs, and I am willing to bet that most Linux newbies think that they are forced to use Windows to connect to them. Well I'm here to tell you that connecting to a Cisco vpn may very well be possible, and this document will hopefully enable to you to setup a working tunnel using your Gentoo workstation or laptop. ></p> > ><p> >The assumptions made at this point are: ></p> > ><ul> > <li>You have gentoo installed</li> > <li>You have internet access</li> > <li>You want to connect to a cisco 3000 vpn concentrator</li> > <li>You know how to configure, build, and install a new kernel</li> ></ul> > ></body> ></section> ></chapter> > ><chapter> ><title>Kernel Configuration</title> ><section> ><body> > ><note> >The kernel used in this guide is <c>sys-kernel/gentoo-sources 2.6.9-r9</c>. ></note> > ><p> >In order for the Linux to be able to open a vpn connection, "Universal TUN/TAP device driver support" must be enabled in the kernel. ></p> > ><p> >You can verify if your kernel has TUN/TAP support with the following command: ></p> > ><pre caption="Checking the kernel config"> ># <i>cat /usr/src/linux/.config | grep TUN</i> >CONFIG_INET_TUNNEL=m ># CONFIG_INET6_TUNNEL is not set ># CONFIG_IPV6_TUNNEL is not set >CONFIG_TUN=m ># CONFIG_8139TOO_TUNE_TWISTER is not set ></pre> > ><p> >As you can see above, <c>CONFIG_TUN=m</c> is compiled as a module. If this is not the case with your setup, enable support in your kernel of choice, rebuild, install, reboot, and return to this document before continuing. ></p> > ><pre caption="Config location"> >TUN/TAP support is located under: > >Device Drivers ---> > Networking support ---> > Universal TUN/TAP device driver support ></pre> > ><p> >If you already have TUN/TAP support built for your kernel, or you just booted your computer after a fresh kernel build, then we need to verify that the kernel has the appropriate code initialized. ></p> > ><p> >If you built TUN/TAP support directly into the kernel, you should see information from <c>dmesg</c> output like the following: ></p> > ><pre caption="Checking dmesg output"> ># <i>dmesg | grep TUN</i> >Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky ></pre> > ><p> >If you build TUN/TAP support as a module, you first must load the "tun" module. ></p> > ><pre caption="Load tun module"> ># <i>modprobe tun</i> ># <i>lsmod</i> >Module Size Used by >tun 7296 0 >nvidia 4050204 12 ></pre> > ><p> >Now that the "tun" module is loaded, check dmesg output. You should see something like the following: ></p> ><pre caption="Checking dmesg output"> ># <i>dmesg | grep TUN</i> >Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky ></pre> > ></body> ></section> ></chapter> > ><chapter> ><title>Install Needed Software</title> ><section> ><body> > ><p> >Now that we have a working kernel setup, we need to install vpnc. ></p> ><pre caption="Installing vpnc"> ># <i>emerge net-misc/vpnc</i> ></pre> > ><note> >The version of <c>vpnc</c> used in this guide is <c>0.3.2</c>. As of this writing, <c>vpnc</c> version <c>0.3.3</c> has been released, but it has not yet added to the portage tree. ></note> > ></body> ></section> ></chapter> > ><chapter> ><title>Setup vpnc</title> ><section> ><body> > ><p> >vpnc setup notes go here ></p> > ></body> ></section> ></chapter> > ><chapter> ><title>Setup routing tables</title> ><section> ><body> > ><p> >routing setup notes go here ></p> > ></body> ></section> ></chapter> > ><chapter> ><title>Setup dns</title> ><section> ><body> > ><p> >dns setup notes go here ></p> > ></body> ></section> ></chapter> > ><chapter> ><title>Manage the connection</title> ><section> ><body> > ><p> >Here is a script example to manage the vpn connection. You could execute it (as root) from an xterm to start a connection to your vpn. ></p> > ><pre caption="Example session management script"> ># <i>cat vpn.sh</i> >vpnc-connect >route add default gw 192.168.0.1 >route add -net 172.25.230.0 netmask 255.255.255.0 dev tun0 >route add -net 192.168.160.0 netmask 255.255.255.0 dev tun0 >route add -net 192.168.125.0 netmask 255.255.255.0 dev tun0 >route add -host 192.168.125.10 dev tun0 >route add -host 192.168.125.20 dev tun0 >cp /etc/resolv.conf.work /etc/resolv.conf >echo "press any key to disconnect ..." >read $disconnect >vpnc-disconnect >cp /etc/resolv.conf.home /etc/resolv.conf >route add default gw 192.168.0.1 >echo "vpn should now be disconnected ... hit enter to exit" >read $whocares ></pre> > ></body> ></section> ></chapter> > ><chapter> ><title>Useful Links</title> ><section> ><body> > ><p> ><uri link="http://www.unix-ag.uni-kl.de/~massar/vpnc/">vpnc homepage</uri> ></p> > ></body> ></section> ></chapter> > ><chapter> ><title>Final Notes</title> ><section> ><body> > ><p> >Final Notes go here. ></p> > ></body> ></section> ></chapter> ></guide>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 97760
:
62501
|
62511
|
62569
|
62813
|
63106
|
63841
|
64761
|
64838
|
64911
|
65170
|
65339
|
77310
|
78833
|
111455
|
120062