Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VPN Client How to.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jbssm
n00b
n00b


Joined: 02 Jan 2003
Posts: 56
Location: Portugal

PostPosted: Fri Jan 17, 2003 1:21 pm    Post subject: VPN Client How to. Reply with quote

Hi there.

Because I have only a very limited amount of international trafic from my ISP, I would like to conect via VPN to my University.

But although that's fairly easy in Windows, in linux is not the case.
I've read an setup procedure for Red-Hat, but I didn't understand lot's of the terms used and in the end ... I couldn't get the connection to start.

I don't understant why do I have to give so much info to pptd-command, in windows I just give the ip of the VPN server (ex: 111.111.111.11) and that's it.

Can anybody give me, or point me to more easy to follow configuration of VPN ?
Back to top
View user's profile Send private message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Fri Jan 17, 2003 1:42 pm    Post subject: Reply with quote

The VPN Howto
VPN PPP-SSH Mini-HOWTO
_________________
My favorite links this month:
- Surf Random
- Web-based SSH
- Stop Spam
Back to top
View user's profile Send private message
wdconinc
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2003
Posts: 80
Location: Ann Arbor, Michigan

PostPosted: Fri Jan 17, 2003 2:06 pm    Post subject: VPN in Gentoo Reply with quote

Hello,

I just did this myself but using a LAN an not a PPP, but I guess it will be similar for dialup.

I learned this using a document for our university, if you are already on the lan, so perhaps it is not very useful to you. And I don't find the digital version anymore on the net, lost the link... ;-)

I hope everything is clear.

0. Get an internet connection to your local ISP (call this ppp0, from now on)
1. Get pptp
Execute this
Code:
lynx http://sourceforge.net/projects/pptpclient
tar zxvpf pptp-linux-<version>.tar.gz
cd pptp-linux-<version>
tar zxvpf pptp-linux-<version>.tar.gz
cd pptp-linux-<version>
make
cp pptp ../pptp-command /usr/sbin

Now change pptp-command to disable taint-checking (== remove T in first line)
2. Get mppe-ppp (for encryption, depends on VPN router I guess)
Code:
lynx http://sourceforge.net/projects/pptpclient
tar zxvpf ppp-mppe-<version>.tar.gz
cd ppp-mppe-<version>
sh unpack.sh
cd ppp-<version>
./configure
make
make install

3. Config
Add "<username> rtrvpn <password>" using
Code:
nano -w /etc/ppp/chap-secrets

Add VPNconnection configuration using
Code:
nano -w /etc/ppp/peers/VPNconnection

# is NOT a comment!!!
Quote:
# PPTP Tunnel configuration for tunnel VPNconnetion
# Server IP: <IP address of VPN Server>
# Route: add default gw <IP address of VPN Server>
noauth
lock
debug
ktune
name <username>
remotename rtrvpn
mppe-40
mppe-stateless
mtu 1000

Copy net.ppp0 (used to dial in to your ISP) to net.ppp1 and make it do something like (this won't work, but you'll manage to make it do what you want, won't you?):
Code:
/etc/init.d/net.ppp1

Quote:
start () {
$SUBNET = `/sbin/ifconfig ppp0 | /bin/sed -n '2p' | /usr/bin/cut -d: -f2 | /usr/bin/cut -d. -f1-3`
/sbin/route add <IP address of VPN server> gw $SUBNET.254
/usr/sbin/pptp-command start VPNconnection
}
stop () {
route del default
pptp-command stop
pptp-command start VPNconnection
}


Greets,
Wouter

PS: I would have put my config files on the net, but I'm in windows for the moment, so no config files
Back to top
View user's profile Send private message
jbssm
n00b
n00b


Joined: 02 Jan 2003
Posts: 56
Location: Portugal

PostPosted: Fri Jan 17, 2003 2:10 pm    Post subject: Thanks but .... Reply with quote

I believe I must use pptp to connect to my VPN server.

Acording to the How-to you pointed me (thanks for that) a windows VPN uses pptp.

Bruno
Back to top
View user's profile Send private message
El_Presidente_Pufferfish
Veteran
Veteran


Joined: 11 Jul 2002
Posts: 1179
Location: Seattle

PostPosted: Fri Jan 17, 2003 2:55 pm    Post subject: Reply with quote

Thanks for the links but neither helped me, who is in a situation kinda like the thread owners.
In order to use my campus's wireless connection I have to make a VPN connection. In windows its simple, you just open the provided Cisco VPN client and connect to 10.10.1.10 then it asks for your logon name/password for the network.

Aiiee, i just want wireless!
Back to top
View user's profile Send private message
aheld
n00b
n00b


Joined: 15 Nov 2002
Posts: 24
Location: ~Boston, MA

PostPosted: Fri Jan 17, 2003 4:36 pm    Post subject: What type of VPN client do you need Reply with quote

The instructions above are for a PPTP - Microsoft style vpn. If you have a cisco client you may need a IPSEC VPN.

You may also want to take a look at https://forums.gentoo.org/viewtopic.php?t=7720&highlight=ipsec
Back to top
View user's profile Send private message
jbssm
n00b
n00b


Joined: 02 Jan 2003
Posts: 56
Location: Portugal

PostPosted: Mon Jan 20, 2003 11:40 pm    Post subject: Hi there. Reply with quote

Hi there.

Tanks for the help, I haven't been able to test what wdconinc described because I've bought a new motherboard with onboard lan, and I haven't reinstalled gentoo in my (almost) new computer because I think the distro does not have a driver for the lan onboard ... I'll look better.

Anyway thanks for the support, has I said i think wdconinc has the easiest setup, although I don't understant that first step about the isp and the ppp connection ... I configure my conection with dhcp, so I'll just jump the 1st step wdconinc described (I hope it's not a critical step).

Thank you again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum