Routing from 10... to 192.168... network, configuration

This forum is for admins who are looking to build or expand their OpenVPN setup.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
ufotech
OpenVpn Newbie
Posts: 1
Joined: Sun Feb 03, 2019 3:03 pm

Routing from 10... to 192.168... network, configuration

Post by ufotech » Mon Feb 04, 2019 6:15 am

Forbidden. You submitted too quickly. You may try again in a few seconds. Contains contacts.

Hi

After connecting with the android-client I receive 10.0.0.4 as a local address on the smartphone.
However, it is unable to connect to any 192.168.51.0 255.255.255.0 address int the home-network.

I want to connect to 192.168.51.44 using RDP-client on the same mobile-phone.
..51.44 is the same machine that runs the ovpn-server.

Can someone help me to correct the configuration, please.

Thank you


This is my config

server.ovpn:

Code: Select all

[oconf=Server Config]#
port 1194
proto tcp
dev tun
ca "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\server.crt"
key "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\server.key"  # This file should be kept secret
dh "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\dh2048.pem"
server 10.0.0.0 255.255.255.0
ifconfig-pool-persist "C:\\Program Files\\OpenVPN\\log\\ipp.txt"
push "route 192.168.51.0 255.255.255.0"
keepalive 10 120
cipher AES-256-CBC
persist-key
persist-tun
status "C:\\Program Files\\OpenVPN\\log\\openvpn-status.log"
verb 3
client.ovpn

Code: Select all

[oconf=Client Config]#
client
dev tun
proto tcp
remote x.x.x.24 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
comp-lzo
verb 3
And here is what it does:
interface:

Code: Select all

Ethernet-Adapter Ethernet:

   Verbindungsspezifisches DNS-Suffix: home
   Beschreibung. . . . . . . . . . . : Controller der Familie Realtek PCIe GBE
   Physische Adresse . . . . . . . . : C0-3F-D5-6C-6A-EA
   DHCP aktiviert. . . . . . . . . . : Ja
   Autokonfiguration aktiviert . . . : Ja
   IPv4-Adresse  . . . . . . . . . . : 192.168.51.44(Bevorzugt)
   Subnetzmaske  . . . . . . . . . . : 255.255.255.0
   Lease erhalten. . . . . . . . . . : Mittwoch, 9. Januar 2019 17:40:31
   Lease läuft ab. . . . . . . . . . : Montag, 4. Februar 2019 05:40:29
   Standardgateway . . . . . . . . . : 192.168.51.1
   DHCP-Server . . . . . . . . . . . : 192.168.51.1
   DNS-Server  . . . . . . . . . . . : 192.168.51.1
   NetBIOS über TCP/IP . . . . . . . : Aktiviert

Ethernet-Adapter TGB No Tunnel:

   Medienstatus. . . . . . . . . . . : Medium getrennt
   Verbindungsspezifisches DNS-Suffix:
   Beschreibung. . . . . . . . . . . : TheGreenBow Virtual Miniport Adapter
   Physische Adresse . . . . . . . . : 02-50-F2-AA-A5-2B
   DHCP aktiviert. . . . . . . . . . : Nein
   Autokonfiguration aktiviert . . . : Ja

Ethernet-Adapter Ethernet 3:

   Verbindungsspezifisches DNS-Suffix:
   Beschreibung. . . . . . . . . . . : TAP-Windows Adapter V9
   Physische Adresse . . . . . . . . : 00-FF-4B-7D-EB-CE
   DHCP aktiviert. . . . . . . . . . : Ja
   Autokonfiguration aktiviert . . . : Ja
   Verbindungslokale IPv6-Adresse  . : x::x:x:f51e:c9c5%29(Bevorzugt)
   IPv4-Adresse  . . . . . . . . . . : 10.0.0.1(Bevorzugt)
   Subnetzmaske  . . . . . . . . . . : 255.255.255.252
   Lease erhalten. . . . . . . . . . : Sonntag, 3. Februar 2019 15:20:03
   Lease läuft ab. . . . . . . . . . : Montag, 3. Februar 2020 15:20:03
   Standardgateway . . . . . . . . . :
   DHCP-Server . . . . . . . . . . . : 10.0.0.2
   DHCPv6-IAID . . . . . . . . . . . : 486604619
   DHCPv6-Client-DUID. . . . . . . . : 00-01-00-01-1D-0F-96-52-C0-3F-D5-6C-6A-EA
   DNS-Server  . . . . . . . . . . . : x:0:0:ffff::1%1
                                       x:0:0:ffff::2%1
                                       x:0:0:ffff::3%1
   NetBIOS über TCP/IP . . . . . . . : Aktiviert
route:

Code: Select all

===========================================================================
Schnittstellenliste
 16...c0 3f d5 6c 6a ea ......Controller der Familie Realtek PCIe GBE
 10...02 50 f2 aa a5 2b ......TheGreenBow Virtual Miniport Adapter
 29...00 ff 4b 7d eb ce ......TAP-Windows Adapter V9
  1...........................Software Loopback Interface 1
===========================================================================

IPv4-Routentabelle
===========================================================================
Aktive Routen:
     Netzwerkziel    Netzwerkmaske          Gateway    Schnittstelle Metrik
          0.0.0.0          0.0.0.0     192.168.51.1    192.168.51.44     25
         10.0.0.0    255.255.255.0         10.0.0.2         10.0.0.1     35
         10.0.0.0  255.255.255.252   Auf Verbindung          10.0.0.1    291
         10.0.0.1  255.255.255.255   Auf Verbindung          10.0.0.1    291
         10.0.0.3  255.255.255.255   Auf Verbindung          10.0.0.1    291
        127.0.0.0        255.0.0.0   Auf Verbindung         127.0.0.1    331
        127.0.0.1  255.255.255.255   Auf Verbindung         127.0.0.1    331
  127.255.255.255  255.255.255.255   Auf Verbindung         127.0.0.1    331
     192.168.51.0    255.255.255.0   Auf Verbindung     192.168.51.44    281
    192.168.51.44  255.255.255.255   Auf Verbindung     192.168.51.44    281
   192.168.51.255  255.255.255.255   Auf Verbindung     192.168.51.44    281
        224.0.0.0        240.0.0.0   Auf Verbindung         127.0.0.1    331
        224.0.0.0        240.0.0.0   Auf Verbindung     192.168.51.44    281
        224.0.0.0        240.0.0.0   Auf Verbindung          10.0.0.1    291
  255.255.255.255  255.255.255.255   Auf Verbindung         127.0.0.1    331
  255.255.255.255  255.255.255.255   Auf Verbindung     192.168.51.44    281
  255.255.255.255  255.255.255.255   Auf Verbindung          10.0.0.1    291
===========================================================================
Ständige Routen:
  Keine

Post Reply