Community discussions

MikroTik App
 
ollit
newbie
Topic Author
Posts: 25
Joined: Tue May 23, 2017 3:14 pm

Subnet over PPPoE take the wrong IP outgoing

Tue Aug 14, 2018 10:08 pm

Hello,

I have a problem sending an IP from the subnet outgoing.

1. MT1 is the main Router in the RZ, there is a Subnet routet to an IP, which is on it. That works fine. ( subnet 10.2.3.0/29 ).
2. MT2 is the client Router, connect over the Internet PPPoE to the MT1 and get 1 IP Address ( ip 10.1.1.1/32 ).

On MT2 I have add on an Ethernet interface the gateway IP Address 10.2.3.1
One client connect to the Ethernet Interface with the IP 10.2.3.2 and the Gateway and DNS 10.2.3.1.
The client can go to the Internet, but the outgoing IP is not the 10.2.3.2. It is the 10.1.1.1.

On the MT1 I have create a route, that the subnet 10.2.3.0/29 is on 10.1.1.1.
But what is the right way back to the MT1 ?
On the MT2 is 0.0.0.0/0 to the PPPoE Interface.

I hope someone understand my Question and sorry for the bad english.
 
User avatar
laithmikrotik
Member
Member
Posts: 435
Joined: Wed Apr 13, 2011 3:18 pm

Re: Subnet over PPPoE take the wrong IP outgoing

Tue Aug 14, 2018 10:32 pm

i think that VPN protocol is the best way to access to one device through another device wihch is connected to the internet...
 
ollit
newbie
Topic Author
Posts: 25
Joined: Tue May 23, 2017 3:14 pm

Re: Subnet over PPPoE take the wrong IP outgoing

Tue Aug 14, 2018 11:56 pm

It is over L2TP. The MT1 is the router, that brake out to the Internet, not the MT2.
 
User avatar
bramwittendorp
Member Candidate
Member Candidate
Posts: 101
Joined: Thu Jun 16, 2016 3:48 pm
Location: The Netherlands
Contact:

Re: Subnet over PPPoE take the wrong IP outgoing

Wed Aug 15, 2018 8:53 pm

I've seen a similar problem as well, where traffic on a site-to-site L2TP was NAT'ted because a masquerade rule.

Add a rule under /ip firewall nat. In the src-nat chain. Traffic from your router going towards the L2TP-tunnel interface with action accept and place it at the top of the NAT-rules.

Who is online

Users browsing this forum: almdandi, gianry, istenik, timoptr and 47 guests