Skip to main content

Questions tagged [iproute]

Questions that include employing tools of the IPROUTE2 Utility Suite, especially ip and tc.

Filter by
Sorted by
Tagged with
1 vote
1 answer
40 views

How to route between three containers connected by two networks in series

I'm running into some issues with routing between docker networks. Hence, I broke the problem down into a simpler case but it is still not working. Can you tell me what I am doing wrong? The Setup ...
APlessner's user avatar
0 votes
1 answer
50 views

Isolated linux bridge interfaces can't ping neighbours

I'm trying to do a learning experiment with linux bridges. I wan't to create an isolated bridge on host without namespaces with the ability to debug interface connectivity. I want to be able ping ...
Dmytro Malovanyi's user avatar
0 votes
1 answer
53 views

Virtual network interface and route(s) to bypass VPN

I'm frequently connected to a system-wide VPN which I need to bypass for certain applications. On my home network I currently run a SOCKS proxy on another box which I use, for example, in a separate &...
kontextify's user avatar
1 vote
1 answer
57 views

List openvswitch virtual switch with ip command

I've configured openvswitch virtual switch and can list it with ip command as follows: # Show all interfaces ip link Output: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN ...
metablaster's user avatar
0 votes
2 answers
27 views

Route traffic to device with a static IP address via specified interface - not working?

I have a single device which I have configured with a static IP address (192.168.1.16) and it is wired directly to the 4th port (enp4s0) on my Ubuntu Linux PC. The m/c is also connected to my LAN via ...
user3314691's user avatar
0 votes
1 answer
41 views

Use VPN connection only for selected applications

I am trying to follow: https://superuser.com/a/1262250/41337 but I cannot make it work. I do: interface=eth0 down() { ip netns delete myvpn ip link delete vpn0 iptables -D INPUT \! -i ...
Ole Tange's user avatar
  • 35.8k
0 votes
1 answer
23 views

Forcing container to route outbound through VPN - source-based routing not working

I need to ensure outbound traffic from a specific (Docker) container is tunneled through my (WireGuard) VPN (running on my VPS) to exit to the Internet with my VPS external IP, but I am not being ...
LaXiS's user avatar
  • 1
0 votes
0 answers
140 views

How to use AFWall+ to forward packets through a wireguard VPN to a tethered device?

situation is pretty simple, but I've spending the last 3 days trying to find a solution to this with no luck. I have a printer at home that I need to have access to from my laptop. The printer is in a ...
Daniel Cohen's user avatar
1 vote
1 answer
99 views

How exactly does Linux use the prefix length assigned to network interface?

I assigned IP address 192.168.0.1/24 to eth0 in two ways. A. Adding 192.168.0.1/24 as usual # ip addr add 192.168.0.1/24 dev eth0 # ping -c 1 192.168.0.2 PING 192.168.0.2 (192.168.0.2) 56(84) bytes of ...
Akash Rawal's user avatar
3 votes
1 answer
1k views

Meaning of prefix length with ip addr add noprefixroute

When assigning an ip address to a network interface with ip addr add noprefixroute, what effect will the specified prefix length have? When noprefixroute is not used, the prefix length is used to ...
p0ny's user avatar
  • 133
0 votes
0 answers
24 views

Centos 7 Policy Based Routing not working CEntos 6 no problem

Centos 7 Policy Based Routing not working CEntos 6 no problem How can i transfer my static based routing policies from Centos 6 to 7 ... I have two WAN ip/gateways, 1 LAN ip address on on NIC . . ...
user3265051's user avatar
0 votes
1 answer
78 views

Where does `ip addr` get its data from?

I looked at the source code and am stuck after line 2269. I have a feeling that just like route, this utility also, is using the procfs filesystem but I can't quite put my finger on it.
kesarling's user avatar
  • 159
0 votes
1 answer
90 views

How does the "route" utility make sense of the data in /proc/net/route?

result of cat /proc/net/route: Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT wlo1 ...
kesarling's user avatar
  • 159
0 votes
0 answers
20 views

pushed openvpn client routes makes the http-proxy server to stop functioning, ip route advice required

I have both a proxy server and openvpn client running on an openWRT router, I have to setup a proxy server on the router and then connect the OpenVPN client running on the same router, because the ISP ...
osiaso 's user avatar
0 votes
0 answers
36 views

How to create a second GUE tunnel on a different port

How can multiple GUE tunnels be created in the same (default) network namespace with the same remote IP address, but different ports? So far, I've been successfully able to create exactly one GUE ...
randunel's user avatar
  • 101
0 votes
1 answer
111 views

Outgoing docker packets not respecting routing rules

I have a private docker host (A) connected via a Wireguard tunnel to a public "router" in a cloud environment (B). Wireguard: (Docker Container) eth0 172.17.0.2 | docker0 172.17.0.1 (A) eth0 ...
TheChubbyPanda's user avatar
3 votes
1 answer
86 views

Why can the lifetimes reported by ip address be slightly higher than the content of a received IPv6 Router Advertisement?

I'm currently investigating a strange network issue. Consider the following IPv6 Router Advertisement (note the prefix lifetimes, 5400 and 2700, respectively.): $ rdisc6 -1 wlan0 Soliciting ff02::2 (...
dialer's user avatar
  • 143
0 votes
1 answer
59 views

Policy based routing cause NAT not to work correctly

echo "200 rj45" >> /etc/iproute2/rt_tables echo "201 WIFI" >> /etc/iproute2/rt_tables ip route add default via 192.168.5.9 dev eth0 ip rule add from 192.168.5.8/24 ...
Carve8851's user avatar
0 votes
0 answers
72 views

Forcing packets through a TUN interface on Mac?

I am wanting to build a toy VPN server/client. This isn't impossible to setup on Linux due to the beautiful iproute2 package and granular routing control. However, on Mac the experience has been ...
Ryan's user avatar
  • 1
0 votes
1 answer
98 views

Why does `ip route show` not produce any output in my script from systemd service

Service.. [Unit] Description=testing Requires=network-online.target After=NetworkManager.service [Service] SyslogIdentifier=testing Type=oneshot ExecStart=test.sh [Install] WantedBy=network-online....
user avatar
0 votes
0 answers
304 views

Can't add secondary gateway for secondary interface in Ubuntu 22.04

I have two interfaces and both of them have a public IP address. One of them (eth0) is primary and the other one (eth1) is secondary. I'm trying to setup it through netplan + iproute2. When I was on ...
Semyon Bayandin's user avatar
0 votes
1 answer
60 views

docker bridge can't reach external address defined as `route via`

I have 3 raspberry pi in a daisy-chain network, with ip routes and iptables accept fwd - all three hosts can reach each others: A <--> B <--> C However a container from docker-compose ...
earcam's user avatar
  • 101
2 votes
1 answer
169 views

Can't ping devices on LAN

I've got 2 Access Points attached to my laptop's ethernet port via a PoE switch. I've assigned static IPs & names to them with dnxmasq (successfully, I believe). However, ping and ssh say they're ...
Tommy Jollyboat's user avatar
1 vote
1 answer
2k views

Understanding the use of 'src' attribute in Linux routing tables

I have a question about a route table in linux which “ip route show” command displays. I understand what “src” attribute is like based on this link. http://linux-ip.net/html/routing-saddr-selection....
Tomis winner's user avatar
0 votes
1 answer
838 views

Route traffic from one IP address through a different interface

I have a local and a remote network. My local network has a router, ubuntu box and TV. The remote network has a router and a raspberry pi. The local ubuntu box and remote raspberry pi are connected ...
NinjaTuna's user avatar
1 vote
0 answers
1k views

Remove default route on AlmaLinux 9 / RH9

I'm running AlmaLinux 9 (a red hat 9 clone), and I would like to permanently remove a default route. My routing table is shown below, and I would like to remove the 172.31.252.1 route. I know how to ...
TSG's user avatar
  • 1,768
2 votes
1 answer
629 views

In which order is routing of packets defined if VRF and ip rules are defined?

On a system are VRFs, multiple routing tables and rules defined. A local service (SSH) is not reachable via one interface (WAN interface that is in a VRF) while it is reachable from other interfaces. ...
divB's user avatar
  • 208
0 votes
0 answers
19 views

Routing internet traffic via the vpn interface

I have a wifi dongle where I have three interfaces wlan0 (default route), uvpn0(VPN interface) and usb0(interface between the host machine and the dongle). usb0 Link encap:Ethernet HWaddr DA:CE:...
Ragavan Kalatharan's user avatar
1 vote
1 answer
139 views

Macvtap connectivity lost after a few hours?

I setup a macvtap interface like this: ip link add link eth0 vlan type macvlan mode bridge ip address add 10.0.0.17 dev vlan ip link set dev vlan up ip route flush dev eth0 ip route flush dev vlan ip ...
Maestro's user avatar
  • 191
0 votes
0 answers
264 views

Tunneling traffic from socks5 proxy to VPN tun

I have the following setup: ______________________________ | | | Client | ...
Jan's user avatar
  • 1
2 votes
1 answer
2k views

What is the difference between using Linux VRF, network namespaces and using different routing tables?

The ip-vrf manual reads : A VRF provides traffic isolation at layer 3 for routing, similar to how a VLAN is used to isolate traffic at layer 2. Fundamentally, a VRF is a separate routing table. At ...
Rêve's user avatar
  • 21
0 votes
0 answers
255 views

Assistance routing external incoming traffic to interface

I need assistance creating a ip route that forces traffic coming into my VPS's public IP on port 27016 or 3202 to my Wireguard VPN tunnel. For context, I created this VPS to allow me to expose my ...
depoultry's user avatar
1 vote
0 answers
298 views

Wireguard mesh with star-shaped failover

I'm currently trying to convert my star-shaped wireguard setup into a mesh-based one with a single server as a fallback node if the direct routes are not reachable. The goal is to reduce latency and ...
overthinker's user avatar
1 vote
1 answer
106 views

Ip routing Linux subnet to an external IP

Good morning I have a scenario where an application makes a request to service A on IP 10.244.5.0 which is not really in use. The goal is to send all request of a subnet (where the service A IP is ...
Minninnewah's user avatar
2 votes
1 answer
593 views

How do I get the interface name created with `ip tuntap add mode tap`

I want to create a tap with sudo, and then attach the user space program (ssh) to it. I don't want to hard code the interface name, as multiple users will be using it, so I want the interface name to ...
Gary van der Merwe's user avatar
2 votes
1 answer
3k views

Manage two network interfaces on RHEL 8

I'am looking to set up a configuration on a dual network RHEL8 enterprise machine hosting web services (web server, APIs, gitlab...). The machine has two network interfaces : eno1 for the local ...
AntoninC.'s user avatar
0 votes
1 answer
1k views

Route all traffic from one interface (default gateway) through OpenVPN / tun0 - policy based routing, dependent on source address/interface

I have a Debian Linux VPN router myvpnserver with 2 interfaces, eno1 and eno2: eno1 is connected to a LAN and an internet router. On this interface with static IP address, myvpnserver has its default ...
MrSnrub's user avatar
  • 135
3 votes
0 answers
103 views

What exactly is the `/etc/net` project?

I was reading about iproute2 here and I saw the following sentence: The /etc/net project aims to support most modern network technologies, as it doesn't use ifconfig and allows a system administrator ...
eciii's user avatar
  • 243
1 vote
0 answers
2k views

multicast to all interfaces (how to set up the routes?)

I want a host to send out multicast traffic to all interfaces, but it seems I can only have one route. I tried ip route add 224/4 dev eth0, and then ip route add 224/4 dev sit1, but the second one was ...
U. Windl's user avatar
  • 1,493
1 vote
0 answers
104 views

Wireguard to endpoint Inside a Namespace

I have three VM's. VM-A,VM-B & VM-X. I have a application running on the backend server VM-X. VM-A is the Main frontend server which has high capacity. VM-B is just a standby server of low ...
ph3ro's user avatar
  • 378
2 votes
1 answer
14k views

How to route all traffic from a specific interface to a specific gateway instead of default route?

On my machine I have two interfaces: wlan0 (default route) and tun0. The tun0 interface is just a local network, it's ip range is 172.16.150.0/24, my machine's (machine A) IP address is 172.16.150.1, ...
g00dds's user avatar
  • 143
1 vote
1 answer
1k views

Why is my namespace not detected?

I tried form home,then sudo su - ip netns exec 5bd337503b01 ip addr show Cannot open network namespace "5bd337503b01": No such file or directory pwd shows /var/run/docker/netns Why?
Richard Rublev's user avatar
1 vote
1 answer
4k views

How to access LAN behind VPN client from server?

I have a cloud VM running an OpenVPN server On the other side, I have a Synology NAS inside a private network. I would like to access the client's LAN (192.168.1.0/24) from the server. On the server, ...
nowox's user avatar
  • 447
0 votes
2 answers
14k views

Persistent static routes on Debian 11

I'm trying to set up a testing lab such as the following: P.D: Is not Metasploit, but Metasploitable. I'm running VirtualBox, and the routers are 2 VMs running Debian 11. Each router has 2 interfaces:...
Iván Araolaza's user avatar
3 votes
1 answer
606 views

Can I change the order of IP addresses in Linux?

I'm running into some networking issues that seem to be related to the order of IP addresses, as displayed in iproute2. This is what it normally looks like: # ip -4 -o address show dev eth0 2: eth0 ...
Clambot's user avatar
  • 31
1 vote
0 answers
5k views

Routing problem shows this Error: Nexthop has invalid gateway

I am trying to route some traffic over a VPN (to certain IPs) and other via my normal connection. To do this I am trying to add a static route to make traffic to some IPs bypass the VPN tunnel. Very ...
Imme22009's user avatar
  • 173
0 votes
0 answers
20 views

Issue with adding a route to a sub-network card

I'm trying to add any route to a sub-network card eth0:1. When I'm running "ip route list" then this command prints the saved rule for eth0 not for eth0:1. Why ? How to solve that? ip route ...
Yuriy Tigiev's user avatar
1 vote
1 answer
411 views

How to config static route from two subnets to firewall

Well, one picture for thousand words. 3 private subnets: +-----+ +-----+ | PC2 | | PC3 | ...
schweik's user avatar
  • 1,310
0 votes
1 answer
2k views

Reply on same interface as incoming, but with dynamic IP addresses

I have a system with two network interfaces, both of which are connected to the internet with different IP addresses. I would like responses to incoming requests to be sent over the same interface ...
cdauth's user avatar
  • 1,457
2 votes
1 answer
978 views

How to do "ifconfig lo multicast" using IPROUTE2 / ip command

I am trying to figure out how to add the "MULITCAST" parameter to the lo interface using the "ip" command. I already have a netplan config which adds the multicast route to my lo ...
deanhuff's user avatar
  • 105

1
2 3 4 5
7