This forum is for admins who are looking to build or expand their OpenVPN setup.
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
Final9mare
- OpenVpn Newbie
- Posts: 7
- Joined: Sat Mar 11, 2017 11:43 pm
Post
by Final9mare » Fri Mar 24, 2017 9:24 am
I rent a VPS server and have OpenVPN installed (10.8.0.0/24). I connected my home router to the OpenVPN as a client (192.168.1.0/24) and then I connected my Phone as a client as well. I am trying to ping my LAN network devices but I can't seem to get it to work. I tried following this guide
https://www.secure-computing.net/wiki/i ... PN/Routing But it still doesnt work. Please help point me in the right direction! I also know I shouldnt be using 192.168.1.0/24 subnet but I am just trying to do testing before I switch the subnet. Thank you so much.
Server.conf:
Code: Select all
port 1194
proto udp
dev tun
sndbuf 0
rcvbuf 0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
tls-auth ta.key 0
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
#push "redirect-gateway def1 bypass-dhcp"
route 192.168.1.0 255.255.255.0
client-to-client
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
cipher AES-256-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
client-config-dir /etc/openvpn/ccd
CCD file:
Code: Select all
ifconfig-push 10.8.0.2 255.255.255.0
iroute 192.168.1.0 255.255.255.0