At my site, I am using openvpn to connect two VPCs in Amazon. I will call them VPC1 and VPC2.
VPC1 is connected to the company network via a PaloAlto appliance.
Most traffic works as we expect, except that
1) people who connect wirelessly to the company network can connect to VPC1 but not VPC2
2) people logging in remotely to the company network with a VPN client can also connect to VPC1 but not VPC2
Because the only thing standing between VPC1 and VPC2 is openvpn, we are suspecting that's where the problem is, We've added routes for both of these in openvpn and the relevant Amazon VPC routing tables. But so far we haven't been able to explain why this traffic isn't being forwarded over the openVPN when everything else is. I haven't seen anything in openvpn logs to shed light on this either. I'm pasting my openVPN configs below:
(edited these to remove sensitive information)
The openvpn node in VPC1:
# Port to use: 1194 is the official IANA port number
port 1194
# Use a dynamic tun device.
dev tun
# Remote peer and network
remote 52.12.11.8
route 10.200.0.0 255.255.252.0
# Configure local and remote VPN endpoints
ifconfig 169.254.255.1 169.254.255.2
# The pre-shared static key
secret awsdev.key
log-append /var/log/openvpn.log
verb 4
The openvpn node in VPC2:
# Port to use: 1194 is the official IANA port number
port 1194
# Use a dynamic tun device.
dev tun
# Remote peer and network
remote 54.86.101.184
route 10.200.255.0 255.255.255.0
# Configure local and remote VPN endpoints
ifconfig 169.254.255.2 169.254.255.1
# The pre-shared static key
secret awsdev.key
route 172.30.0.0 255.255.240.0
route 172.30.22.0 255.255.255.0
route 172.37.0.0 255.255.252.0
route 172.37.52.0 255.255.254.0
route 172.33.0.0 255.255.255.0
route 192.168.199.0 255.255.255.0
route 192.168.1.0 255.255.255.0
The 192.168.199.0 and 172.37.52.0 subnets above are the ones that are unable to access VPC2