The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
OpenVPN on SCO OpenServer 5.0.7 The_Librarian SCO 1 11-10-2008 08:52 AM
USN-612-10: OpenVPN regression iBot Security Advisories (RSS) 0 06-12-2008 10:00 PM
USN-612-6: OpenVPN regression iBot Security Advisories (RSS) 0 05-14-2008 05:30 PM
USN-612-3: OpenVPN vulnerability iBot Security Advisories (RSS) 0 05-13-2008 04:20 PM
OpenVPN 2.09 ns-cert-type ??? kungpow UNIX for Advanced & Expert Users 0 05-15-2007 10:55 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 3 Weeks Ago
cozsmin cozsmin is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 1
OPENVPN on FREEBSD

Hello gurus ,

I have a vmware machine on xp wich holds a FREBSD 8.0 BETA2 i386

my xp ip is 192.168.0.12
my freebsd le0 ( ext iface, vmware bridged ) is 192.168.0.105 ( can ping google; etc...)
my freebsd le2 (int iface, vmware local only) is 192.168.141.5
my freebsd le1 is disabled as i wanted to ;

on the external lan we have another ( real machine ) freebsd 7.2-RELEASE i386

I have installed on both bds`s openvpn "openvpn-2.0.6_9"

I want to put the vpn server on the virtual bsd ( 0.105) and the client on the real bsd ( 0.2)
They are installed ( the packages) and i have already configured openvpn.conf 4 each machine , one to be server(..0.105) and the other to be the client (..0.2),
I can start the server (/usr/local/etc/rc.d/openvpn start )
ps ax | grep vpn - gives me :
1116 ?? Ss 0:00.54 /usr/local/sbin/openvpn --cd /usr/local/etc/openvpn --daemon openvpn --config /usr/local/etc/openvpn/openvpn.conf --writepid /var/

and the openvpn.conf on the server has the uncommented lines :
Code:
port 1194
proto tcp
;proto udp  - i put it so u dont ask about it 
[SIZE=2]
;dev tap - same 
dev tun
[SIZE=2]ca "/var/openvpn/keys/ca.crt"
cert "/var/openvpn/keys/server.crt"
key "/var/openvpn/keys/server.key" # This file should be kept secret
[SIZE=2]dh "/var/openvpn/keys/dh1024.pem"
[SIZE=2]server 192.168.7.0 255.255.255.0
[SIZE=2]ifconfig-pool-persist ipp.txt
[SIZE=2]client-to-client
[SIZE=2]keepalive 10 120
[SIZE=2]comp-lzo
[SIZE=2]persist-key
persist-tun
[SIZE=2]status openvpn-status.log
[SIZE=2]verb 3
and the ifconfig gives me :
Code:
[SIZE=2]
[SIZE=2]le0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 00:0c:29:4a:4f:fa
        inet 192.168.0.105 netmask 0xffffff00 broadcast 192.168.0.255
        media: Ethernet autoselect
        status: active
le1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 00:0c:29:4a:4f:04
        media: Ethernet autoselect
le2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 00:0c:29:4a:4f:0e
        inet 192.168.141.5 netmask 0xffffff00 broadcast 192.168.141.255
        media: Ethernet autoselect
        status: active
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500
        inet 192.168.7.1 --> 192.168.7.2 netmask 0xffffffff
        Opened by PID 1102
and the client hat the following uncommented openvpn.conf lines :
Code:
client
;dev tap
dev tun
proto tcp
;proto udp
remote 192.168.0.105 1194
nobind
user nobody
group nobody
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
comp-lzo
verb 3
I must tell you that i copied directly the files generated (ca.crt, cert.crt and client.key ) from the server

For any doubts if "telnet 192.168.0.105 1194" from the client (0.2) i get :
[SIZE=2]
Code:
[SIZE=2]
Trying 192.168.0.105...
Connected to 192.168.0.105.
Escape character is '^]'.
@:úâãòK@:úâãòK

meaning i am connected to the soket

Ok now . When i try from 192.168.0.2 ( client ) to :
# /usr/local/etc/rc.d/openvpn start
Starting openvpn.

Nothing happends and if i try again , nothing , i belive it is something with the authentification as the server listens but you are the gurus

Last edited by pludi; 3 Weeks Ago at 01:42 PM.. Reason: Removed profanity
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:32 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0