Hello,
I have an unused /29 and wanted to tunnel it from my Server in the Datacenter to my Homeserver. Everything works as long as i use TUN but as soon as i switch to TAP things get strange. The current Setup is as follows:
Netblock: 1.2.3.224/29
Gateway: 5.6.7.113/28
VPN Server: 5.6.7.114
Configs:
Server Bridge:
bridge name bridge id STP enabled interfaces
br0 8000.00185120e9cd no eth0
tap0
Server.conf:
port 1194
proto udp
dev tap0
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
topology subnet
server-bridge 1.2.3.224 255.255.255.248 1.2.3.226 1.2.3.230
client-to-client
push "redirect-gateway"
keepalive 10 120
comp-lzo
persist-key
persist-tun
log /var/log/openvpn.log
log-append /var/log/openvpn.log
status /var/log/openvpn-status.log
verb 3
Client.conf:
client
remote 5.6.7.114 1194
nobind
proto udp
dev tap
ns-cert-type server
ca ca.crt
cert testvpn1.crt
key testvpn1.key
comp-lzo
As soon as i connect to the VPN i get the following route pushed which, at least to me, seems very strange as it is the Network Adress which is not usable in my case:
Mon Jun 23 12:04:50 2014 testvpn/$MYHOMEIP:52037 SENT CONTROL [testvpn]: 'PUSH_REPLY,redirect-gateway,route-gateway 1.2.3.224,ping 10,ping-restart 120,ifconfig 1.2.3.226 255.255.255.248' (status=1)
Anyone has an advice for me how to fix that ? I want to connect my Home Server using that Netblock for any Type of traffic, not only the one directed to the /29 so i need to push the 5.6.7.113 Gateway as the default Gateway but that somehow doesn't seem to work.
Thanks,
Martin