Hi All,
I have installed openvpn server on a ubuntu 14.04 machine which is hosted on aws ec2.
Have done the following steps.
- I have created all certificates and client keys.
- I am able to connect to the server from the client.
- Have enabled ip forward in sysctl.conf
- Have added route in /etc/ufw/before.rules
# START OPENVPN RULES
# NAT table rules
*nat
:POSTROUTING ACCEPT [0:0]
# Allow traffic from OpenVPN client to eth0
-A POSTROUTING -s 10.253.128.0/23 -o eth0 -j MASQUERADE
COMMIT
# END OPENVPN RULES
However i am unable to access any of the servers on the subnet of the server. I am pushing the routes also in the server config.
My aws subnet is 172.25.121.0 255.255.255.0 and my lan subnet is 10.253.128.0 255.255.240.0
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 172.25.121.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 172.25.121.0 255.255.255.0"
push "route 10.253.128.0 255.255.254.0"
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
Sorry for the trouble. M newbie here.