cultavix
Hi all,
First of all, sorry if this is a bit long but I want to make sure I give you guys the full picture. All help is truly appreciated... 🙂
I have recently set up an OpenVPN server running on Debian 7.3, I normally use CentOS as it's what I am used to but in this case, it's just a bit easier to do it with Debian. Anyway, to the problem... basically when I connect to the VPN from work, on my laptop running Fedora 20, using network manager, it will connect and it does work but then it breaks just about everything else, the problem being that it remove the default gateway and sets it to my VPN server, which is no good for me while at work. Likewise, if I setup DNS to be pushed, the DNS/domain stop working for me at work (or any other network I may be on).
When connecting from my macbook, running Mavericks 10.9, it also breaks my routing/dns.
Now the thing is, we've got an appliance from a company called Endian at my work which is also based on OpenVPN and when I connect to it, it doesnt seem to break anything at all and it has way more many routes/options configured on it. (with the exception of DNS)
Here is my config:
port 1194
proto udp
server-bridge 192.168.1.15 255.255.255.0 192.168.1.120 192.168.1.130 # < 192.168.1.0/24 is my home network
dev tap0 # < I use TAP because I like to be able to ping all of my devices at home and the other way around as well
ca ca.crt
cert server.crt
tun-mtu 1454
key server.key
dh dh1024.pem
up "/etc/openvpn/up.sh br0" # < this just adds the TAP adapter to my virtual bridge called br0
down "/etc/openvpn/down.sh br0" # < same as above but remove it
ifconfig-pool-persist ipp.txt
keepalive 10 600
comp-lzo
persist-key
persist-tun
verb 3
mute 20
script-security 2
status openvpn-status.log
client-config-dir /etc/openvpn/staticclients # < I set STATIC ip's for some of my clients such as my work laptop/macbook
client-to-client # < Once again, I want to be able to intercommunicate between my devices