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
9
votes
2 answers

Redundant OpenVPN connections with advanced Linux routing over an unreliable network

I am currently living in a country that blocks many websites and has unreliable network connections to the outside world. I have two OpenVPN endpoints (say: vpn1 and vpn2) on Linux servers that I use to circumvent the firewall. I have full access to…
konrad
  • 1,003
  • 8
  • 9
9
votes
2 answers

Get linux to change default route if one path goes down?

I'm configuring a gateway/router linux box. It is performing masquerading/NAT. The primary Internet interface is a 3G modem, but if that goes down, I would like it to try a different interface automatically. How would I go about doing this? Can the…
askvictor
  • 854
  • 3
  • 15
  • 29
9
votes
8 answers

Several IP address within the same subnet on the same host

Is it possible (well the real wording should be "Is it correct") to have several IP adresses that belongs to the same subnet, on the same host ? Here is an example: #Host 1 eth0 -> 10.0.0.1/24 eth1 -> 10.0.0.2/24 eth1:1 -> 10.0.0.3/24 I have…
ereOn
  • 519
  • 1
  • 4
  • 16
9
votes
2 answers

How to permanently redirect port 80 to 8080 on OS X?

On OS X 10.6 you do not have iptables, so what is the full solution for this permanently redirect all request sent to port 80 to another port, like 8080? It has to be persistent.
sorin
  • 8,016
  • 24
  • 79
  • 103
9
votes
3 answers

Windows Server 2008 - Connecting to 127.0.0.1

Im running Windows Server 2008 R2, we have an application that connects from (binds to) a public IP on the server to 127.0.0.1:8334 [connects to a service listening on 0.0.0.0:8334] In Windows 2003, there was no issue with this. We can connect using…
Summon
9
votes
5 answers

Ping "replies" from same computer with 'Destination host unreachable' (no route to other computer)

I've got two computers in a LAN behind a wireless router. One has XP with ip 192.168.1.2 This one has W7 with ip 192.168.1.7 If I try to ping the other one from this computer, I get this: C:\Users\Srekel>ping 192.168.1.2 Pinging 192.168.1.2 with 32…
Srekel
  • 359
  • 2
  • 3
  • 7
8
votes
4 answers

ESXi - Multiple Separate Concurrent Uplinks on vSwitch?

I currently have an ESXi server hosting a PFSense guest which is being used as an internet-facing router. This ESXi server is set up with two vSwitches (each with an associated port group): WAN - 1 physical uplink LAN - Connected to a few other…
Eli
  • 395
  • 3
  • 7
  • 15
8
votes
3 answers

What is the local routing table used for?

I am trying to understand what is the local routing table. If I add a random address in it with the following command: sudo ip route add to local dev Now I can ping this address, but no interface listed by…
Lilás
  • 213
  • 1
  • 3
  • 5
8
votes
3 answers

Routing table hits?

With iptables -L -n -v, you can get the number of times each firewall rule has been applied, which is very useful in debugging. I'd like to know if there's a similar way to find out how many times a network route has been used. I'm mostly asking…
Lee B
  • 3,460
  • 1
  • 17
  • 15
8
votes
3 answers

OpenVPN allow two clients to connect to each other without using client-to-client globally

I'm running OpenVPN 2.3.7 on CentOS 6. I'm using routing (tun) and have two instance of OpenVPN. On the second instance there are two clients that I'd like to be make visible to each other i.e ping, access ports etc. They are both within the same…
James White
  • 674
  • 3
  • 18
  • 32
8
votes
5 answers

Route IP Traffic Based on Process to Different Default Routes / Interfaces

I'm trying to determine if it is possible to selectively route IP packets from a process or process group through a specific interface while all other packets are routed through another interface. That is, I want all traffic from /usr/bin/testapp to…
justinzane
  • 191
  • 2
  • 13
8
votes
3 answers

How to enable traceroute in linux machine

I'm working on something in the transport layer and after i ran our custom policies for securing the policies i'm not able to do traceroute from the linux machine. root@keystone-evm:~# iptables -L Chain INPUT (policy ACCEPT) target prot opt…
Renold Singh
  • 336
  • 2
  • 3
  • 13
8
votes
2 answers

How do I forward localhost traffic to a remote host with iptables?

I would like to set up my CentOS 6.5 box to forward connections to localhost (127.0.0.1) to the same port on a remote machine (e.g. 10.0.3.10). I've tried the iptables rule below, but when I attempt to connect, it just hangs: iptables -t nat -I…
Jonathan
  • 227
  • 2
  • 4
  • 8
8
votes
2 answers

Openvpn routing for lan to lan through tun

I am trying to setup an OpenVPN tun to connect two lan's The open vpn connection is up and working but there is a problem with my routing or nat or something. What I need is an example of what a working, routed openvpn setup should look like on the…
Alex
  • 81
  • 1
  • 1
  • 3
8
votes
6 answers

Trying to understand the correct way to create a static route in CentOS, please assist

I've been trying to understand what's the correct way to add a static route on a CentOS 6.x machine. In some forums they say to create a file named route-dev_name (for example route-eth0) with the relevant route and place it in…
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146