Community discussions

MikroTik App
 
dustojnikhummer
newbie
Topic Author
Posts: 25
Joined: Tue Jan 05, 2021 1:55 pm

PC can not reach internet, router can.

Fri Feb 26, 2021 11:33 am

I haven't touched this in a month and I forgot everything, I have no idea what happened.

Anyway, at school from home. We work with Mikrotiks in a VM, VirtualBox to be specific. What do I want? Connect a Linux VM through a Mikrotik VM to the Internet

eth1 is a bridge, eth2 goes into the Linux VM. IP addresses are set (static for now, no need for a DHCP server just yet), NAT is active, DHCP client got an IP from my home router and the implicit route is set correctly. Image

Mikrotik can ping the internet (IP addresses or domain names) just fine, the Linux VM can't even ping the outside IP address of the Mikrotik (the 192.168.0.75)

What am I forgetting? I know it is something very, very basic.

Help appreciated.
 
User avatar
erkexzcx
Member Candidate
Member Candidate
Posts: 264
Joined: Mon Oct 07, 2019 11:42 pm

Re: PC can not reach internet, router can.

Fri Feb 26, 2021 3:03 pm

Show your firewall filter rules.
 
tdw
Forum Guru
Forum Guru
Posts: 1999
Joined: Sat May 05, 2018 11:55 am

Re: PC can not reach internet, router can.

Fri Feb 26, 2021 3:53 pm

So the linux VM can successfully ping 192.168.1.1?

What has the address 192.168.1.5 - if it is the linux VM have you configured a default route?
 
dustojnikhummer
newbie
Topic Author
Posts: 25
Joined: Tue Jan 05, 2021 1:55 pm

Re: PC can not reach internet, router can.

Fri Feb 26, 2021 4:19 pm

So the linux VM can successfully ping 192.168.1.1?

What has the address 192.168.1.5 - if it is the linux VM have you configured a default route?
Yes, Linux VM can ping 192.168.1.1 (the "inside" IP address). 192.168.1.5 is a static address of the Linux VM.

Show your firewall filter rules.
Firewall Rules are empty. Is that wrong?

Am I missing a route back to the PC or something?
 
User avatar
SiB
Forum Guru
Forum Guru
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: PC can not reach internet, router can.

Fri Feb 26, 2021 5:41 pm

instead ping, you should do a tracert/traceroute from linux machine.
 
dustojnikhummer
newbie
Topic Author
Posts: 25
Joined: Tue Jan 05, 2021 1:55 pm

Re: PC can not reach internet, router can.

Fri Feb 26, 2021 7:12 pm

instead ping, you should do a tracert/traceroute from linux machine.
Doesn't even leave the machine

https://i.imgur.com/SQh2jip.png
 
User avatar
JohnTRIVOLTA
Member
Member
Posts: 394
Joined: Sun Dec 25, 2016 2:05 pm
Location: BG/Sofia

Re: PC can not reach internet, router can.

Fri Feb 26, 2021 8:54 pm

When pinging from the router, see what the value of TTL is? Paste here the firewall rules too !
 
dadaniel
Member Candidate
Member Candidate
Posts: 221
Joined: Fri May 14, 2010 11:51 pm

Re: PC can not reach internet, router can.

Fri Feb 26, 2021 9:10 pm

wrong/missing default gateway on the linux machine
 
dustojnikhummer
newbie
Topic Author
Posts: 25
Joined: Tue Jan 05, 2021 1:55 pm

Re: PC can not reach internet, router can.

Fri Feb 26, 2021 11:14 pm

wrong/missing default gateway on the linux machine
Alright, I have no idea why, but it works now. I posted the previous screenshot, turned off the VM, turned it on now and it works? I changed nothing, no idea why it works now. Anyway, thanks for help!
Paste here the firewall rules too !
I said before that Firewall Rules table was completely empty, in Firewall I only used NAT.
 
User avatar
SiB
Forum Guru
Forum Guru
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: PC can not reach internet, router can.

Thu Mar 04, 2021 7:24 am

next time check display the route table because it's like the default gateway is not inserted.
route -n
netstat -rn
ip route list
and this should give us some info.

OR update your VirtualBox :)

Who is online

Users browsing this forum: Semrush [Bot], sindy and 42 guests