I have 4 problems/questions which I will sort out:
1) I managed to set up openVPN on ubuntu 13.04 server and was able to connect to it with no problems, the only thing is that I can't ping the PC that is hosting the server VM.
this is my layout:
router/gateway: 192.168.1.1
My main PC which is hosting ubuntu's VM: 192.168.1.11
Ubuntu's VM on bridged network: 192.168.1.21
My laptop which I use to connect to my VPN server: public IP outside the network
My laptop after connecting to VPN: 192.168.1.80
So now, after connecting to my VPN server I can ping ALL devices in the home network except for the PC that is hosting the VM which is 192.168.1.11, I need to be able to access this device since most stuff that I need is on its shared files.
Here are my server and client conf files:
server.conf
Code: Select all
#bridging directive
dev tap0
up "/etc/openvpn/up.sh br0 tap0 1500"
down "/etc/openvpn/down.sh br0 tap0"
persist-key
persist-tun
#certificates and encryption
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
tls-auth ta.key 0
cipher BF-CBC
comp-lzo
#DHCP Information
ifconfig-pool-persist ipp.txt
server-bridge 192.168.1.21 255.255.255.0 192.168.1.80 192.168.1.99
push "dhcp-option DNS 192.168.1.1"
push "dhcp-option DOMAIN XXX.XXX.XXX.XXX"
push "redirect-gateway def1 bypass-dhcp"
max-clients 10
client-to-client
#log and security
user nobody
group nogroup
keepalive 10 120
status openvpn-status.log
verb 3
client.conf:
Code: Select all
client
dev tap
remote XXX.XXX.XXX.XXX 443
proto tcp
nobind
resolv-retry infinite
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
tls-auth ta.key 1
cipher BF-CBC
comp-lzo
verb 3
up.sh:
Code: Select all
#!/bin/sh
BR=$1
DEV=$2
MTU=$3
/sbin/ip link set "$DEV" up promisc on mtu "$MTU"
/sbin/brctl addif $BR $DEV
Code: Select all
#!/bin/sh
BR=$1
DEV=$2
/sbin/brctl delif $BR $DEV
/sbin/ip link set "$DEV" down
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 br0
iface lo inet loopback
# The primary network interface
iface br0 inet static
address 192.168.1.21
netmask 255.255.255.0
gateway 192.168.1.1
#dns-search 192.168.1.1
#dns-nameservers 192.168.1.1
bridge_ports eth0
iface eth0 inet manual
up ip link set $IFACE up promisc on
down ip link set $IFACE down promisc off
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
3)I noticed that VMware's performance is very bad, is this normal? I have 100Mb/s connection in both my home network and my work network but when I connected to my home network via VPN i was able to only get ~10Mb/s
4) what's the downside of having all traffic traveling through a single port? (tcp 443)? I'm using this one since work is blocking almost all other ports and udp ports.