Community discussions

MikroTik App
 
PatricF
just joined
Topic Author
Posts: 24
Joined: Tue May 17, 2011 10:59 am

ip_forward from Linux to MikroTik won't work properly.

Wed Jul 13, 2011 12:48 am

Hi,

I have a RB493G and for the moment I need some help here.

The thing is that I have my computer with a 3G dongle that I couldn't get to work with my MikroTik so I'm using it on my computer directly and enabled ip_forwarding (running Ubuntu 11.04).
When I connect my laptop directly to my "3G computer" I can surf the net without any problems, however when I connect my mikrotik to my "3G computer" and connect my laptop to the mikrotik it doesn't work that well. The strange thing is that I can ping every IP and use "dig" to lookup domains but I can't ping domains..

At first I thought there was something wrong with the DNS but I can lookup everything without any problems at all so I'm pretty much stuck.

Just to be clear, everything works if I use it without my MikroTik but when I use that it stops working correctly.

I've pointed my MT to the same DNS server as my "3G computer" and I can see in the cache that I looked up for instance google.com etc. but when I'm using the webbrowser it won't connect and it won't lookup any domains if I try a new one.

I have disabled all the firewall rules and NAT rules because I'm pretty much using it as a switch so no rules are needed right? I might be wrong here so please tell me if I need to add some rules to get this working.
I use the DHCP Server in the MikroTik and my routing table looks like this on it:
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 A S  0.0.0.0/0                          192.168.9.99       1       
 1 ADC  192.168.9.0/24     192.168.9.2     intern             0       
intern = bridge with all interfaces

"3G computer" = 192.168.9.99
MikroTik = 192.168.9.2

On the laptop I have 192.168.9.4 and I can ping both those IPs and like I said in the beginning all outside IPs but not any domains.

It looks like this:
root@PatricF-Linux:~# ping 209.85.149.99
PING 209.85.149.99 (209.85.149.99) 56(84) bytes of data.
64 bytes from 209.85.149.99: icmp_req=1 ttl=53 time=118 ms
64 bytes from 209.85.149.99: icmp_req=2 ttl=53 time=117 ms
64 bytes from 209.85.149.99: icmp_req=3 ttl=53 time=315 ms
root@PatricF-Linux:~# ping google.com


No response what so ever..

Isn't this strange? Or is the problem so obvious that I can't see it? I can't understand why I would be able to lookup domains and ping the IP but not ping the domain it self :p

Thanks for any help!