From: gui <gui@xxxxxxxxxxxx>
Date: Sun, 19 Jun 2005 19:25:24 -0700
To: <openvpn-users@xxxxxxxxxxxxxxxxxxxxx>
Subject: [Openvpn-users] OpenVPN 2.0 on Freebsd Bridging Problem
Hi Everybody
I'm trying to install OpenVPN 2.0 on Freebsd 5.4.
And it seems that most of the scripts and docs in the Freebsd port are
Linux-specific.
After searching the web, this is what I did.
kldload bridge
kldload if_tap
Perhaps better to compile them into the kernel. Add to your kernel config
file:
device tap
options BRIDGE
and recompile/install. While the klds are quite stable, it is more
efficient to build them statically into the kernel and strip anything out
of
the kernel you don't need.
configured my server.conf as shown below (the rest are left unchanged)
configured my client.opvn (client running on XP)
I was able to start the server and client successfully.
And my client could get an IP address from the server.
However, I could not ping to the server internal network (the vpn
network).
It seems that the bridge is not working.
Here is how I configured the bridge (in /etc/sysctl.conf)
net.link.ether.bridge.enable=1
net.link.ether.bridge.config=de0:1,tap0:1
after starting the server, i also set my tap0 and de0 interfaces to
promisc mode.
Not needed. Bridging the interfaces causes the kernel to put the
interfaces
in promisc mode.
my server.conf : (only modifications shown, the rest are left
unchanged)
dev tap
ca /usr/local/etc/openvpn/easy-rsa/keys/ca.crt
cert /usr/local/etc/openvpn/easy-rsa/keys/server.crt
key /usr/local/etc/openvpn/easy-rsa/keys/server.key
dh /usr/local/etc/openvpn/easy-rsa/keys/dh1024.pem
#server 10.8.0.0 255.255.255.0
server-bridge 192.168.5.146 255.255.255.0 192.168.5.230 192.168.5.254
I read from the archive:
http://openvpn.net/archive/openvpn-users/2003-09/msg00026.html
that the tap0 has to be given an IP address in the same subnet as the
internal physical interface.
But this is impossible as you cannot have two interfaces on the same
subnet.
1.) Since when is this impossible? Impractical, yes, but definitely not
impossible. It will cause "issues".
2.) Why does it have to be given an IP on the same subnet as the internal
physical interface?
I use:
xl0 = 192.168.0.1/24
tap0 = 10.0.0.1/24
xl1 = (my external IP address)
sysctl net.link.ether.brige.config=xl0,tap0
it shouldn't cause any problems.
Can anybody who has successfuly installed openvpn 2.0 on freebsd share
how he or she did it?
Thank you very much in anticipation
Gui
California
____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users