Just a follow up. I've been working on this setup and I think I'm really close to getting it to work. I was able to get the VPN to link up and I can ping from the OVPN client to the OVPN server, but when the OVPN client pulls an IP from the DHCP server the client strips the default gateway. Initially I was using the "server-bridge" command because I was using my own DHCP server. I found a different thread where someone suggusted using "server-bridge nogw". I am now able to pull the default gateway via DHCP, but I am unable to ping the default gateway (10.1.94.1). I can ping the OVPN Server (10.1.94.205). Any ideas on what may be causing this?
The good new is that I was able to pull multicast over the VPN on VLC by configuring a static IP on a laptop bridge to my windows ovpn client. The video is pretty choppy so I'm trying to figure out if it is a bandwidth issue at my house or if it is the overhead of the VPN. I have a 30Mbps/2Mbps connection through a cable modem at my house.
OVPN Client IP = 10.1.94.238 (DHCP)
OVPN Server IP = 10.1.94.205 (static)
Router IP = 10.1.94.1
Server Config (Ubuntu 10.04):
Code: Select all
port 1194
proto udp
dev tap
up "/etc/openvpn/up.sh br0 eth1"
ca ca.crt
cert openvpn.crt
key openvpn.key
dh dh2048.pem
server-bridge nogw
keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 3
up.sh script:
Code: Select all
#!/bin/sh
BR=$1
ETHDEV=$2
TAPDEV=$3
/sbin/ip link set "$TAPDEV" up
/sbin/ip link set "$ETHDEV" promisc on
/sbin/brctl addif $BR $TAPDEV
/etc/network/interfaces
Code: Select all
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 199.X.X.X.X
netmask 255.255.255.252
gateway 199.X.X.X.X
auto eth1
iface eth1 inet manual
up up link set $IFACE up promisc on
auto br0
iface br0 inet static
address 10.1.94.205
netmask 255.255.255.0
bridge_ports eth1
ifconfig from server:
Code: Select all
br0 Link encap:Ethernet HWaddr 00:50:56:95:35:66
inet addr:10.1.94.205 Bcast:10.1.94.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe95:3566/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:52891 errors:0 dropped:0 overruns:0 frame:0
TX packets:159 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4453611 (4.4 MB) TX bytes:8542 (8.5 KB)
eth0 Link encap:Ethernet HWaddr 00:50:56:95:08:9f
inet addr:199.X.X.X Bcast:199.X.X.X Mask:255.255.255.252
inet6 addr: fe80::250:56ff:fe95:89f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:48346 errors:0 dropped:20 overruns:0 frame:0
TX packets:302912 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9290640 (9.2 MB) TX bytes:369199037 (369.1 MB)
eth1 Link encap:Ethernet HWaddr 00:50:56:95:35:66
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:293437 errors:0 dropped:0 overruns:0 frame:0
TX packets:30010 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:353325468 (353.3 MB) TX bytes:3975638 (3.9 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1504 errors:0 dropped:0 overruns:0 frame:0
TX packets:1504 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:129380 (129.3 KB) TX bytes:129380 (129.3 KB)
tap0 Link encap:Ethernet HWaddr 6e:47:f2:f3:8d:6d
inet6 addr: fe80::6c47:f2ff:fef3:8d6d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13525 errors:0 dropped:65 overruns:0 frame:0
TX packets:15176 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1483560 (1.4 MB) TX bytes:1620315 (1.6 MB)
Client Config:
Code: Select all
client
remote 199.X.X.X
port 1194
proto udp
dev tap
dev-type tap
ns-cert-type server
reneg-sec 86400
comp-lzo yes
verb 3
ca ca.crt
cert client1.crt
key client1.key
Code: Select all
Description: TAP-Windows Adapter V9
Physical Address: 00-FF-18-C8-E2-7A
DHCP Enabled: Yes
IPv4 Address: 10.1.94.233
IPv4 Subnet Mask: 255.255.255.0
Lease Obtained: Thursday, April 14, 2016 8:51:50 AM
Lease Expires: Sunday, April 17, 2016 8:06:24 PM
IPv4 Default Gateway: 10.1.94.1
IPv4 DHCP Server: 10.0.3.2
IPv4 DNS Server: 10.100.0.2
IPv4 WINS Server:
NetBIOS over Tcpip Enabled: Yes
C:\Users\h4lt>ping 10.1.94.1
Pinging 10.1.94.1 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 10.1.94.1:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
C:\Users\h4lt>ping 10.1.94.205
Pinging 10.1.94.205 with 32 bytes of data:
Reply from 10.1.94.205: bytes=32 time=17ms TTL=64
Reply from 10.1.94.205: bytes=32 time=9ms TTL=64
Reply from 10.1.94.205: bytes=32 time=10ms TTL=64
Reply from 10.1.94.205: bytes=32 time=9ms TTL=64
Ping statistics for 10.1.94.205:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 9ms, Maximum = 17ms, Average = 11ms