Routing in SSTP VPN

I’m building an SSTP VPN with the following configuration

Site1 (Main Site)
192.168.11.0/24 with mikrotik ip: 192.168.11.1

Site2 (Remote site)
192.168.21.0/24 with mikrotik ip: 192.168.21.1

Site 2 needs access to Site1, but Site1 does not need access to Site2, so I enabled SSTP in Site1

In Site1 PPP Secret:
Local address: 192.168.11.201
Remote address: 192.168.11.202

In site 2 I have an static route:
Destination address: 192.168.11.0/24
Gateway: SSTPInterface

The connection is stablished without problems, and from Site2 I can Ping 192.168.11.1

But … when I Ping a service in Site 1, for explample Ping 192.168.11.104 I get a time out.

I have disabled all firewall rules (temporally for testing) and my NAT section only has
chain=srcnat action=masquerade out-interface=ether1-gateway

Any ideas how I can stablish routing?

PS: Excuse me for the grammar, English is my second language

you need to be able to reply to the ping.

assuming .104 is a host on site1 with def.gw being the mikrotik on site1.

if you ping from the router on site2, the src address of your icmp packet would be the
ip address of the sstp interface, which is in the same /24 as the host you are trying to
reach.

as the host would only send packets to the default gw if the dst ip address is not connected,
e.g. not in 192.168.11.0/24, the host will try to do an arp lookup for the address which will
fail, unless you have proxy arp enabled on site1.

or you use a different set of ip addresses for the sstp tunnel, so something which does not overlap
with your LAN network segment.

if you try to reach .104 from a host at site2, so not from the router, you need a backward static route
in site1, to tell the router where to forward the packets destinated for 192.168.21.0/24. a similar static
route would do the trick, as you did it at site2.

or C, you could use ip masquerading (src-nat) for each outgoing packets with out-interface=sstpinterface.
in this case you - depending how you choose the ip addresses for the sstp tunnel, you either need proxy arp
on site1 (as described above) or non-overlapping ip-s.

hth

Thanks very much !!

I finally got it working, I have forgot proxy-arp. Comming from the software field i’m completely newbie at this.

I changed the network mask to /16 so everything looks the same network, enabled proxy-arp, and added the src-nat rule.
I need a time to fully test it but seems ok now.