Post by facegarden on Mar 16, 2008 5:36:31 GMT 7
Hey everyone,
So i'm very new to linux, but i'm doing a pretty good job figuring most of this stuff out... I'm having some issues though. - I figured out how to install the SSH and OpenVPN modules, figure out how to use Putty to SSH into the box and manipulate files, and got WinSCP or whatever it's called going so i can manipulate the filesystem graphically... I also set up DyDNS with my router to forward the necessary ports to the N2100, and can easily SSH or FTP into the box from home.
My issue though is getting OpenVPN configured properly.
I have a windows system at home i would like to be able to use VPN with here at work, so i'm trying to get this working. I've spent a couple of days messing with it, reading documentation and whatnot, but i'm still confused. Most of the examples i find are linux-linux or windows-windows specific, and then each example does it a bit differently so just using some settings from each example doesn't seem to work either.
The real problem is that i have no idea what all these settings for OpenVPN are, or what they do.
Has anyone successfully set this up? It seems like it would be a really popular feature, yet there is almost no discussion on here about it. If i can get this working and understand it, it's like to update the wiki to include a "Noob's guide" to this, since a lot of the basic steps like getting SSH going and stuff are not completely clear to someone who doesn't know linux.
Anyway, i want to get it working and understand it before i put up a guide, so any help would be appreciated.
I've tried using a number of different examples and nothing works. At the moment i'm using the examples provided with the module to try to get it working, but i keep getting an error when i try to connect.
My openvpn.conf file on the server is like so:
dev tun
ifconfig 10.1.0.1 10.1.0.2
up /etc/openvpn/server.up
secret /etc/openvpn/secret.key
persist-key
persist-tun
port 1194
user nobody
group nobody
comp-lzo
verb 3
and then, my server.up file is like so:
#!/bin/sh
route add -net xxx.xxx.xxx.xxx netmask 255.255.255.255 gw 10.1.0.2
where xxx.xxx.xxx.xxx is my home IP (yeah, i have NO idea if that's right... And i need to set up DyDNS at home. and i just remembered that even though i forwarded the port on the server end, i didn't do it on the client end... do i need to?)
Do i even need server.up if i'm just trying to get a basic setup working? It's my understanding that the "route" command it uses is intended to give me access to the rest of the network, which i ultimately want, but don't need to get a basic setup working.
My client setup is similar, but i have that config file at home, so i'll have to leave work to get that info.
If anyone could give me some starting tips, i'll go home and get my client side info too (which would be to configure the windows version of openVPN). Which, by the way... I can't use a file like client.up for the windows machine, can i? OpenVPN for windows says that ALL config files need an extension ".ovpn", and i feel like the whole client.up thing is some kind of linux-specific scrip thing anyway... am i right?
Thanks for any help, i'm a noob but i am making an honest effort to search and discover as much as i can on my own!
-Taylor
So i'm very new to linux, but i'm doing a pretty good job figuring most of this stuff out... I'm having some issues though. - I figured out how to install the SSH and OpenVPN modules, figure out how to use Putty to SSH into the box and manipulate files, and got WinSCP or whatever it's called going so i can manipulate the filesystem graphically... I also set up DyDNS with my router to forward the necessary ports to the N2100, and can easily SSH or FTP into the box from home.
My issue though is getting OpenVPN configured properly.
I have a windows system at home i would like to be able to use VPN with here at work, so i'm trying to get this working. I've spent a couple of days messing with it, reading documentation and whatnot, but i'm still confused. Most of the examples i find are linux-linux or windows-windows specific, and then each example does it a bit differently so just using some settings from each example doesn't seem to work either.
The real problem is that i have no idea what all these settings for OpenVPN are, or what they do.
Has anyone successfully set this up? It seems like it would be a really popular feature, yet there is almost no discussion on here about it. If i can get this working and understand it, it's like to update the wiki to include a "Noob's guide" to this, since a lot of the basic steps like getting SSH going and stuff are not completely clear to someone who doesn't know linux.
Anyway, i want to get it working and understand it before i put up a guide, so any help would be appreciated.
I've tried using a number of different examples and nothing works. At the moment i'm using the examples provided with the module to try to get it working, but i keep getting an error when i try to connect.
My openvpn.conf file on the server is like so:
dev tun
ifconfig 10.1.0.1 10.1.0.2
up /etc/openvpn/server.up
secret /etc/openvpn/secret.key
persist-key
persist-tun
port 1194
user nobody
group nobody
comp-lzo
verb 3
and then, my server.up file is like so:
#!/bin/sh
route add -net xxx.xxx.xxx.xxx netmask 255.255.255.255 gw 10.1.0.2
where xxx.xxx.xxx.xxx is my home IP (yeah, i have NO idea if that's right... And i need to set up DyDNS at home. and i just remembered that even though i forwarded the port on the server end, i didn't do it on the client end... do i need to?)
Do i even need server.up if i'm just trying to get a basic setup working? It's my understanding that the "route" command it uses is intended to give me access to the rest of the network, which i ultimately want, but don't need to get a basic setup working.
My client setup is similar, but i have that config file at home, so i'll have to leave work to get that info.
If anyone could give me some starting tips, i'll go home and get my client side info too (which would be to configure the windows version of openVPN). Which, by the way... I can't use a file like client.up for the windows machine, can i? OpenVPN for windows says that ALL config files need an extension ".ovpn", and i feel like the whole client.up thing is some kind of linux-specific scrip thing anyway... am i right?
Thanks for any help, i'm a noob but i am making an honest effort to search and discover as much as i can on my own!
-Taylor