Setting up an EC2 instance in AWS.
Followed these instructions:
https://www.comparitech.com/blog/vpn-privacy/how-to-make-your-own-free-vpn-using-amazon-web-services/
I cannot connect from my client to OPVN, but I can ssh to it. I checked my security group and 1194 is open to the world. All traffic is open in the VPC routing tables.
OPVN is running
nobody 31998 1 0 00:57 ? 00:00:00 /usr/sbin/openvpn --daemon --writepid /var/run/openvpn/server.pid --cd /etc/openvpn --config server.conf --script-security 2
ifconfig
eth0 Link encap:Ethernet HWaddr 0A:2E:DC:B2:73:B4
inet addr:X.X.X.X Bcast:172.31.47.255 Mask:255.255.240.0
inet6 addr: fe80::82e:dcff:feb2:73b4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:9001 Metric:1
RX packets:113176 errors:0 dropped:0 overruns:0 frame:0
TX packets:73506 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:117007236 (111.5 MiB) TX bytes:6022905 (5.7 MiB)
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:65536 Metric:1
RX packets:26 errors:0 dropped:0 overruns:0 frame:0
TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1523 (1.4 KiB) TX bytes:1523 (1.4 KiB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
inet6 addr: fe80::7ee8:737b:15df:d7d2/64 Scope:Link
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:912 (912.0 b)
Only error in the log is;
Fri Jun 1 00:57:15 2018 /sbin/ip route del 10.8.0.0/24
RTNETLINK answers: Operation not permitted
Fri Jun 1 00:57:15 2018 ERROR: Linux route delete command failed: external program exited with error status: 2
Fri Jun 1 00:57:15 2018 Closing TUN/TAP interface
Fri Jun 1 00:57:15 2018 /sbin/ip addr del dev tun0 local 10.8.0.1 peer 10.8.0.2
RTNETLINK answers: Operation not permitted
Fri Jun 1 00:57:15 2018 Linux ip addr del failed: external program exited with error status: 2
Fri Jun 1 00:57:15 2018 SIGTERM[hard,] received, process exiting
Status
sudo cat openvpn-status.log
OpenVPN CLIENT LIST
Updated,Fri Jun 1 10:22:26 2018
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
ROUTING TABLE
Virtual Address,Common Name,Real Address,Last Ref
GLOBAL STATS
Max bcast/mcast queue length,0
END
I'm not certain how to debug this.
Tips/pointers/RTFMs appreciated.
Andy