LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-03-2009, 01:04 PM   #1
danmartinj
Member
 
Registered: Oct 2009
Posts: 117

Rep: Reputation: 1
Configure Test OpenVPN on 4 Debian Boxes in a 3 Network Setup


Hello All,
First thanks for viewing my thread. Anyhow, I just recently setup an OpenVPN server and OpenVPN client. At least I think I did. I have been fallowing these tutorails mainly:
http://cihan.me/how-to-setup-openvpn...-debian-lenny/
http://www.openvpn.net/index.php/ope...ion/howto.html

Anyhow, I have tried to confirm that it works but I am not getting any clean indication either way.

By typing: openvpn [server config file]
You are suppose to get feedback initilization information back I get no information back.

My experiment network setup is like this:
_____________B-------C
A------B_____10.0.63.X_______C-------D
10.0.62.X____________________10.0.64.X

4 Debian machines connected to eachother accross a basic switch forming 3 separate networks simulating 2 LAN's and a WAN in between them. I have virtual interfaces on B and C and use static routing to make this setup work.

I am confident I published all my keys/certificates correctly:

my client.conf file is:
##NEW CLIENT.CONF FILE EDITED NOV32009, BACKUP IS ON DESKTOP, AUTHOR DAN
client
proto udp
dev tun
remote 10.0.63.1 1194
ca /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.crt
cert /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/client.crt
key /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/client.key

#MIGHT NEED DH AS WELL
#dh /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/dh1024.pem
#server 10.8.0.0 255.255.255.0
#server 10.0.63.0 255.255.255.0
ifconfig-pool-persist ipp.txt

#ADD ROUTE TO 64 SUBNET
push "route 10.0.63.0 255.255.255.0"

#push "route 192.168.1.0 255.255.255.0"
#push "redirect-gateway def1"
#push "dhcp-option DNS 192.168.1.1"


client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log /var/log/openvpn.log
log-append /var/log/openvpn.log
verb 3


My server.conf file is:
##NEW SERVER.CONF FILE EDITED NOV32009, BACKUP IS ON DESKTOP, AUTHOR DAN
port 1194
proto udp
dev tun
ca /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.crt
cert /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/server.crt
key /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/server.key
dh /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/dh1024.pem
#server 10.8.0.0 255.255.255.0
server 10.0.63.0 255.255.255.0
ifconfig-pool-persist ipp.txt

#ADD ROUTE TO 64 SUBNET
push "route 10.0.64.0 255.255.255.0"

#push "route 192.168.1.0 255.255.255.0"
#push "redirect-gateway def1"
#push "dhcp-option DNS 192.168.1.1"


client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log /var/log/openvpn.log
log-append /var/log/openvpn.log
verb 3
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian OpenVPN Setup Question danmartinj Linux - Newbie 1 11-03-2009 03:50 PM
How to Setup Static IP Address on Debian Linux Boxes through 2 Switches danmartinj Linux - Networking 5 10-27-2009 07:06 PM
easy debian openvpn setup article lampnewb Linux - Networking 1 01-31-2007 04:51 AM
Why my debian test can't find my network card any more? bloor Linux - Hardware 1 05-25-2004 05:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration