It is currently 26.04.2017 07:52


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Access OpenVPN server network
PostPosted: 09.03.2016 12:34 
DES
DES

Joined: 12.12.2013 09:18
Posts: 2
Hello Community!

After my installation and configuration it's not possible to access device in the server subnet over the connected VPN.

Configuration:

OpenVPN Server: 10.0.0.68 / 255.255.255.0
Router Subnet: 10.0.0.138
Device Subnet: 10.0.0.90

Server configuration:

Code:

port XXXX
proto udp
dev tun
ca XX.crt
cert XX.crt
key XX.key
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
server 172.16.0.0 255.255.0.0
ifconfig 172.16.0.1 172.16.0.2
ifconfig-pool-persist ipp.txt
push "route 172.16.0.1 255.255.255.255"
push "route 172.16.0.0 255.255.255.0"
push "route 10.0.0.68 255.255.255.0" #Subnet
push "redirect-gateway def1"
push "dhcp-option DNS 10.0.0.138"
client-to-client
keepalive 10 120
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0 # This file is secret
cipher AES-256-CBC # AES
comp-lzo
max-clients 5
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log
log-append /var/log/openvpn.log
verb 4



Client configuration:

Code:

client
keepalive 10 120
dev tun
proto udp
remote xxx xxxx
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert X.crt
key X.key
ns-cert-type server
tls-auth ta.key 1
cipher AES-256-CBC
comp-lzo
verb 3



Firewall rule:

Code:

pre-up /etc/firewall-openvpn-rules.sh:

#!/bin/sh

iptables -t nat -A POSTROUTING -s 172.16.0.0/24 -o eth0 -j SNAT --to-source 10.0.0.68



Can anyone help me to solve this problem. I would like that the connected client can access the network device (10.0.0.90) over the connected VPN.

Best Regards, supercop89


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ]  Moderator: Moderators

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net