Newb Question

Next-generation cloud-hosted OpenVPN business solution.
Post Reply
monorf
OpenVpn Newbie
Posts: 4
Joined: Tue Oct 25, 2022 9:02 am

Newb Question

Post by monorf » Tue Oct 25, 2022 10:32 am

Apologies for this probably simple issue. I'm not a network expert, just passable!

I have setup two networks in site-to-site with the setup wizard.

Network 1) A windows 10 Machine with connector, Network IP subnet access 10.24.133.164/32 (where we have a device on the LAN.)
Network 2) My laptop.

Each has a connector fully connecting OK.
From Network 2 I cannot ping 10.24.133.164
Any ideas?
Do I have to open any UDP ports on the internet router? I thought not if using the connector which initialises a link to the OpenVPN cloud.

monorf
OpenVpn Newbie
Posts: 4
Joined: Tue Oct 25, 2022 9:02 am

Re: Newb Question

Post by monorf » Tue Oct 25, 2022 2:47 pm

Ok sorted.
For future searchers using Win10 and a connector, IP routing is disabled by default on Win10.
Once I got into the registry and enabled it, I can now ping.
My device still doesn't work but as it pings all is good, if I can trace the port number issue.

monorf
OpenVpn Newbie
Posts: 4
Joined: Tue Oct 25, 2022 9:02 am

Re: Newb Question

Post by monorf » Wed Oct 26, 2022 1:23 pm

Hi.
Does anyone have any UP TO DATE info on setting up NAT on a Win10pro PC when used as a network node on Openvpn?
None of the online stuff seems to apply.
netsh int teredo show state gives:

Type : disabled
Server Name : win1910.ipv6.microsoft.com.
Client Refresh Interval : 20 seconds
Client Port : unspecified
State : offline
Error : none


Both connectors show as connected, the device on my LAN (the same LAN the connector is on) pings via the VPN but doesn't connect.
I am ASSUMING its a NAT problem as I've disabled all firewalls, no change.

monorf
OpenVpn Newbie
Posts: 4
Joined: Tue Oct 25, 2022 9:02 am

Re: Newb Question

Post by monorf » Wed Oct 26, 2022 7:02 pm

Again I shall answer my own question for future searchers.
Adapted from an old post (2011) viewtopic.php?f=7&t=7806.

This is what and to do, to get Routing and NAT working on a Windows 7/10 PC if it's hosting the connector, works OK on Cloud version.

1) Enable NAT;
Find the Services admin window.
Right-click Routing and Remote Access -> Properties -> Automatic
Right-click Routing and Remote Access -> Start

2) Enable link.
Go to Control Panel
Network and Sharing Center
Select Local Area Connection (or whatever your LAN and gateway connection is.)
Properties
Sharing
Tick the box "Allow other network users to connect through this computer's Internet connection"
From the drop-down list select "Local Area Connection 2", or whatever is the connection name of your TAP server connection.

3) Activate IP Routing.

Enter regedit (into CMD window) Find the below registry setting and edit..

Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Value: IPEnableRouter
Type: REG_DWORD
Data: 0x00000001 (1) (was previously set to zero)


Many thanks to Bebop for the original info..

Post Reply