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
6
votes
3 answers

Advanced dynamic routing with external program

I need to build a system in which i am able to route packets based on a number of parameters, such as port/protocol etc, which are somehow "normal", but also on other aspects, such as queue length, and other external factors. My router is composed…
lbedogni
  • 111
  • 5
6
votes
1 answer

How do I route all traffic from clients connected to the DD-WRT to its OpenVPN tunnel tun0?

I am setting a secondary (DD-WRT) router to act as a OpenVPN client so that all clients would get VPN access simply by connecting to the router. But seems clients traffic is always routed via the main gateway instead of the established VPN…
user1534160
  • 61
  • 1
  • 1
  • 3
6
votes
1 answer

Setting a static route for a specific network adapter with two network adapters

I have a virtual windows server 2008 r2 with 2 virtual network adapters, one is part of a domain and the other isn't. When I ping to a specific PC that is part of the domain it connects to it through the second network adapter (the one that isn't in…
Moshisho
  • 183
  • 2
  • 2
  • 9
6
votes
1 answer

How to set mark on packet when forwarding it in nat prerouting table?

I have a few port forward rules like this iptables -t nat -A PREROUTING -p tcp --dport 46000 -j DNAT --to-destination 172.16.8.2:46000 iptables -A FORWARD -p tcp -d 172.16.8.2 --dport 46000 -j ACCEPT I wonder if there is a way to add new forward…
Poma
  • 1,299
  • 6
  • 24
  • 35
6
votes
3 answers

Mikrotik and NAT/Routing issue

I have basic NAT/Routing problem with Mikrotik RB750 that I've been unable to solve over the past days. From our ISP we have 26 IP addresses: 10.10.10.192/27, with 10.10.10.193 being the gateway and 10.10.10.194 the first available IP. What I need…
arul
  • 193
  • 1
  • 3
  • 7
6
votes
4 answers

Why don't we see more routing attacks?

So, who remembers the whole "Pakistan kills YouTube" debacle from February last year? Here's an article on the topic to refresh your memory: Insecure routing redirects YouTube to Pakistan The gist of the story is that Pakistan intended to block…
6
votes
1 answer

How can I route different traffic over different interfaces (routes) by protocol?

I have two different WAN interfaces in a Linux (iptables) router. How could I achieve a situation where different traffic is routed over different interfaces, depending on the protocol (destination TCP port)? Is it even possible?
Ville Mattila
  • 459
  • 7
  • 13
6
votes
2 answers

Debian/OVH: How to configure multiple Failover IP on the same Xen (Debian) Virtual Machine?

I have a problem on a Xen virtual machine (running latest Debian), when I try to configure a second failover IP address. OVH reports that my IP is misconfigured and they complaint they receive a massive quantity of ARP packets from this IPs, so they…
6
votes
1 answer

W7 routing - traffic not going to default gateway

I have a really strange Windows 7 IPv4 routing issue that I can't get to the bottom of. The summary of the issue is that the default gateway is set to 192.168.254.253, but that it is actually using a default gateway of 192.168.254.254. Here's a…
Ian Macintosh
  • 955
  • 1
  • 6
  • 12
6
votes
3 answers

How to prevent asymmetric routing with multiple eBGP routers?

I have 2 routers announcing a /22 subnet to different providers (one providers connects to each of the 2 routers). I have split the /22 in two /23 to announce one /23 on each of the routers plus the /22 (the providers will take the more specific…
Andy Shinn
  • 4,211
  • 8
  • 40
  • 55
6
votes
3 answers

Round Robin Default Gateways on Linux

Does Linux have native support for load balanced (maybe as simple as RR or IP Hash) multiple default gateways?
Kyle Brandt
  • 83,619
  • 74
  • 305
  • 448
6
votes
3 answers

linux vlan routing

I've got this network topology: network 192.168.100.0/24 vlan 100 network 192.168.200.0/24 vlan 200 one ubuntu server(2 vlans on 1 ether) eth0.100 (ip:192.168.100.10/24) eth0.200 (ip: 192.168.200.20/24 def gw 192.168.200.254) Situation is…
MealstroM
  • 1,517
  • 1
  • 17
  • 32
6
votes
3 answers

Delete specific conntrack entries?

in a multi-ISP configuration, I'm routing and NATing specific traffic, e.g. VoIP, through specific interface - to a distinct provider. When one of the interfaces (or routes) becomes unavailable, all connections that were using it have to be dropped,…
Zrin
  • 607
  • 1
  • 6
  • 14
6
votes
2 answers

When an IP or a block of IPs are assigned to you, do the network admins just add them to a router?

Let's say there is a router to the internet and a router separates your network from others within a data center. When the data center provided gives you IP addresses, do they just take a [set] of IPs they own and enter a route in their router to…
Spechal
  • 751
  • 6
  • 10
6
votes
3 answers

How broken is routing strategy that causes a martian packet (so far only) during tracepath?

I believe I've achieved a table that routes packets from and to eth1/192.168.3.x through 192.168.3.1, and packets from and to eth0/192.168.1.x through 192.168.1.1 (helpful source). Question: when doing tracepath from 192.168.3.20 (from within…
lkraav
  • 786
  • 1
  • 8
  • 22