Community discussions

MikroTik App
marklodge
Member Candidate
Member Candidate
Topic Author
Posts: 250
加入: Sun Jun 21, 2009 6:15 pm

How do I route a WAN IP to a PPPOE Client connected to an Edge router?

Fri Mar 01, 2019 7:25 pm

How do I route a WAN IP to a PPPOE Client connected to an Edge router?
Here is a diagram that explains it all
wan-topppoe-edge.png
You do not have the required permissions to view the files attached to this post.
Top
Sarel0092
newbie
Posts: 48
加入: Tue Aug 07, 2018 8:25 am

Re: How do I route a WAN IP to a PPPOE Client connected to an Edge router?

Tue Mar 05, 2019 4:01 pm

From my understanding you should just have to use a NAT rule to forward all traffic for the WAN to the IP of the pppoe client then a NAT rule to translate all traffic from pppoe client to the specific WAN IP.

/ip firewall nat
add chain=dstnat dst-address=45.45.45.2 action=dst-nat to-addresses=10.2.0.11 comment=WAN-TO-PPPOE-CLIENT1
add chain=srcnat src-address=10.2.0.11 action=src-nat to-addresses=45.45.45.2 comment=PPPOE-CLIENT1-TO-WAN
add chain=dstnat dst-address=45.45.45.3 action=dst-nat to-addresses=10.2.0.54 comment=WAN-TO-PPPOE-CLIENT2
add chain=srcnat src-address=10.2.0.54 action=src-nat to-addresses=45.45.45.3 comment=PPPOE2-CLIENT-TO-WAN
Top
marklodge
Member Candidate
Member Candidate
Topic Author
Posts: 250
加入: Sun Jun 21, 2009 6:15 pm

Re: How do I route a WAN IP to a PPPOE Client connected to an Edge router?

Tue Mar 05, 2019 4:52 pm

From my understanding you should just have to use a NAT rule to forward all traffic for the WAN to the IP of the pppoe client then a NAT rule to translate all traffic from pppoe client to the specific WAN IP.

/ip firewall nat
add chain=dstnat dst-address=45.45.45.2 action=dst-nat to-addresses=10.2.0.11 comment=WAN-TO-PPPOE-CLIENT1
add chain=srcnat src-address=10.2.0.11 action=src-nat to-addresses=45.45.45.2 comment=PPPOE-CLIENT1-TO-WAN
add chain=dstnat dst-address=45.45.45.3 action=dst-nat to-addresses=10.2.0.54 comment=WAN-TO-PPPOE-CLIENT2
add chain=srcnat src-address=10.2.0.54 action=src-nat to-addresses=45.45.45.3 comment=PPPOE2-CLIENT-TO-WAN


But that would work only if pppoe client is connected to this router. But the pppoe-client is connected to the edge router you see.
I thought we would have to use arp proxy maybe?
Top

Who is online

Users browsing this forum:antosusanand 7 guests