tap0 bridged vpn unable to reach clients behind server
Posted: Wed Jul 06, 2011 8:38 am
Hi guys, I've installed openvpn successfully with a tap0 bridged setup, when a client connects I can see the openvpn server, but I'm unable to see any of the machines behind that server. I can ssh into the server and from there ssh into the further machines, but this is less than ideal as I can't remote desktop to the windows machines that are behind the server either.
SERVER CONFIG
CLIENT CONFIG
So it looks to me as if the ovpn server isn't set up 100% correctly, on the router I've forwarded udp port 1194 externally to the internal ovpn machine.
Have I missed a step? From what I've read I don't need to do the push route stuff, as that should only be for routing not bridging.
Is there anywhere else I need to set something up for forwarding or bridging on the ovpn server?
SERVER CONFIG
Code: Select all
root@blackice:/etc/openvpn# cat server.conf
;local 6.6.6.30
dev tap0
script-security 2
persist-key
persist-tun
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
server-bridge 6.6.6.30 255.255.255.0 6.6.6.150 6.6.6.200
;push "route 6.6.6.0 255.255.255.0"
;push "dhcp-option DNS 194.168.4.100"
;push "dhcp-option DOMAIN domain.co.uk"
;user nobody
;group nogroup
keepalive 10 120
status openvpn-status.log
log openvpn.log
verb 3
;client-to-client
up "/etc/openvpn/up.sh br0 tap0 1500"
down "/etc/openvpn/down.sh br0 tap0"
comp-lzo
duplicate-cn
ifconfig-pool-persist ipp.txt
Code: Select all
root@blackice:/etc/openvpn# cat /etc/network/interfaces
# 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
iface br0 inet static
address 6.6.6.30
netmask 255.255.255.0
broadcast 6.6.6.255
gateway 6.6.6.1
bridge_ports eth0
iface eth0 inet manual
# up ip link set $IFACE up promisc on
# down ip link set $IFACE down promisc off
up ifconfig $IFACE 0.0.0.0 up
up ip link set $IFACE promisc on
down ip link set $IFACE promisc off
down ifconfig $IFACE down
Code: Select all
root@blackice:/etc/openvpn# ifconfig
br0 Link encap:Ethernet HWaddr 00:15:5d:06:14:00
inet addr:6.6.6.30 Bcast:6.6.6.255 Mask:255.255.255.0
inet6 addr: fe80::215:5dff:fe06:1400/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11649 errors:0 dropped:0 overruns:0 frame:0
TX packets:1931 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1459472 (1.4 MB) TX bytes:302983 (302.9 KB)
eth0 Link encap:Ethernet HWaddr 00:15:5d:06:14:00
inet6 addr: fe80::215:5dff:fe06:1400/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25039 errors:0 dropped:0 overruns:0 frame:0
TX packets:10987 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3934869 (3.9 MB) TX bytes:876468 (876.4 KB)
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:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
tap0 Link encap:Ethernet HWaddr 22:53:58:c3:34:f0
inet6 addr: fe80::2053:58ff:fec3:34f0/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:1135 errors:0 dropped:0 overruns:0 frame:0
TX packets:141 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:88817 (88.8 KB) TX bytes:20848 (20.8 KB)
Code: Select all
root@blackice:/etc/openvpn# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
6.6.6.0 * 255.255.255.0 U 0 0 0 br0
default 6.6.6.1 0.0.0.0 UG 100 0 0 br0
root@blackice:/etc/openvpn#
Code: Select all
root@blackice:/etc/openvpn# nmap -sP 6.6.6.0/24
Starting Nmap 5.21 ( http://nmap.org ) at 2011-07-06 09:21 BST
Nmap scan report for 6.6.6.1
Host is up (0.0082s latency).
MAC Address: C4:3D:C7:1B:35:5F (Unknown)
Nmap scan report for twoaday (6.6.6.8)
Host is up (0.00019s latency).
MAC Address: 00:15:5D:06:14:03 (Microsoft)
Nmap scan report for 6.6.6.20
Host is up (0.00015s latency).
MAC Address: 00:1F:D0:80:90:98 (Giga-byte Technology Co.)
Nmap scan report for 6.6.6.30
Host is up.
Nmap scan report for 6.6.6.150
Host is up (0.033s latency).
MAC Address: 4A:ED:B2:1F:EC:28 (Unknown)
Nmap done: 256 IP addresses (5 hosts up) scanned in 4.41 seconds
root@blackice:/etc/openvpn#
Code: Select all
root@dixieflatline:/etc/openvpn# cat gabriel.conf
client
dev tap
remote re.mo.te.ip 1194
nobind
resolv-retry infinite
persist-key
persist-tun
pkcs12 gabriel.p12
proto udp
;user nobody
;group nogroup
ns-cert-type server
comp-lzo
verb 3
script-security 2
root@dixieflatline:/etc/openvpn#
Code: Select all
root@dixieflatline:/etc/openvpn# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
6.6.6.0 * 255.255.255.0 U 0 0 0 tap0
10.227.206.0 * 255.255.254.0 U 0 0 0 eth0
default ip-10-227-206-1 0.0.0.0 UG 100 0 0 eth0
Code: Select all
root@dixieflatline:/etc/openvpn# ifconfig
eth0 Link encap:Ethernet HWaddr 12:31:3c:01:cc:a6
inet addr:lo.ca.l.ip Bcast:10.227.207.255 Mask:255.255.254.0
inet6 addr: 1031::fe80:ffff:fe01:cca6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:203956 errors:0 dropped:0 overruns:0 frame:0
TX packets:222690 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:33824427 (33.8 MB) TX bytes:41414868 (41.4 MB)
Interrupt:9
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:16436 Metric:1
RX packets:14122 errors:0 dropped:0 overruns:0 frame:0
TX packets:14122 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1237210 (1.2 MB) TX bytes:1237210 (1.2 MB)
tap0 Link encap:Ethernet HWaddr 16:c2:b5:58:75:b8
inet addr:6.6.6.151 Bcast:6.6.6.255 Mask:255.255.255.0
inet6 addr: fe80::14c2:b5ff:fe58:75b8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:156 (156.0 B) TX bytes:468 (468.0 B)
Code: Select all
Starting Nmap 5.21 ( http://nmap.org ) at 2011-07-06 09:33 BST
Nmap scan report for 6.6.6.30
Host is up (0.024s latency).
MAC Address: 00:15:5D:06:14:00 (Microsoft)
Nmap scan report for 6.6.6.151
Host is up.
Nmap done: 256 IP addresses (2 hosts up) scanned in 3.72 seconds
root@dixieflatline:/etc/openvpn#
Have I missed a step? From what I've read I don't need to do the push route stuff, as that should only be for routing not bridging.
Is there anywhere else I need to set something up for forwarding or bridging on the ovpn server?