I'm new to dnsmasq and networking isn't my strong point, hopefully i'm missing something simple.
I have a Ubuntu laptop running dnsmasq. The laptop's WiFi is connected to the Internet, the laptop's ethernet is connected to a LAN.
Plugging my machine into the LAN I am assigned an IP address by the laptop. Accessing www.google.com on my machine gets picked up the laptop and i'm served the laptops Apache page, which is my desired result. The problem is I can't access any other website, Destination Host Unreachable.
I'd like the laptop running dnsmasq to allow my machine to resolve DNS queries normally and only be restricted when accessing www.google.com.
My dnsmasq.conf is the default except:
address=/www.google.com/192.168.0.1
interface=eth0
dhcp-range=192.168.0.50,192.168.0.150,12h
I've a feeling it might be related to the IP settings on each network?
The WiFi has a static IP 192.168.1.55 taking to the router at 192.168.1.1 and the DNS server at 192.168.1.10.
The ethernet is configured manually with an IP 192.168.0.1 setting the router as the WiFi IP 192.168.1.55 and the same for the DNS server 192.168.1.55.
Thanks in advance for any help.
Pete
After a lot of fiddling, this was related to iptables and not dnsmasq.
Related
We have some networking issue on a Raspberry Pi and a 4G dongle. The same buildroot image on other Raspberry Pi with another 4G dongle is working fine. However on this Raspberry Pi + dongle setup:
PPP can establish connection and create a ppp0 interface
Can ping 8.8.8.8
When ping google.com, it can find IP address, but ping cannot go through, with 100% failure.
Directly ping the found google.com IP also failed. Tried other domain names and IP as well. Internet like HTTP are also not working.
In /etc/resolv.conf, the nameserver looks correct, it is in same network as the ppp0 IP assigned by ISP. Anyway if the "ping google.com" can find IP address, I think the DNS is working fine.
routing table is also correct, there is only ppp0 routes in the table.
My question is, what could be the root cause of this issue and how to solve it? Or what test do you suggest for me to identify the root cause? Thanks!
It terms out that the APN we use is a Shared Internet APN rather than a public APN, which means The service provider only whitelists some IP addresses for us to access with this APN.
i have network issue from using vm.
This is ifconfig info of vm ubuntu 16.04.
This is ipconfig info of my host machine.
And this is the network settings of vm.
I able to ping vm ip addr from host machine.
I able to ping phone ip addr from vm.
I unable to ping vm ip addr from phone under same network.
Im bad in networking. Any of you have good clue can help me solve this issue?
Appreciate your help & Thanks in advance.
NAT has four different types, and it always works as a firewall. That is why we need UDP traversal and hole-punch sometime. If you want other devices like host and phone build a connection to vm, you need firstly connect from vm to thoses deivces to build a "hole" as a path.
Hello Everyone!
I want to know that is there any way to access a photocopier machine which is connected to a computer through Ethernet wire and that computer is connected to my WiFi network?
P.S: What if I don't know the IP assigned to that Photocopier machine?
If the wireless network is part of the wired network you should have any problem reaching the photocopier.
If you don't know the IP address, you can reach it by host name if the DHCP and DNS are working properly. If you are on an Active Directory infrastructure and DHCP and DNS are integrated it should be transparent.
If you are on your home with a "home" router they usually do the hostname to IP resolve (DNS).
You can nslookup hostname in your machine to see if your dns is resolving the ip address. you can also ping hostname or ping ip address to test that you can reach the desired host. Some hosts block ping (ICMP) requests, please note that ping is ping does not respond is not a definitive solution.
Please note that in your home router you should use your router or default gateway to be the DNS also, and then add the google public DNS or your ISP.
Also when connecting the access point to an existing network you may have 2 DHCP servers providing IP addresses to hosts, you should disable DHCP on the Access Point and connect the AP to the network using the switch port and not the WAN port (the WAN port will try to do NAT and assign a different set of IP addresses).
Is it possible to have one of our networked PC's to keep using the same IP address (192.168.1.54) so that if the master computer or a failure / shutdown etc happens then the system IP addresses are not reset so i don't have to update all the other pc's hosts files to this PC's new IP address?
You will need to make a reservation based on the MAC address of your network card. You can find this by typing "ipconfig /all" inside the command prompt.
The IP addresses can be reserved on your router or on your server depending on how they are distributed.
You should solve this in the DHCP server (typically in your router), make a reserved IP for the mac-address of the PC in question. Or you configure the PC to not use DHCP but configure a fixed IP. But that should be, if possible, an IP that is not in the DHCP range.
I have installed MS Loop-back adapter and have given it a static IP: 10.10.10.9
my laptop is configured as 10.10.10.30 , and my gateway is 10.10.10.1
i can ping the loop-back NIC from my laptop, but not from any other machine on the LAN. i am trying to beat the 65k port limitation by seeing if i can have virtual IP addresses on one machine and each can then give me 65k ports
thanks.
By very definition, you CANNOT talk to a loopback adapter from any other machine but your own.
If on Linux, you could bridge it to a physical adapter, such as eth0, but why would you want to do that?
Take a look here for setting up IP alias on Windows (disclaimer - I don't own any windows machines, so can't really verify this).
You can ping your Loopback interface from LAN by installing Remote and Routing Access role on the server. After installing the R&S role on the server , configure LAN routing feature. It will start pinging from LAN. I have done this practically in my environment.