Help with first router configuration, possible NAT problem

Hey there I’m trying to configure a basic set up like this:

[work station] <—> [router] <—> [modem] <—> [internet]

The modem is connected to interface ether12, and a PPPoE client is setup to dial out on that interface.
The workstation gets an IP from a DHCP service on the router, and can ping the gateway fine.
I can ping google.com from inside the router, but the problem is that I can’t ping google.com from the workstation.

I think there must be a problem with my NAT set up, but I can’t work out what it might be. Hopefully some of you can help me with this, I’ve attached a screen shot if that helps.

Cheers.
mikroscreen1.jpg

If your lan network in ether12 is 192.168.1.0/24
user this:

/ip firewall nat
add action=masquerade chain=srcnat disabled=no src-address=192.168.1.0/24

Thanks for your reply. My configuration doesn’t seem very different to the one you posted, can you see any problems with this? Do I need to specify disabled=no in this config? I night clicked and selected enable in WinBox, maybe that didn’t do it.

Thanks
mikroscreen2.jpg

Can you ping 8.8.8.8 from the workstation? If you can, then it sounds like a DNS issue. If not, does the workstation have a default route to the router?

No I can’t, 8.8.8.8 just times out. I did try pinging googles IP to try and rule out a DNS issue. The PPPoE client is set to use peer DNS, and the DHCP points the workstation to 192.168.1.1 as the default gateway and DNS server, which I’ve confirmed in ipconfig.

So, your workstation has:
Ip: 192.168.1.x
Subnet: 255.255.255.0
Gateway: 192.168.1.1
DNS: 192.168.1.1

with outo dhcp settings and internet doesn’t come up?

i think something is wrong with nat firewall rule
try to delete the out interface
and just leave your source ip in the nat rule

Ahh you legend, that worked! :smiley:
I removed the out-interface part, and I now have internet.

Thanks guys.

:slight_smile: