Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [routing]

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

0
votes
0answers
21 views

Routing packets to a container that has a destination that is an interface's IP, stopped working in recent kernels:

I have a flannel-based k8s system with a container at 10.233.64.18. I also have an interface ens224:1 with the IP address 10.5.2.11 With older kernels (3.x) I'm able to force packets destined to 10....
0
votes
4answers
98 views

How can a computer assign an IP address to itself? Aren't IP addresses assigned to computers by routers?

I can do this: /sbin/ip addr add 172.17.0.12 dev eth0 This possibility conflicts with my (apparently overly simplistic and untrue) mental model of how assigning IP addresses work. According this ...
0
votes
1answer
29 views

Configuring Linux Mint as a Gateway

My trusty Slackware box died, and I had to replace it with an already built Linux Mint v18. I was hoping this would be a drop-in replacement, but routing has changed over the years with iproute2. I ...
1
vote
1answer
19 views

What is a Linux IP route without outgoing network interface (RTLINK answer lacking `RTA_OIF`) and how do I create one for testing?

When using RTLINK to query the available IP route from a (network-namespaced) Linux kernel, I noticed that on one test system RTLINK returns a route without a RTA_OIF attribute, that is, without an ...
0
votes
0answers
26 views

OpenVPN: Access client LAN from another client

I am using an ASUS router as a VPN client, and would like to access the devices connected to the router from another VPN client. The router has a static VPN IP of 172.27.200.50. The internal IP of ...
-1
votes
0answers
25 views

Two default gateways and outgoing traffic

I have two WAN interfaces on a Linux server, both default gateway. I want to select in the application the interface to the TCP connection (for example once ens3, once ens7). From the application, I ...
0
votes
0answers
15 views

Simple VPN routing configuration

I have a very simple VPN setup using tinc that works perfectly well. I would like to be able to route WAN traffic through one host, but I cannot seem to figure out how to get the routing table ...
0
votes
0answers
16 views

How to route only outbound traffic through openvpn server from a Linux machine as a client

I am trying to find a way for routing all outbound traffic or at least HTTP traffic through an openvpn server from linux machine. I have already installed openvpn and tried to run it as follows ...
1
vote
0answers
26 views

Return Packets Not Being Routed On A Linux Router I Built

I've created a router running Raspbian on a Pi and connected a bunch of clients to it. It's just a toy project and I only care about routing between the nodes, so I'm not using NAT or anything like ...
2
votes
1answer
95 views

Routing traffic through VPN using Raspberry PI

I have a setup like this: - Raspberry PI connected to router via LAN cable - Created a bridged connection between eth0 and wlan0 - using hostapd for wifi hotstop - configured l2tp/ipsec connection ...
0
votes
1answer
54 views

Routing traffic via different interface based on destination

I'm playing with iptables and routing. So I have an Ubuntu machine with 2 interface eth0(192.168.2.100, gw 192.168.2.1) and tun0(10.7.7.2, gw 10.7.7.1). I want traffic to this site ifconfig.me go via ...
1
vote
0answers
24 views

virt-manager + RDP = no connection [closed]

Trying to setup shareable folders between arch linux and win10 via RDP(remmina) but with no luck Guest is bridged to my main router, as well as host, but I haven't ping between two systems PS: I ...
1
vote
0answers
36 views

Run script when interface change it's status

I need static route when interface is up and delete this route when it goes down, but I have no interface config file to describe shell-command in it. I have IPSec tunnel created with LibreSwan and ...
0
votes
0answers
19 views

How to Prevent Connman from adding Default Route

I need to be able to prevent/configure Connman to never add any default routes. This is because I have multiple network interfaces and there are certain rules around when each should be configured ...
0
votes
0answers
36 views

Linux Routing Questions

i have an Question About Routing on Debian Stretch 9.5. My planed Configuration: 1 Server with 2 External IP's i call it: 192.168.0.2 and 192.168.0.3 an 1 Internal IP 10.0.16.5 Now my config Looks ...
2
votes
1answer
79 views

IPv6 routing Public to a subnetwork

Doing Linux/Debian IPV6 Routing from my vendor to a client not working. IPV4 NAT/routing is reliably working using iptables and dnsmasq, however, even with forwarding enabled on IPv6 I can't make it ...
0
votes
1answer
78 views

CentOS 7 Static Routing

I want to create a static route through a CentOS 7 Server (so that a print server can access a printer). CentOS 7 Server has two interfaces: em1 (10.0.0.5/24 faces the print server) and em2 (10.0.0.6/...
2
votes
0answers
30 views

User specific hostname

I have a linux and bsd system with multiple (virtual) network interfaces. On those systems there are multiple users. Each user should use its own interface and therefore address. Is it possible to ...
2
votes
0answers
32 views

Linux IPv6: Specifying policy routing table for default gateway learned from a router advertisement?

Is there any way to tell the kernel which policy routing table should receive the default route learned from an IPv6 router advertisement? My home network has native IPv6 service from Spectrum and a ...
0
votes
0answers
79 views

Debian 8 Persistent Route

I dont know how to add a permanent route. I have a network with an IP but the GW is in a different ip range altogether. 1.2.3.4 (IP) 5.6.7.8 (GW) need to send traffic trough here if i run this ...
0
votes
0answers
40 views

Can I assign a virtual interface of wireless to a network namespace?

I am trying to make a VPN router while keeping the host itself accessing Internet without VPN. The host has only one NIC which is wireless. So I have added two virtual interfaces via iw phy phy0 ...
0
votes
1answer
40 views

How to set persistent static routes in KDE desktop system with NetworkManager and systemd?

I have two NICs. In NetworkManager > IPv4 > Routes, I checked "ignore automatically obtained routes" for both interfaces. Then I used these two commands: $ sudo ip route add default via 192.168.1.1 ...
0
votes
0answers
17 views

OVPN/OpenVPN Including multiple machines on the client side when using a routed VPN (dev tun)

I'm going to build my own firewall using physical debian machine. This time it's a NAT-by-NAT conifguration until everything works fine. (Not to disturb primary network.) I got a Debian vServer ...
0
votes
1answer
39 views

How to find out the interface which is being used for internet?

I have multiple network interfaces and I am not sure which interface is being used for the internet connection. I tried the methods which are listed in the question How to find out which interface ...
0
votes
1answer
72 views

OpenVPN how to add route to AWS Load balancer

I have a load balancer in AWS, I want to restrict access in its security group to be accesible only from my OpenVPN server. Now, I would like to use push "route a.b.c.d 255.255.255.255" in server....
1
vote
1answer
21 views

How to specify a route among three interfaces in a router

I have this setup: 10.5.128.150 Ubuntu Ubuntu eth2 <------> server (10.5.128.154) client eth1 <----> eth1 ...
1
vote
1answer
33 views

Why isn't `route` accepting target argument with CIDR format?

I noticed these 2 command formats give different results: $ sudo route -v add -net <IP> netmask 255.255.255.255 gw <gateway> # succeeds without outputting text $ sudo route -v add -net &...
0
votes
1answer
97 views

How to simultaneously connect to two different networks via WiFi access points (laptop with one WiFi card)

I wish to use a laptop and simultaneously connect wirelessly to an intranet and to the Internet. Assume the subnet IP address ranges are 192.168.0.X for the network with Internet access and 10.10.0.X ...
0
votes
1answer
35 views

Iptables connecting between two subnets [duplicate]

I have a Linux machine (which I want to use as a gateway) and two other machines A and B. Gateway machine has eth0, eth1, and eth2. eth1 connects to machine A and eth2 connects to machine B. I want ...
1
vote
1answer
30 views

Output of `ip route show` seems incomplete: no default route, but internet is reachable anyway

On my Android phone, where I have a Debian system running in userspace (apt, GNU tools, and other software runs in a chroot, accessible through ssh), the routing table seems incomplete. Output of ip ...
0
votes
1answer
33 views

Change outbound IP - centos

i have a server (linux/centos) and my default ip is: 111.111.111.111 so i bought another ip (ip failover) 222.222.222.222 if i visit in browser 111.111.111.111 or 222.222.222.222 its opening same ...
0
votes
2answers
53 views

How to make routing changes permanent

I have the below routing rules to apply once tun0 comes up (which is a openvpn tunnel). These rules help push some clients on my network outside the VPN and direct to the internet. What is the best ...
0
votes
2answers
82 views

How can I validate parameters before calling “ip route add”?

I am using a program which sets etcd parameters which are expanded to calls to "ip route add ..." and I need those calls to succeed without error. The template uses a format such as: ip route add &...
0
votes
1answer
45 views

Network interface routing when using VPN

I want to connect to a VPN but not send all traffic through it. Here is how my network is setup with the VPN redirecting all traffic. This is the default with the vpn config not changed. $ ip rule ...
2
votes
2answers
309 views

How can I override systemd's choice of default route with two network interfaces?

Update: /etc/network/interfaces does not exist because I am using netctl profiles. I set up a VirtualBox instance running ArchLinux with two network adapters. Adapter 1 (eth0) is attached to a NAT (...
0
votes
1answer
123 views

Infiniband interface doesn't route IPoIB traffic

I have blocks of hosts that I'm provisioning using Puppet in exactly the same way, they have identical hardware (same blade chassis), and are definitely connected in all the same ways where interfaces ...
1
vote
1answer
123 views

OpenVPN or IPtables for split tunnel control?

I have been plugging away but not luck, but from what I understand what I am trying to split tunnel. I have a VPN in place (and working) where all traffic from my LAN heads out to the internet via ...
0
votes
0answers
50 views

Nodogsplash not showing landing page

I'm trying to set up a Raspberry Pi 3 as a bridge/captive portal between the built-in ethernet port, eth0, which will be connected to an upstream router and a USB ethernet port, eth1, which will be ...
1
vote
1answer
33 views

Routes removed when connecting to multiple VPN connections

When I connect to multiple VPN connections, I lose routes (of the first connected VPN).. Setup 2 strongSwan servers - local_ts: 10.0.64.0/20 - local_ts: 10.0.80.0/20 1 osx client Routing ...
0
votes
0answers
19 views

Routing issue when setting rules [duplicate]

I have two interfaces on my ubuntu 12.04: eth1 10.206.0.1 and eth2 10.206.0.2 in the same subnet. my goal is to create rule that- if ARP request comes to eth1, eth1 response back with its MAC ...
1
vote
0answers
160 views

Ubuntu 16.04 machine as Router

I have to make my ubuntu PC as router, because I am not allowed to connect any router to University network. I have a PC (ubuntu 16.04) with two NIC cards. eth0 is connected to university network (...
1
vote
1answer
507 views

How can I use ISC KEA DHCP (DHCPv4) server to push routes to clients?

QUESTION: I have an infrastructure with 5 servers (Server #1, #2, #3, #4 and #5). I am trying to use a server (Server #5) with ISC KEA DHCP (DHCPv4) ( https://kea.isc.org/wiki ) to push routes to ...
0
votes
0answers
18 views

OpenVPN Manual Configuration on Router

I've managed to install Chromebrew and build openVPN from source on my Google WiFi router. I can successfully connect to sites through the VPN from the router directly using links (text-based web ...
1
vote
1answer
80 views

Linux VRF and Multicast IP

I am attempting to use VRFs in Xubuntu 18.04, but I'm not having much luck when it comes to multicast IP addresses. I have been using https://www.kernel.org/doc/Documentation/networking/vrf.txt as a ...
0
votes
0answers
23 views

Adding gtp0 route (tunnel) makes eth0 connectivity down

I am have a code which creates gtp tunnel between client (UE) and gateway router (192.168.1.1). Whereas eth0 of host computer (192.168.1.62) is connected to gateway router and another computer (192....
0
votes
0answers
97 views

If I use curl --interface eth1 will it specifically use eth1 no matter the metrics?

Look at my routes: Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0 0.0.0.0 192.168....
0
votes
1answer
35 views

source-based IP routing breaks access via LAN

I have a Linux Mint 18.1 desktop on my home LAN. I run PIA VPN on this computer, and also run ssh server listening on port 22. I am able to ssh into this computer from other computers on the LAN using ...
0
votes
1answer
116 views

How does an OpenVPN tune in all the traffic going into tun0?

First of all, I understand that the kernel routing table makes all the outbound traffic forwarded to tun0. However, they're NOT going to the IP address that the local tun0 interface has (e.g., 10.13....
1
vote
2answers
524 views

How to route to a gateway on different subnet? [closed]

My network is on 10.3.4.x/24, with my router on IP 10.3.4.254. I need to ssh access my server on IP 10.3.4.100 but when I set up the server I forgot that I restricted ssh access to 192.168.x.x IPs ...
0
votes
1answer
32 views

Rerouting outbound traffic

Can I reroute outbound traffic from a physical interface to a virtual interface (created using ifconfig)? Specifically, the goal here is to reroute all outbound traffic from a physical interface (...