How to reach a specific ip on client network side?
Posted: Thu Sep 21, 2023 4:15 pm
Hello guys,
I have the following constellation:
LOCAL-CLIENT <---> VPN-SERVER <---> VPN-CLIENT <---> TARGET
I want to reach "TARGET" from "LOCAL-CLIENT".
What I did:
a) on "LOCAL-CLIENT": I added a route "route add TARGET_IP MASK 255.255.255.255 VPN_CLIENT_IP
b) activated "IPEnableRouter" on VPN_CLIENT
I would assume now the following hops are done when I ping "TARGET" from "LOCAL_CLIENT".
LOCAL_CLIENT > VPN-SERVER > VPN_CLIENT > TARGET
Unfortunately it doesn't work.
For trial I just added a port-forwarding on "VPN_CLIENT" TO "TARGET" for a specific service.
That works just fine. So I think something does not work with the IP-routing via TAP-Device.
IP-Routing itself is working on "VPN-CLIENT" as I tested it with to local IP-interfaces without a problem.
What am I missing which prevents the TAP-Interface on my vpn-client to forward to target-ip ?
THANKS in advance
mts
REMARK: VPN-Client is a windows-machine
I have the following constellation:
LOCAL-CLIENT <---> VPN-SERVER <---> VPN-CLIENT <---> TARGET
I want to reach "TARGET" from "LOCAL-CLIENT".
What I did:
a) on "LOCAL-CLIENT": I added a route "route add TARGET_IP MASK 255.255.255.255 VPN_CLIENT_IP
b) activated "IPEnableRouter" on VPN_CLIENT
I would assume now the following hops are done when I ping "TARGET" from "LOCAL_CLIENT".
LOCAL_CLIENT > VPN-SERVER > VPN_CLIENT > TARGET
Unfortunately it doesn't work.
For trial I just added a port-forwarding on "VPN_CLIENT" TO "TARGET" for a specific service.
That works just fine. So I think something does not work with the IP-routing via TAP-Device.
IP-Routing itself is working on "VPN-CLIENT" as I tested it with to local IP-interfaces without a problem.
What am I missing which prevents the TAP-Interface on my vpn-client to forward to target-ip ?
THANKS in advance
mts
REMARK: VPN-Client is a windows-machine