Hello!
First of all, sorry for my bad english, i'm spanish...
I know that this problem is asked yet, but i read all related posts and seems that no one found a good solution...
Explanation:
I have one server with public IP, it has an upnp service working (in that case mediatomb, but i also tried with minidlna), i want to conect to the server via openvpn from anywhere and see the media files shared (with raspberry)...
First i tried to create a openvpn tun, i could see the server, and the server can see me, but xbmc and vlc doesn't detect any dlna (i also tried to a server in the same LAN to discard a raspberry's problem and all works fine...). In this forum many people realizad that the problem is because multicast can't work via vpn, and some people say that with an openvpn tap bridged could work...
I follow this tutorial---->
http://www.serverubuntu.it/openvpn-bridge-configuration
And my config is:
#/etc/network/interfaces
auto lo
iface lo inet loopback
auto br0
iface br0 inet static
address public-server-original-ip
netmask 255.255.255.0
network public-server-original-network
broadcast public-server-original-broadcast
gateway public-server-original-gateway
bridge_ports eth0
bridge_fd 9 #because i think that is a virtualized server
bridge_hello 2 #because i think that is a virtualized server
bridge_maxage 12 #because i think that is a virtualized server
bridge_stp off #because i think that is a virtualized server
#/etc/openvpn/server.conf
mode server
port 1194
proto udp
dev tap0
up "/etc/openvpn/up.sh br0"
down "/etc/openvpn/down.sh br0"
persist-key
persist-tun
ca ca.crt
cert nostromo.crt
key nostromo.key
dh dh2048.pem
cipher BF-CBC # Blowfish (default)
comp-lzo # compression
client-to-client
duplicate-cn
# DHCP configuration #
# ipp.txt saves the status of the dhcp leases
ifconfig-pool-persist ipp.txt
# pool of addresses available for VPN leases
# format: <server IP> <netmask> <pool start IP> <pool end IP>
server-bridge 192.168.11.8 255.255.255.0 192.168.11.220 192.168.11.249
# additional option to give to dhcp clients
push "dhcp-option DNS 192.168.11.4"
# maximium number of clients connected at a time
max-clients 10
# log and security #
user nobody
group nogroup
keepalive 10 120
status openvpn-status.log
verb 3
script-security 3 system
#/etc/openvpn/up.sh
#!/bin/sh
BR=$1
DEV=$2
MTU=$3
/sbin/ifconfig $DEV mtu $MTU promisc up
/sbin/brctl addif $BR $DEV
#/etc/openvpn/down.sh
#!/bin/sh
BR=$1
DEV=$2
/sbin/brctl delif $BR $DEV
/sbin/ifconfig $DEV down
To test that all is working i'm doing tests with a Os X conected with Tunelblick to the server, i can connect to the vpn without problems, but i can't see any upnp server and i think that tap0 interface from the server hasn't a IPv4 assigned....
tap0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx
inet6 addr: some-ipv6-adress/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:708545 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:926050243 (926.0 MB)
Anyone have any idea?
Thank you & sorry for the large explanation!