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

0
votes
3answers
217 views
+100

How to route 3 computers in a wireless ad-hoc network?

I have 3 computers: 192.168.2.1, 192.168.2.2, 192.168.2.4 connected into an wireless ad-hoc network. I want all the traffic from 192.168.2.1 to go through 192.168.2.2 when it talks to 192.168.2.3. ...
5
votes
1answer
4k views

Understand the Route table

I just setup the OpenVPN and it is working as expected. However, the routing table of the client is confusing me to no end. Here is the route table: # route -n Kernel IP routing table Destination ...
1
vote
1answer
27 views

Add route from internal network to external network

I am using a box running Arch as my router and firewall (with shorewall). Recently, I tried to add another network onto the system, which failed horribly. After putting everything back where it was ...
0
votes
0answers
6 views

radvd “received RS or RA on $iface but $iface is not ready and setup_iface failed”

Clients don't get theirs ip`s. Errors in /var/log observed: version 2.11 started May 25 15:51:22 user-VirtualBox radvd[10570]: Starting radvd: radvd. May 25 15:51:24 user-VirtualBox ...
1
vote
1answer
35 views

Is there a way to send packets through one ISP and receive answers through another one?

I just finished building my first load balancer that combines two different ISPs. This mechanism works just fine, but it's a little bit limited because a connection can't simply utilize both ISP at ...
1
vote
1answer
34 views

Two ISPs and multipath gateway configuration

I have two different ISPs. I want to set some kind of load balancing setup that will distribute packets to those providers. I know this can be done using different routing tables, but I wanted to use ...
2
votes
1answer
2k views

forward packets from one interface to another interface using iptables

I have an embeded system with 2 interfaces e0 and m0, whose ips are 10.0.0.20 and 192.168.0.20, respectively. Incoming packets into e0 have an ip of 10.0.0.10 and should be forwarded to m0 interface ...
0
votes
1answer
800 views

two NICs in the same subnet— need to set up routing

I have a tricky case: +---+ +----+ |D1 +->eth0---------<-eth0-+D2 | | | | | | +->eth1---------<-eth1-+ | +---+ ...
0
votes
0answers
24 views

ubuntu 14.04 create route to multicast stream server and have access udp://239.255.0.169:5500

My server is ubuntu 14.04 server edition and I am trying to re stream existed multicast stream by my server : Multicast stream server is using udp://239.255.0.169:5500 destination ip. On my side I ...
2
votes
1answer
59 views

How to add marks together in iptables (targets MARK and CONNMARK)

When you want to mark a packet in iptables, you would generally add the following line to your firewall script: iptables -t mangle -A POSTROUTING -p tcp -m multiport --dports 80,443 -j MARK ...
0
votes
0answers
27 views

Set up a preferred network interface on Debian/Raspbian

I have a Raspberry Pi that is connected by Ethernet to DSL (eth0) and I also have some 3G/4G dongles that I am testing for fallback, in case the RPi loses the wired connection. In other words, I would ...
0
votes
0answers
18 views

How can I set up my ethernet on a fresh install of Fedora Server 23?

I am using Fedora Server 23, and cannot get my ethernet connection to work. It works fine on Ubunutu, OS X, and Windows 7 on the same machine. [root@localhost etc]# ifconfig ens5: ...
4
votes
1answer
2k views

How do I configure OpenVPN as a Gateway client for Witopia?

I have the following setup: Witopia SSL account Synology 409 NAS (with OpenVPN and Apache etc) PS3 Mac Apple AirPort router (configured for NAT) Locked IPT-box (using DHCP and NAT traversing) ...
1
vote
1answer
31 views

bridge-routing and martian packets

i am experimenting with routing a bit, and now i have a problem i cannot solve by myself eth0 | | ...
3
votes
0answers
29 views

No “unreachable” response for an outgoing TCP connection when using fwmark and policy routing

I would like to route locally-generated traffic: to a TCP port "A" of host "H" via the interface "A", to a TCP port "B" of host "H" via the interface "B". Interface "B" is sometimes unavailable. ...
5
votes
2answers
519 views

How can I use Linux as a Gateway?

NOTE: If client devices (computer B in this example) want to obtain internet through the gateway computer, maybe they still need to configure nameserver resolution. This is not explained here ...
6
votes
2answers
3k views

What is the interface scope (global vs. link) used for?

Routing table entries have an attribute scope. I would like to know how the change from global to link (or the other way round) affects the network system.
0
votes
0answers
21 views

Trace route taken through multiple simulated link clicks on the Linux command-line

I have a Twitter post which links to a website. The website has a counter on it that checks the number of people who have accessed the page. However, I noticed that when looking at the Twitter ...
2
votes
1answer
34 views

Remove route from routing table by position

I know how to delete a route from a routing table providing all of the route's details (ip r d ...). Is there any way to list routing table with some kind of indexes and then delete from its ...
6
votes
4answers
6k views

Trying to connect to gateway in static ip network

I have arch-linux-arm running on a raspberryPi. The network I am in uses static IPs. gateway IP is 192.168.178.5 IP for my device is 192.168.178.201 To connect to the internet I use: ip addr add ...
4
votes
2answers
751 views

Policy routing 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. Whenever a ppp connection dials it takes over the default gateway which is ok but it also ...
3
votes
1answer
5k views

multiple default gateways for alias interfaces (SOLVED)

Alias interfaces defined in /etc/network/interfaces cannot have multiple default gateways. Unfortunately I would like to use the same interface to access 2 different nets, and I need to define 2 ...
0
votes
2answers
30 views

Configuring 2 NIC with 2 gateways

Lets say my router has a LAN (192.168.0.1/24) and a DMZ (192.168.1.1/24). My computer has 2 NICs, one for LAN and one for DMZ. How can I configure my routes so that it uses both gateways instead of a ...
5
votes
1answer
4k views

Debian, two network cards - “no route to host” on eth1

I have added a secound nic in a debian box. That nic is ment for doing some test stuff, so those devices connected should just be able to access the debian box or be accessed from it. To set up the ...
7
votes
1answer
2k views

What do I need to add a virtual IPsec adapter?

I'm trying to set up an IPsec connection manually from the console with iproute2. What I need is a virtual interface (at best, a virtual IP address could also be sufficient) that IPsec-transforms ...
0
votes
0answers
64 views

Centos 7 persistent static routes for any interface

I am trying to set up some static routes in a CentOS 7 box. The official RHEL says it is possible to add files in /etc/sysconfig/network-scripts/route-interface. This approach works, however I need ...
1
vote
0answers
46 views

How add configure to add default gateway from different subnet?

I am working in a host in LAN segment of 192.168.148.X with subnet mask 255.255.255.0. The LAN should be configured to use 192.168.128.1 as default gateway. What I normally do is to issue following ...
3
votes
1answer
88 views

PPTP VPN not working with Linux router

ORIGINAL: I've just switched from an old Linux install (Debian squeeze) to a new one (Linux Mint 17.3) for my router (I am using a full desktop PC with a Linux install as my router). The Linux PC ...
8
votes
7answers
118k 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 ...
8
votes
2answers
3k views

Bind unix program to specific network interface

Question: How do I launch a program while ensuring that its network access is bound via a specific network interface? Case: I want to access two distinct machines with the same IP (192.168.1.1), but ...
0
votes
1answer
34 views

Show kernel routing exception entries (FIB)

Linux 3.6 removed the ipv4 routing cache (commit). Changelog says: Remove the ipv4 routing cache. Now lookups go directly into the FIB trie and use prebuilt routes cached there. According to ...
1
vote
0answers
45 views

How to route packets between private networks on linux?

Hello! I need to connect 3 networks. Here is what I did: for the "left" host ip route add default via 192.168.26.4 ip route show default via 192.168.26.4 dev enp0s3 for the "right" host ip ...
1
vote
0answers
25 views

Why does a connection from my LAN to my public IP address fails?

I have an OpenVPN server on server. It is available from Internet via a two NATs: first the ISP box relays to 192.168.0.10, then 192.168.0.10 relays to 10.10.10.254 (relays = DNAT). I can connect ...
0
votes
1answer
63 views

How to route IPv4 traffic from an interface to another

I connected my Pi to my home computer through an Ethernet link. My computer is connected to the Internet by a wireless connection. And I'd like to route all Internet traffic from my Pi by my computer. ...
1
vote
0answers
41 views

How to make load balancing work from the pfSense box itself?

pdSense is a special distro of FreeBSD for routing. It supports limited multi WAN load balancing, i.e. it is possible to configure pfSense so that each next request will connect via different WAN ...
1
vote
0answers
14 views

OpenVPN maintain connection state during tunnel reconnect

Sometimes I want to do a short maintenance like restarting a tunnel, all connection running on top such as file transfer...etc will receive connection lost signal, is it possible to maintain those ...
3
votes
1answer
89 views

Routing on per application basis

I'm using a proprietary VPN client on my Ubuntu Linux work station (Astrill) which support several types of VPNs. One of these VPN types is OpenVPN, which creates a virtual interface tun0 when ...
9
votes
1answer
3k views

Change remote host IP address without losing control (Linux)

How can I change a remote host primary IP address without getting disconnected at all (without being in a "no IP addr" state). The matter is poorly discussed on Internet (according to my research). ...
1
vote
1answer
25 views

How Would I Appropriated Add this Route?

I've got an ASUS RT-AC66u running an OpenVPN server working fine. But on my debian server I have to add a route or else I get no responses. Just curious if there is a way to add the route to the ...
3
votes
0answers
16 views

Routing policy is not working

I have an Access Point with OpenWrt. On other host of the same LAN there is a squid (IP Address 192.168.80.148). I'd like to route packages with destination port 80 to 192.168.80.148. So I have ...
1
vote
0answers
36 views

Browser issues with VPN

I have a VPN setup which usually works completely fine. However, when I connect to my VPN server via some wifis, Firefox and Chrome seem to run into issues and aren't able to open websites anymore. So ...
1
vote
1answer
54 views

Which components update routing table?

I am experiencing strange behavior on Arch Linux, when various virtual network interfaces lead to undesired automatic updates to the routing table. For example, when I start KVM. Before (network is ...
2
votes
0answers
15 views

ipv6 rule priority duplication

When I add ipv4 policy rules using ip rule add the resultant rules get added to the end of the policy table with decrementing priority from 32767 eg: # ip rule add lookup 8 # ip rule add lookup 9 ...
0
votes
0answers
31 views

Centos static route

I have a load generator running on a Centos client and I need to alter the routing table on that client to send all traffic destined to a particular server(192.168.7.215) through a WAN ...
0
votes
1answer
60 views

Routing traffic with multiple NICs on Ubuntu

I currently have a workstation set up with two NICs on separate networks. My current setup is this: eth0: LAN eth1: Outside internet I have a default gateway set up on eth1 to reach the outside ...
3
votes
0answers
123 views

iptables and ip forwarding for failover

hi i have an ethernet nic interface with 4 additional virtual interfaces (failovers) all configured with public ip4 (IP-1 to IP-5) / netmask 255.255.255.255 / broadcast addr same as ip: eth0 ...
0
votes
0answers
43 views

pptp: possilbe to push routes to windows client?

I use pptp (PopTop) as default from Ubuntu 15.10, I try to push some routes to windows clients. Ad I 've read, it should be possible using a dhcp server instead of the internal address configrations. ...
2
votes
6answers
6k 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 ...
0
votes
0answers
24 views

Setting up VPN on Linux

I have problems setting up networking on my laptop over VPN. I need to connect from my home to VPN which has the same IP address space as my home network. My network: 192.168.0.0/24 Other side of ...
-2
votes
1answer
23 views

Execute command with specific routing (ip/iptables)?

I saw great solution for binding application based on some routing table alias... not sure now what it was, but for sure with ip, route or iptables tools... anybody knows the procedure? What was the ...