I am playing with EoIP. I have two sites, let's call them CENTRAL and REMOTE. Note that this is a lab and not a production environment.
I want device in REMOTE to be on the same subnet as those in CENTRAL. I also want the device from REMOTE to go through CENTRAL to access the internet, so the last NAT is done at CENTRAL.
So far, I was able to get L2TP (over IPsec) between both site to work. EoIP inside the L2TP tunnel is also working. Device at REMOTE gets their IP from the DHCP at CENTRAL and can actually access all the subnet at CENTRAL normally. The only problem I have is that the devices at REMOTE don't get NATed by the Mikrotik at CENTRAL when accessing the Internet and I have absolutely no idea why?
Have a look at Image1 to see a packet from a device located at CENTRAL go through the Mikrotik there and get NATed normally. Now, look at Image2 to see how a packet coming in from the eoip tunnel is sent through the same external interface, but without being NATed at all? As you can guess, this just doesn't work. Here is my only masquerading, which is pretty straight forward:
Code: Select all
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; NAT out
chain=srcnat action=masquerade out-interface=pppoe-bell1
Any idea what would cause that?