Hot answers tagged

49 votes
Accepted

How do I still have Internet connectivity after removing the default gateway IP address from macOS network configuration?

You have only disabled IPv4 by deleting the IPv4 default gateway. You have not disabled IPv6. You are using IPv6 to get to IPv6-capable sites. SuperUser.com, surprisingly, does not appear to be IPv6-...
Spiff's user avatar
  • 103k
12 votes
Accepted

Subnet or Not with 20 mask?

Yes. If the subnet mask is smaller than 255.255.252.0 (CIDR /22) all devices with IP addresses 192.168.1.x and 192.168.2.x belong to the same subnet and don't need a router to communicate with each ...
Peregrino69's user avatar
  • 4,574
8 votes

Complete masquerading NAT example using nftables on Linux?

Here's what I'm using, assuming lan0 is connected to your internal network, and wan0 to your ISP. I'm not sure what you mean by "DHCP client on the upstream interface", since this is done with a DHCP ...
Nico's user avatar
  • 181
7 votes

What is 1.1.1.1? Why does it work for traceoute but not ping?

1.1.1.1 is used as the default address of the DHCP server on CISCO routers. However, on the public internet, 1.1.1.1 now belongs to Cloudflare DNS service. Whois record: inetnum: 1.1.1.0 - 1....
Henry Chan's user avatar
7 votes

How to use local filemanager to do a ssh -J (jump, gateway)

GVFS (the common network-fs library used by Nautilus and Nemo) creates its SFTP connections using the regular ssh tool as the transport. The ssh manual page says that -J is a shortcut for the ...
u1686_grawity's user avatar
6 votes

Why is tracert not showing my public ip address?

Traceroute results correspond to whole routers, not their individual interfaces. Even though a router has multiple IP addresses on various interfaces, it will always produce only one trace reply. When ...
u1686_grawity's user avatar
5 votes

Find out dhcp assigned gateway and dns settings in Linux (CentOS)

In CentOS 7 you can use nmcli d show to get the gateway and DNS addresses for all interfaces.
sourcenouveau's user avatar
5 votes
Accepted

WireGuard VM or Container to act as gateway

I finally got it working. This is for anybody who wants to achieve the same as me. Install Ubuntu, install Wireguard server. Create a wg0.conf using your VPN provider's configuration. In my case, I ...
Powerful Cat's user avatar
4 votes

What is 1.1.1.1? Why does it work for traceoute but not ping?

As stated by Daniel B in his answer, the 1.1.1.1 address is currently assigned to APNIC labs (as it was when the question has been asked). However, until January 2010, the 1.0.0.0/8 network block, of ...
Ale's user avatar
  • 1,048
4 votes

Where is this web pages located/ hosted?

There's a web server on your consumer router - it makes it easier to configure things. It quite literally listens in on port 80 (usually only for IP ranges it serves) unless set otherwise. The ...
Journeyman Geek's user avatar
  • 128k
4 votes
Accepted

Connect device to internet using a Linux Computer

it should work with the following commands at first enable ip forwarding echo 1 > /proc/sys/net/ipv4/ip_forward reset iptables rules iptables -F iptables -t nat -F allow forwarding from the ...
bsod's user avatar
  • 56
4 votes

How to find a WiFi repeater's IP to configure it?

Since you refer to ipconfig, I presume you are on some version of Windows, so I shall offer a solution based on this assumption. Since your router is 192.168.1.254, then any IP addresses in your ...
AFH's user avatar
  • 17.4k
4 votes
Accepted

How to extend physical device Limit?

You don't need VPN, just NAT. Any home gateway router / wireless router with an Ethernet WAN port would work. NAT makes all your private LAN's traffic look like it's coming from a single IP address ...
Spiff's user avatar
  • 103k
4 votes

How to extend physical device Limit?

You don't need a VPN Gateway, any home router that supports upstream (WAN) ethernet will do what you need. You just need to set it up to work in NAT mode then you can attach as many devices as you ...
hardillb's user avatar
  • 610
3 votes
Accepted

Gateway to another computer for internet access

There are two things that you need to do, both on Computer 1: First, as sudo, issue: echo 1 > /proc/sys/net/ipv4/ip_forward Now, again as sudo: iptables -t nat -A POSTROUTING -o eth0 -j ...
MariusMatutiae's user avatar
3 votes
Accepted

How to use 'scp' to directly send my file to the target location via a gateway?

create a tunnel first: ssh -L 2222:yy.yy.yy.yy:22 [email protected], then you can scp with scp -P 2222 A fun@localhost.
Ipor Sircer's user avatar
  • 4,053
3 votes
Accepted

Why the ping reply time from switch is higher than that from devices on it?

Switches are amazingly good at switching. Their hardware is entirely designed to switch packets as quickly and efficiently as possible. Typical small switches, whether managed or unmanaged, have ...
David Schwartz's user avatar
3 votes

OSX Yosemite - How to add route having two default gateways

I was tackling a similar problem: How to set route specific interface metrics under Mac OS X and stumbled upon the answer to your question. What Mac OS X does is this: since it sees two routes to the ...
titusn's user avatar
  • 105
3 votes
Accepted

Routing all ethernet connection requests to a single page

The solution that you need is a captive portal. A Captive Portal is a webpage that will be shown initially to anyone who connects to your network. In your Raspberry Pi you will need to install a ...
jcbermu's user avatar
  • 17.4k
3 votes
Accepted

firewalld: forward traffic as a wireguard VPN gateway

With firewalld 0.9 and newer, you use firewalld policy objects to control cross-zone forwarding (prior to firewalld 0.9, there wasn't a way to do this). If you have eth0 bound to your internal zone, ...
Justin Ludwig's user avatar
3 votes

Standard protocol(s) to advertise alternative internet gateways to local, already DHCP-configured network

Is there a standard protocol that allows a device to advertise its ability to act as an (alternative) internet gateway to other devices on the local network, No, not for "regular" DHCP-...
u1686_grawity's user avatar
2 votes

Why do the virtual machines and the host have different default gateways?

Because VirtualBox assigns 10.0.2.0 network by default to its NAT network (refer to the documentation): The virtual machine receives its network address and configuration on the private network ...
techraf's user avatar
  • 4,872
2 votes

Use Raspberry as a router between three networks

The routing on the Raspberry Pi is probably OK. You need to make sure that your Internet-facing router has a route for 192.168.99.* that points to 192.168.2.1. Also, you will need to have your ...
Google Fail's user avatar
2 votes

Complete masquerading NAT example using nftables on Linux?

Masquerading is a special case of SNAT. If you want to attach the trafic to output interface or output address (Source address for your internal IPs) use SNAT
taybinakh's user avatar
2 votes

Disabling internet connections while keeping one web service online

Letting 192.168.0.1 be your gateway, and 1.2.3.4 the whitelisted host, define a static route for 1.2.3.4 that uses 192.168.0.1, and define 192.168.0.253 to be the default router (where 192.168.0.253 ...
G-Man Says 'Reinstate Monica''s user avatar
2 votes
Accepted

Setup default gateway with two "hops"

Your IT department gave you the wrong information. Your analysis is correct, and your default gateway should be 172.30.2.65. The final hop before the internet is 192.130.6.177 by the sounds of it, ...
Paul's user avatar
  • 59.6k
2 votes
Accepted

Can i use different network for different applications in ubuntu

In absolute generality, it is not possible to set a route per application, even in modern pcs. However, there is a large number of partial solutions to this problem, of different degrees of complexity....
MariusMatutiae's user avatar
2 votes

I'm unable to create a static ip route. error says: RTNETLINK answers: Network is unreachable

I see the problem. You are trying to connect from vm-client1 which has only one interface with connected network 192.168.101.0/24 but you are trying to add gateway on network 192.168.102.0/24 which ...
Koss645's user avatar
  • 31
2 votes

Explaining the functions of cable gateway with wirelessAP device

Can we say that this device: 1. acts as a router and separates the home network of mine from the Internet? Yes, but it's more than a router. There doesn't appear to be a way to make it do plain IP ...
Spiff's user avatar
  • 103k
2 votes
Accepted

TTL expired in transit

I guessed your addresses, ran a traceroute (well, mtr) to all four of them, and while it shows a loop, it's ping-ponging between two addresses that look very much like a point-to-point link between ...
u1686_grawity's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible