Community discussions

MikroTik App
 
wisecrack
just joined
Topic Author
Posts: 16
Joined: Wed Oct 24, 2012 10:05 am

Help with first router configuration, possible NAT problem

Thu Mar 07, 2013 8:06 am

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.
You do not have the required permissions to view the files attached to this post.
 
User avatar
nick3dos
Member Candidate
Member Candidate
Posts: 189
Joined: Fri Apr 29, 2011 11:03 pm
Location: Greece

Re: Help with first router configuration, possible NAT probl

Thu Mar 07, 2013 9:27 am

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
 
wisecrack
just joined
Topic Author
Posts: 16
Joined: Wed Oct 24, 2012 10:05 am

Re: Help with first router configuration, possible NAT probl

Thu Mar 07, 2013 10:11 am

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
You do not have the required permissions to view the files attached to this post.
 
cupis
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Sun Apr 10, 2011 1:25 am

Re: Help with first router configuration, possible NAT probl

Thu Mar 07, 2013 10:31 am

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.
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?
 
wisecrack
just joined
Topic Author
Posts: 16
Joined: Wed Oct 24, 2012 10:05 am

Re: Help with first router configuration, possible NAT probl

Thu Mar 07, 2013 10:50 am

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.
 
User avatar
nick3dos
Member Candidate
Member Candidate
Posts: 189
Joined: Fri Apr 29, 2011 11:03 pm
Location: Greece

Re: Help with first router configuration, possible NAT probl

Thu Mar 07, 2013 10:57 am

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
 
wisecrack
just joined
Topic Author
Posts: 16
Joined: Wed Oct 24, 2012 10:05 am

Re: Help with first router configuration, possible NAT probl

Thu Mar 07, 2013 11:10 am

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! :D
I removed the out-interface part, and I now have internet.

Thanks guys.
 
User avatar
nick3dos
Member Candidate
Member Candidate
Posts: 189
Joined: Fri Apr 29, 2011 11:03 pm
Location: Greece

Re: Help with first router configuration, possible NAT probl

Thu Mar 07, 2013 11:13 am

Ahh you legend, that worked! :D
:)

Who is online

Users browsing this forum: No registered users and 73 guests