Questions tagged [routing]

the process by which data packets on communication networks are forwarded into the direction of their ultimate destination by routers.

Modern communication networks are built mostly on the concept of destination routing (although other concepts, such as source routing, do exist). In this concept, the sender of a data packet does not need to know where exactly to find the destination for that packet, all it needs to know is the address of the next router. This router will then decide, based on routing tables and the destination address of the packet, where to send it next (this is called the next hop). This process is repeated until the packet arrives at a router where the destination address is in a directly connected network, and the final router then sends the packet directly to that destination.

Routing decisions are usually based on routing tables, which can be influenced by many factors, such as available links, link quality, routing policies, QOS, etc.

3661 questions
7
votes
1 answer

Routing 1 LAN + 2 WLANs + 2 WANs (failover) with DD-WRT on WRT54G2

I've installed DD-WRT v24-SP2 micro on a Linksys WRT54G2 v1.0, and I'd appreciate some help on setting up a not-so-trivial network. I've studied the documentation (notably http://www.dd-wrt.com/wiki/index.php/Default_Configuration_Overview, which…
Bruno Reis
  • 315
  • 3
  • 11
7
votes
2 answers

Linux Router Problem

I have a Linux based router with four interfaces (each with its own private subnet). When I directly connect a device directly (i.e. no switch, just a patch cable) to one interface and another device directly to another, as below, then the router…
Bryan
  • 7,628
  • 15
  • 69
  • 94
7
votes
3 answers

OpenVPN client without redirect-gateway doing triangular routing and IP spoofing not working on Ubuntu

I have an OpenVPN client running on a server of mine obtaining a public IP on a remote network in a different country. The client configuration is as follows: dev tap remote a.b.30.7 float a.b.30.7 port 5167 ifconfig a.b.28.178…
user59383
7
votes
2 answers

Wireguard VPN can't access internet and LAN

I have a server running Ubuntu 20.04 and wireguard 1.0.20200513-1~20.04.2. I installed the wireguard app on my phone (Android Samsung S20+) and disabled WIFI and connected to 4G. When the VPN is active I can access the server and nothing else on my…
6
votes
1 answer

What is Edge to Edge Routing?

I've heard the term edge to edge routing several times, but I'm having a hard time finding a formal definition as to what exactly this means. Can someone please explain what edge to edge routing is?
6
votes
3 answers

Border firewalls and routing -- static vs dynamic routing

Border topology for largish enterprise http://www.freeimagehosting.net/uploads/d24ede3b2f.png Let's say you've got an enterprise with a small internet presence in the form of a DNS server, a web server, and a VPN server, all on the DMZ (in this…
chris
  • 11,944
  • 6
  • 42
  • 51
6
votes
3 answers

How to set up two default routes in linux

TL;DR How to set up two default routes in linux (corresponding to two interfaces), such that incoming traffic from both interfaces is accepted. Scenario I have a host having two NICs eth0 and eth1. Its connected to two networks, say: Dev: eth0,…
Tanmay
  • 225
  • 1
  • 2
  • 9
6
votes
1 answer

Is it possible to override a single domain name using dnsmasq?

I have a server application that I'm running two instances of, production and development, namely: prod.example.com (10.0.0.1) dev.example.com (10.0.0.2) A third-party has written a client application which has been hardcoded to point to…
Matt
  • 322
  • 2
  • 3
  • 12
6
votes
2 answers

OpenVPN - how to stop public traffic routing through vpn server?

I have set up an OpenVPN server for access to my work LAN. It appears that all traffic routes through the vpn server when it's connected but I only want LAN traffic to go to it. How can I stop this? Specifically, I want only a single website with a…
markhorrocks
  • 513
  • 3
  • 10
  • 26
6
votes
5 answers

Adding second firewall to ISP connection with multiple subnets?

My routing knowledge is a little rusty. I have a fibre internet connection hooked up like this: The managed switch breaks out VLANS for transparent lan service that is also through the ISP's box. I think that's mostly irrelevant for this problem,…
Grant
  • 17,859
  • 14
  • 72
  • 103
6
votes
2 answers

Changing OpenVPN DHCP pool

I have a config at the moment which is working almost fine until some clients connect, the server starts to kick the clients off from the server or something like that. As I have checked every clients get a good IP address and there is no IP address…
Z T
  • 259
  • 1
  • 2
  • 5
6
votes
3 answers

How does a router on the Internet know where to send a packet to next to get it towards its destination IP address?

I've been doing small-time freelance IT work (among other things) for about the last decade now. I've set-up or rebuilt more local network arrangements than I can care to count, and more recently I've been studying up on some of the big gaps that…
6
votes
0 answers

pfSense Internal Traffic Policy Based Routing

What is the current and correct way to apply policy based routing to pfSense internal traffic (originating from the firewall itself)? Creating a floating rule with the WAN interfaces selected, direction OUT and a gateway defined does not work…
Monstieur
  • 536
  • 3
  • 15
6
votes
1 answer

Prevent hijacking IPs in KVM/libvirt

How can I prevent a VM user/client from accessing IP addresses he doesn't own but are routed over the same bridge on KVM/Libvirt? IP addresses are routed to a cisco switch vLan consisting of a /24 254 usable addresses eg. 105.100.1.0/24. Here is an…
6
votes
1 answer

Large number of ssh login attempts

I logged into a CentOS box today to find the following" There were 11126 failed login attempts since the last successful login. Last login: Tue Mar 10 14:36:47 2015 from X.X.X.X Thats 11 THOUSAND login attempts in the last 3 days. WTF? Please note…
fizzy drink
  • 385
  • 4
  • 8
  • 22