I have multiple customers in one building.
Now all customers use their own adsl line.
We have recently been able to get a fiber connection there.
On this fiber we connect with PPPOE and we get 8 IPs
I want to distribute the IP’s to the customers via PPPOE
When i set this this up with WAN IP’s i’am not able to get internet access.
When i set LAN ip’s in the pppoe pool it works fine but than everybody is using the same WAN IP
If you want to give each customer their own public IP on the PPPoE link, the best would be to have a separate subnet for connection to the ISP; in that case, the ISP would use your end of the subnet as a gateway to the /29 subnet with those 8 addresses, and you could give all 8 of them to the customers. If the ISP gives you a /29 public subnet as the only one, you can only give to customers 4 IPs from that subnet, as .0 is the network address, .7 is the broadcast address, and you need one address for your Mikrotik and another one for the ISP side gateway. The separate connection subnet need not be a public one and if it is, it may be completely unrelated to the /29 one.
of my isp I get a / 24 subnet with 8 useful addresses
As an example I get the following.
40.40.40.1 Router of the ISP
40.40.40.11 IP for the mikrotik
40.40.40.12 Customer 1
40.40.40.13 Customer 2
40.40.40.14 Customer 3
40.40.40.15 Customer 4
40.40.40.16 Customer 5
40.40.40.17 Customer 6
40.40.40.18 Customer 7
The other addresses in the /24 are not mine.
they are not going to change anything on the side of the ISP
My original idea was to create a DHCP pool with the IP’s 40.40.40.12 - 40.40.40.18.
Then add the 40.40.40.11 as router in the PPPOE Profile.
This works fine with internal IP’s but sadly not with the WAN IP’s
the customers also use routed voip on another vlan this vlan is going on the ISP network to our datacenter
The only thing the Mikrotik has to do for this to work is have the the vlan on de Bridge-local. I have tested this and it works fine.
The PPPOE server runs in my case on VLAN 6 so it wont interrupt the VOIP running on vlan 1515
Connecting the customers directly on the mikrotik without there own router is not going to work because of the voip connection.
In this case do NOT put the customers’ addresses up on the Mikrotik itself, but switch on the arp=proxy-arp functionality on the WAN interface. This way, the Mikrotik will start responding to arp requests for IP addresses in its connected subnets, so when a customer’s PPPoE link will be up with one of those addresses, the ISP’s router will get an ARP response from your WAN and send the real packet to you, and you’ll forward it to the customer.
The project was delayed for a while and yesterday I finally was able to proceed.
So the customer router behind the PPPOE is now able to gain internet access.
From another location I`am able to ping the router on IP 40.40.40.12
if I connect my laptop to the customers router and check what my external IP is on https://www.watismijnip.nl/ is see 40.40.40.11 instead of 40.40.40.12
It must be something in your /ip firewall nat. Show us the output of /ip firewall nat export, or better an export of the complete configuration, see my automatic signature on how to anonymize it.
OK, so you’ve found it yourself faster than I could react. However, I would probably use less restrictive conditions in the action=masquerade rule. Assuming that the public subnet in question is x.x.x.0/24 and your WAN interface is ether456, I would modify the rule to say
Other than that, the absence of any firewall on your routerboard makes it an easy target, so if it has been running on a public IP for more than a couple of minutes, it is likely already infected.