OpenVPN-Server (standalone mode) not working / not understood
Hello all together :)
Pre-issue 1: I haven't even found a user manual for the 605 on TP-Link's websites. I have found on at manualzz, but this is lacking OpenVPN.
Any resources you could recommend to better understand TP-Link's implementation?
Pre-issue 2: NAT only? I configured one WAN port with a static IP of 192.168.0.19 (192.168.0.0/24) is my surrounding lab network. The LAN side i defined with 192.168.1.0/24.
The only way to access a host on the "LAN" port (192.168.1.100) was by adding a NAT rule (portforward) - the LAN-side can access resources in the lab and the Internet without additional effort.
Can I switch off NAT? Or am I handling it wrong?
Main issue: I get a connection to an OpenVPN-Server, but don't know how to connect to resources?
My test setup:
- WAN-Interface static IP 192.168.0.19 (192.168.0.0/24 is my lab)
- LAN 192.168.1.0/24 DHCP
- OVPN-server UDP/1194 - local net: 192.168.2.0/24 - IP pool: 192.168.2.32/29
I downloaded the client config, just added "remote 192.168.0.19; port: 1194" and connected successfully from lab-LAN to the OVPN-server.
The client has a remote IP of 192.168.2.38.
(I have a log of what the OVPN client did during the connection process - I put it below!)
How can I move from here?
I was not able (maybe by adding a route - tun is not a valid interface for static routes) to access a resource on one of the LAN ports, e.g. a web server I started on LAN2 with 192.168.1.100:8080.
Or should I configure the OVPN-server to use the same network (192.168.1.0/24) as the physical LAN is configured to?
Thank you!
Attachment:
part of the log of the OVPN client when connecting
2022-03-30 18:45:05 EVENT: ASSIGN_IP
2022-03-30 18:45:05 NIP: preparing TUN network settings
2022-03-30 18:45:05 NIP: init TUN network settings with endpoint: 192.168.0.19
2022-03-30 18:45:05 NIP: adding IPv4 address to network settings 192.168.2.38/255.255.255.252
2022-03-30 18:45:05 NIP: adding (included) IPv4 route 192.168.2.36/30
2022-03-30 18:45:05 NIP: adding (included) IPv4 route 192.168.2.0/24
2022-03-30 18:45:05 NIP: adding (included) IPv4 route 192.168.2.32/28
2022-03-30 18:45:05 NIP: adding (included) IPv4 route 192.168.2.32/28
2022-03-30 18:45:05 NIP: adding DNS 192.168.2.0
2022-03-30 18:45:05 NIP: adding DNS 8.8.8.8
2022-03-30 18:45:05 NIP: adding match domain ALL
2022-03-30 18:45:05 NIP: adding DNS specific routes:
2022-03-30 18:45:05 NIP: adding (included) IPv4 route 192.168.2.0/32
2022-03-30 18:45:05 NIP: adding (included) IPv4 route 8.8.8.8/32
2022-03-30 18:45:05 Connected via NetworkExtensionTUN
2022-03-30 18:45:05 LZO-ASYM init swap=0 asym=1
2022-03-30 18:45:05 Comp-stub init swap=0
2022-03-30 18:45:05 EVENT: CONNECTED 192.168.0.19:1194 (192.168.0.19) via /UDPv4 on NetworkExtensionTUN/192.168.2.38/ gw=[/]