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

3
votes
2answers
950 views

Network interface preference

How does Linux determine which network interface to use, when both are connected to the same network? Note that this isn't a question on routing. I'm familiar with how that works. This is if, say, I ...
6
votes
2answers
873 views

1:1 NAT with several identical LANs

I want to connect several LANs located on remote buildings. The "central" site have a Linux computer running OpenVPN. Each remote site also run OpenVPN. the central site has a LAN numbered ...
1
vote
2answers
428 views

OpenVPN uses wrong IP-Address

I've installed OpenVPN on a client (behind NAT-Router) and a VPS server. The tunnel is established. However, ping is only possible from client to server. The server uses its public IP address on tun0 ...
2
votes
1answer
629 views

Allow IP packet forwarding from LAN to modem via router

In short: I'd like to be able to telnet to my modem from my PC via my router. There is a simple home router on 192.168.33.1. It is running OpenWrt. It has the following interfaces defined: br-lan ...
1
vote
1answer
280 views

Firewall/routing rule in Centos for this setup

I have two ethernet interfaces, namely eth0 and eth1. I want to implement an advanced routing rule but I am totally new to firewall/routing rules in CentOS. Here is what I am trying to do: Both my ...
4
votes
1answer
267 views

Using source routing (LSRR) - any ideas?

What I want to do is conceptually very simple, but I can't find any information or help about how to go about doing this. Basically, I want to configure my networking to use source routing (LSRR). ...
3
votes
2answers
457 views

policy routing problem with load balanced ppp connections

This my setup using Debian 6.0.6. It's role is a proxy server and a load balancer using eight 3G modems. First and foremost: Whenever a ppp connection dials it takes over the default gateway which ...
1
vote
0answers
126 views

Unable to access internet if wireless enabled

The following is my route output. eth0 is my wired network and eth1 is my wireless network. Only wired one has access to internet. If I enable wireless, I am not able to access internet, it tries to ...
2
votes
2answers
898 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 ...
3
votes
2answers
369 views

Linux: Is there a IPv6 equivalent to the IPv4 kernel option accept_local?

Since linux kernel >= 2.6.33 the kernel option "accept_local" can be modified: /proc/sys/net/ipv4/conf/${interfaceID}/ accept_local - BOOLEAN Accept packets with local source addresses. ...
1
vote
1answer
2k views

iptables forwarding and routing

In fact, this question is about openwrt and CoovaAP, but I guess it's the same in other linux distributions. I've two interfaces, a "wan" and a "wlan" interface. Is there by default any filter, ...
2
votes
2answers
2k views

How is the loopback network interface implemented?

The loopback network interface "is a virtual network device implemented entirely in software," according to another question on Unix.SE. But how is this implementation actually accomplished, and how ...
2
votes
2answers
262 views

How do I route a spare network interface through an SSH tunnel?

I just bought a Raspberry Pi and I am wanting to route an ad hoc wireless network interface fully through an SSH tunnel that was created using another wireless interface. I want to do this so that I ...
1
vote
1answer
391 views

How to provide a “guest LAN” on one ethernet device

I have an always-on machine running Debian/Squeeze with a couple of ethernet ports (it's doing various serverish jobs, including DHCP) and a LAN on each. eth0 is on 192.168.7.* and has access to the ...
3
votes
1answer
349 views

Simplest way to set up multiple subdomains to separate VMs running on single host

Problem: I´m planning to set up several virtualized centos, rhel or ubuntu guest machines on a single centos host server (most likely using KVM). Each guest VM is running an instance of a webapp + ...
3
votes
0answers
158 views

Traffic getting routed through Apache

for some reason, certain outgoing traffic on my server gets routed to the apache webserver i am running. this problem just started happening. i have the webserver set up to use vhosts, the webserver ...
1
vote
1answer
1k 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 ...
3
votes
2answers
8k views

Linux Networking routing to virtual ip addresses from a different subnet

New to linux networking, had a question about routing to virtual ip addresses from a different subnet. I have three servers (they can all ping each other): A 10.10.51.182 (connected to router ...
4
votes
1answer
3k views

Using the Wifi of a notebook via ethernet for another PC

I want to connect a PC to the internet via my notebook, which is connected to a WLAN. The setup should look like the following scheme: PC (eth0) -> Notebook (eth0) -> Notebook(wlan0) -> ...
3
votes
1answer
457 views

Routing through iptables

I have this vpn client that touches the routing table and then keeps watching it to exit if it gets touched. It is the kind of setup needed for an endpoint, such as a laptop. I want to use a small ...
1
vote
2answers
747 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 ...
5
votes
2answers
527 views

Route and “e” flag

k# route -6 Destination Next Hop Flag Met Ref Use If ::/0 fe80::8001 UGDAe 1024 0 0 eth0 [...] What does flag "e" mean?
1
vote
1answer
509 views

Having trouble with packets not making it into Fedora 16 Apache

Background: I haven't done anything with iptables in a few years... I have Fedora 16 running in a VM on VMWare, with my firewall (TomatoUSB) port forwarding to the VM. VM is at 192.168.1.155. I know ...
6
votes
2answers
1k 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 ...
1
vote
2answers
1k views

Bringing up an interface does not add default gateway to the routing table in Ubuntu

I have this in my interfaces file: auto eth1 iface eth1 inet static address 20.135.251.218 netmask 255.255.255.252 up route add default gw 20.135.251.217 dev eth1 metric 1 ...
1
vote
2answers
2k views

CentOS: Sharing WLAN for internet access

I have installed CentOS 6.2 on HP Proliant server. I want to share my USB wireless internet (Tata photon +). I am able to start internet on my server, but when I enable my LAN, I don't have internet ...
1
vote
1answer
23k 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 ...
1
vote
2answers
535 views

Adding an ip to a routing table

Is there any way I can add an ip to an interface , but interface route gets created on a routing table other than 'main' routing table in linux? For ex: If I add an IP 10.11.20.10/24 to eth0, it ...
2
votes
1answer
768 views

Routing private network to internet via 2 gateways

I have the current set up for an embedded environment: Embedded Target (192.168.0.200) -----> Virtual Machine (VMWare) (2 NIC's - 192.168.0.2 (Target Port) and 192.168.49.69 (NAT Port to host)) ...
1
vote
1answer
479 views

routing between two private networks (NICs)

I have two private networks say: 10.0.1.0/8 and 192.168.0.0/24 I have two machines with two NICs per each machine. machine1 NIC1: 192.168.0.10 machine1 NIC2: 10.0.1.10 machine2 NIC1: 192.168.0.11 ...
0
votes
2answers
432 views

SSH connection does not work while browsers do

I have the following network layout: Internet comes true fiber optics to modem. From modem LAN cable goes to router. Since that router wifi signal is weak, a LAN cable goes to another router from ...
1
vote
1answer
179 views

How can I use the same IP from the Internet and intranet?

I have an Ubuntu firewall box (Alma), at the office, with a web server on it. It looks like this: [Internet] <-> [DSL Router] <-> [Alma] | ...
3
votes
2answers
624 views

Need help with routing

I have set up a Ubuntu server, that I want to use as a router for my local office. The problem is, that I want to make 2 VPN connections, to remote branches, and then I want to route all traffic to ...
2
votes
1answer
509 views

Multiple VPN connetions, routing based on country

I want to set up a couple of VPN connections to two different countries, A and B, on my Ubuntu Server. Then I would like to set up rules based on GeoIP to determine which VPN connection should be used ...
6
votes
2answers
2k views

How to build a gateway from my Linux OS

I want to configure my Linux so that it will be used as a network router (gateway). Can anybody give me some hints on this? (links are welcome!)
2
votes
1answer
5k views

Static route in Centos 6

Here is my route -n output: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 ...
4
votes
3answers
890 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 ...
1
vote
1answer
459 views

Routing tables and default routes

I have two rules in my routing tables. The default route, which is to the gateway, and a second route which forwards everything in the network segment to * or to no gateway. Is this second rule ...
2
votes
1answer
748 views

How to setup DHCPD on two interfaces (Angstrom)

I have an embedded system running Angstrom just fine. This platform has multiple uses, one of which is to act as a home router, so it has wireless and wired network interfaces, which work correctly. ...
5
votes
1answer
603 views

What is the routing behaviour when two or more default routes?

I have two ISP at the time, connected to the same machine. I added both of them in the routing table as default. However, only one connection is used. $ route Kernel IP routing table Destination ...
4
votes
1answer
347 views

Throughput test setup with two local Ethernet interfaces

I'm currently testing the routing performance of a hardware device (DUT - Device Under Test) with the following setup (all addresses start with 192.168.): eth0 (29.2) <---> eth1 (29.1) eth2 ...
1
vote
1answer
213 views

route traffic to github through specific network interface [closed]

okey, I'm a complete NAP, so take it easy on me :) My Situation; My computer is in this stupid cooperate network of the company i work for. They have alot of policies and stuff, so its not possible ...
9
votes
2answers
11k 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 ...
2
votes
1answer
363 views

Can I use 2 WANs on DD-WRT?

I bought TL-WR1043ND and flashed it with DD-WRT. Now Im wondering if it's possible to use physical WAN port and wireless client WAN for internet usage and at the same time broadcast SSID for wired and ...
2
votes
0answers
384 views

Why are packets not moving forward? [closed]

I have a server with forwarding turned on. I placed an iptables LOG target in the PREROUTING, INPUT, and FORWARD chains of the mangle table. I can see the LOG messages from PREROUTING, but not INPUT ...
2
votes
1answer
1k views

Routing in OpenVPN between a private network and a client

I'm trying to setup OpenVPN between a private network and home clients that connect to it. (The clients don't need to connect to each other). The network topology is a little interesting. There is a ...
2
votes
1answer
2k views

Static routes in HP-UX

I need to set static route in HP-UX. I edited /etc/rc.config.d/netconf file and added new entry for my route: ROUTE_DESTINATION[1]="10.105.2.0" ROUTE_MASK[1]="255.255.255.0" ...
2
votes
2answers
660 views

use iptables to allow incoming connections to some computer on port XYZ?

This is what I have: iptables -i em1 -A INPUT -j ACCEPT -p tcp --dport 9001 -v. If I want to accept incoming connections on port 9001 at this (127.0.0.1, or on the network 192.168.1.143) address, ...
6
votes
2answers
6k views

How to refuse routes that are PUSHed by OpenVPN server?

When I establish an OpenVPN client connection over the Internet to our corporate OpenVPN server, it pushes several static routes. Unfortunately, these routes break some connectivity within my local ...
8
votes
2answers
10k views

Use ssh with a specific network interface

I'm using openconnect to connect to vpn. After entering my credentials, I get this: POST https://domain.name/... Got CONNECT response: HTTP/1.1 200 OK CSTP connected. DPD 30, Keepalive 30 Connected ...