Routing (in IP-based networks) is the process of selecting paths in a network along which to send network traffic.

learn more… | top users | synonyms

10
votes
3answers
19k views

Output traffic on different interfaces based on destination port

My question is basically the same as Only allow certain outbound traffic on certain interfaces. I have two interfaces eth1 (10.0.0.2) and wlan0 (192.168.0.2). My default route is for eth1. Let's say ...
8
votes
1answer
1k views

Dual network connection

I have a usb cellular modem and a Home LAN connection on my Ubuntu 10.10 box. Both work independently. I want to know how to have both connected at the same time, and be able to specify which ...
4
votes
3answers
1k views

Redirect traffic through vpn on an as needed basis

My problem is really simple yet it sounds complex, but I have zero to none experience with this. I have set up a box using gentoo which has its own semi-static WAN-IP and acts as router for my LAN. I ...
9
votes
2answers
21k views

iptables --set-mark - Route diferent ports through different interfaces

Short story, 3 interfaces, eth0 (LAN), eth1(ADSL), eth2(4G). eth0 -> eth1: Works (ports 80, 443, 4070) eth0 -> eth2: Doesn't happen This is a graphical representation of the idea: Port 80 & ...
3
votes
1answer
34k views

Adding two default gateways in Debian interfaces file

This is my interfaces file: auto eth0 iface eth0 inet static address 192.168.1.10 netmask 255.255.255.0 gateway 192.168.1.1 auto eth1 iface eth1 inet static address 192.168.2.10 ...
4
votes
3answers
3k views

Send duplicate packets over two Internet connections

I need to duplicate an RTP stream over two different (non-reliable) Internet connections. On the receiver side, I will probably run a custom program that will use a buffer and rebuild the stream ...
3
votes
2answers
472 views

Redirect ALL packets from eth1 & eth2 through a SOCKS proxy

Is there a way to redirect all traffic, UDP and TCP, coming to and from eth1 and eth2 through a SOCKS proxy (Tor) which then passes it through eth0? eth0: Internet in - leads to the main router, then ...
0
votes
1answer
149 views

routing based on source IP [closed]

Is it possible to configure routing based on source ip? For example, if I have source IP 10.0.0.0, then all the traffic will go via the specific interface or would be sent to specific default gateway. ...
14
votes
2answers
11k views

Reply on same interface as incoming?

I have a system with two interfaces. Both interfaces are connected to the internet. One of them is set as the default route; a side effect of this is that if a packet comes in on the non-default-route ...
13
votes
3answers
1k views

Can I limit a user (and their apps) to one network interface?

As the title really. I've actually got two scenarios to apply this: Multiseat Desktop: two network connections both with internet gateways and two accounts doing bandwidth-intensive tasks on each. I ...
5
votes
2answers
2k views

Routing for multiple uplinks/providers

I have a PC with two internet connections. The first one is an Ethernet interface to connect to my local network and access internet via my router. The second one use a GSM modem to connect with ppp. ...
5
votes
1answer
11k views

What is kernel ip forwarding?

I have seen on many blogs, using this command to enable IP forwarding while using many network security/sniffing tools on linux echo 1 > /proc/sys/net/ipv4/ip_forward Can anyone explain me in ...
4
votes
1answer
1k views

Routing public ipv6 traffic through openvpn tunnel

What I'm trying to do is to route IPv6 traffic through a vpn tunnel. That way, I should be able to use IPv6 in a network that doesn't support IPv6. I have a VPS which has an IPv6 block assigned. Part ...
4
votes
1answer
2k views

multigateway routing for specific src port

I have two gateway to access internet, somehow I want to load balancing it, so far its working, but some connection or service need persistent gateway IP to be used, so the client should never change ...
7
votes
2answers
2k views

linux multiple internet connections load balancing with fail handling

I have two ISP connections and need automatic load balancing between them. I also need to handle failed connections (not use one that does not work). First link is a PPTP connection (ppp0), second is ...
4
votes
1answer
362 views

Why is this static route not taking effect?

Original Question I am running Ubuntu and network manager. I have two different interfaces, eth0 and eth1. Network manager has (as far as I can tell) correctly added this manual route: ~$ ip route ...
3
votes
4answers
32k views

How can I change the default gateway?

Currently I'm running a FreeBSD 9.1 and the default gateway is already configured in the rc.conf. rc.conf: defaultrouter = "10.0.0.1" But now I want to change the default gateway without rebooting ...
3
votes
2answers
1k views

Xen, bridge and multiple IPs on CentOS

There's a new server that is assigned 5 IP addresses. I want to use Xen to run several VMs with various services. This is my first attempt to install Xen, I use this tutorial as a guideline. Stuck ...
2
votes
4answers
3k views

Make nslookup use specific interface

On my computer I have two network cards. Both are using different Internet Providers service. Both Internet service provider have different DNS server and their IP address are known to me. I want to ...
2
votes
1answer
3k views

Find connections per ip on an OpenWRT router?

How can I list the number of connections per client on the FORWARD chain of an OpenWRT router? I know how to list the number of connections per IP address on the router: netstat -ntu | tail -n +3 | ...
1
vote
1answer
2k views

Redirect http using iptables for an ip range

I have a range of ip addresses (10.13.13.10-19) that I want to redirect all outgoing http traffic to an internal webserver. So if someone in that range tried to access any site, the html from my ...
1
vote
2answers
1k views

Different domains for multiple VM's on host with one WAN IP

I've got only one WAN IP address bound to KVM host system and multiple VM's with internal IP's, say, 10.0.0.1/28. On the other hand I have multiple domain names bound to host system WAN IP. The ...