I am trying to get IP from my main router, not from openvpn

Scripts to manage certificates or generate config files

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
Dreikana
OpenVpn Newbie
Posts: 2
Joined: Fri Dec 06, 2019 4:53 pm

I am trying to get IP from my main router, not from openvpn

Post by Dreikana » Fri Dec 06, 2019 7:24 pm

Hi!

I have a Raspberry Pi at home with pivpn installed and when I connect to the VPN it works fine when connecting to internet. However, I can't connect to my LAN, for example to access to my NAS.

When I connect my I get the IP 192.168.4.17 which is outside from my LAN addressing, 192.168.0.0/24. How can I solve that??

Server_Settings
1
dev tun
2
proto udp
3
port 1195
4
ca /etc/openvpn/easy-rsa/pki/ca.crt
5
cert /etc/openvpn/easy-rsa/pki/issued/file.crt
6
key /etc/openvpn/easy-rsa/pki/private/file.key
7
dh none
8
topology subnet
9
server 10.8.0.0 255.255.255.0
10
push "dhcp-option DNS 8.8.8.8"
11
push "dhcp-option DNS 8.8.4.4"
12
push "block-outside-dns"
13
push "redirect-gateway def1"
14
client-to-client
15
keepalive 1800 3600
16
remote-cert-tls client
17
tls-version-min 1.2
18
tls-crypt /etc/openvpn/easy-rsa/pki/ta.key
19
cipher AES-256-CBC
20
auth SHA256
21
user nobody
22
group nogroup
23
persist-key
24
persist-tun
25
crl-verify /etc/openvpn/crl.pem
26
status /var/log/openvpn-status.log 20
27
status-version 3
28
syslog
29
verb 3

Post Reply