Page 1 of 1

What is wrong with HAP Lite

Posted: Sat Dec 19, 2015 9:36 pm
by n4yeem
I have bought a new hap lite for r&d purposes. First I tried to remove the default setting which cost me a lot of time to fix as hap lite comes with RouterOS 6.25.. it didn't boot after i tried to reset it..so i have to do a netinstall to get it working again. anyway long story short... i have configured it but i cannot use the internet when i assign a IP on my laptop. i can ping the gateway Ether4 (192.168.1.254). Ether1 is connected via pppoe. and i can ping google from the mikrotik but cannot get internet in my laptop. i have attached a picture with it so that the experts can look in to it..i am not an expert but i have knowledge how to configure a mikrotik with basic settings. i can't find the reason why i cant use the internet in my laptop? I look forward to all of your expert opinion.
testmtk.jpg

Re: What is wrong with HAP Lite

Posted: Sat Dec 19, 2015 11:33 pm
by rjscomms
Hello,

try adding ether1-Wan as Out-interface under ip->firewall->NAT

Re: What is wrong with HAP Lite

Posted: Sun Dec 20, 2015 4:43 am
by BartoszP
Try this instead of your NAT rule.
/ip firewall nat
add action=masquerade chain=srcnat out-interface=Wan-1-out to-addresses=0.0.0.0
Do you have any firewall rules ? Try to disable them for test if above rule does not help.

Re: What is wrong with HAP Lite

Posted: Sun Dec 20, 2015 5:33 am
by rjscomms
Apologies, it should be Wan-1-out as bartoszp stated, since that is your pppoe interface name.

Posted: Sun Dec 20, 2015 8:02 am
by jarda
I would like to see how the dns server and dhcp server and stuff around are set. Sure the masquerade should be corrected but I don't believe it is the reason. Can you ping to the 8.8.8.8 ip address from your pc?

Re: What is wrong with HAP Lite

Posted: Sun Dec 20, 2015 8:14 pm
by n4yeem
Hello,

try adding ether1-Wan as Out-interface under ip->firewall->NAT
Thanks man...it worked. I have assigned a Wan as out interface on ip-->firewall-->nat. Thank you once again. But i still couldn't find a good reason why it didn't work with the default 0.0.0.0/0 masquerade. :?

Re:

Posted: Sun Dec 20, 2015 8:16 pm
by n4yeem
I would like to see how the dns server and dhcp server and stuff around are set. Sure the masquerade should be corrected but I don't believe it is the reason. Can you ping to the 8.8.8.8 ip address from your pc?
Problem solved. I have added out interface on the ip>firewall>nat.

But i am still confused why the default 0.0.0.0/0 masquerade didn't worked..any ideas on that

Re: What is wrong with HAP Lite

Posted: Sun Dec 20, 2015 9:51 pm
by BartoszP
We do not see all this rule on the screenshot.
Maybe there was 192.168.1.254 as source set instead of 192.168.1.0/24 subnet.
It explains why router have been able to ping "the world" but devices on LAN not.

Re: What is wrong with HAP Lite

Posted: Tue Dec 22, 2015 9:34 am
by n4yeem
We do not see all this rule on the screenshot.
Maybe there was 192.168.1.254 as source set instead of 192.168.1.0/24 subnet.
It explains why router have been able to ping "the world" but devices on LAN not.
No..It was set correctly with 192.168.1.0/24 subnet.I am still confused why it didn't work... :?

Re: What is wrong with HAP Lite

Posted: Tue Dec 22, 2015 11:47 am
by BartoszP
I should be easier to analyze the problem if you will send all your configuration. Just export it. Remeber to remove all usernames and passwords.