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 [iproute]

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

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 ...
0
votes
1answer
24 views

How to persist iproute2 routes and rules in Alpine Linux?

I'm trying to persist (between reboots) routes and rules from iproute2 in Alpine Linux, so far without success. Here are the commands: ip route add default via 192.168.200.1 dev eth1 table net2 ip ...
1
vote
0answers
36 views

How to inspect decrypted TLS/SSL traffic in Wireshark from program not supporting SSLKEYLOGFILE?

TL;DR: I feel I'm pretty close to doing so by using sslsplit's interface mirroring, but I ran into an issue where the kernel is not replying to ARP requests that sslsplit is sending out on the ...
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
11 views

2 VMs, communicating with static ipv6

In an attempt to better understand IPv6 routing, I've set up 2 Linux virtual machines on the same computer, that are bridged to 2 different NICs. The NICs are connected via physical cable. However, ...
-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
30 views

How to prevent kernel routes with metric 0 being set up?

I did setup a MACVLAN interface on Debian Stretch with systemd-networkd like this: wlan0.network: [Match] MACAddress=b8:27:eb:20:d3:c6 [Network] DHCP=yes MACVLAN=wlan0.milight1 [DHCP] RouteMetric=...
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 ...
-1
votes
1answer
22 views

what does the wildcard expression mean in command ss?

ss -lnt State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 127.0.0.53%lo:53 0.0.0.0:* LISTEN 0 128 0....
0
votes
1answer
42 views

How to make ip commands persist

I have a script (bottom of question) which adds a dummy link, adds some addresses to that link, and adds some routes to that link. How can I make ip link, ip addr, and ip route commands persist? I'...
0
votes
1answer
38 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 ...
1
vote
1answer
114 views

Virtual NICs in Ubuntu 18.04

We are a group of students completing a development project unit at the University of Sydney. We have had difficulty with linux routing, and would really appreciate being pointed in the right ...
0
votes
1answer
135 views

Namespace management with ip netns (iproute2)

I would like to know where to look up changes applied to custom namespaces. Let's say I have a namespace "ns1" with virtual interfaces "vpeer" and "lo" inside and I would like to modify configurations ...
1
vote
1answer
29 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
0answers
92 views

How to run ip netns exec without password?

I'm on arch and am using a network namespace wiredlan for ethernet, using it for LAN based applications and big downloads. I run commands/apps on the netns as: alias runonlan='sudo ip netns exec ...
2
votes
1answer
36 views

Bad IP route after restart network

I would like to make a IP route persistent, but it disappears after a reboot or service restart. here my net conf : 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 ...
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
2answers
344 views

Route a specific host to different gateway

I have a basic Ubuntu 18.04 setup where the computer has two interfaces - one for internal (enp4s0) and one that heads to the internet (enp5s0). On the internet interface I successfully have a VPN (...
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
1answer
224 views

How to delete ip route by URL?

After running a (probably broken) openvpn script, I have an IP route table where one entry is a URL: # netstat -r Kernel IP routing table Destination ...
2
votes
1answer
207 views

Docker container hits iptables to proxy

I have two VPSs, first machine (proxy from now) is for proxy and second machine (dock from now) is docker host. I want to redirect all traffic generated inside a docker container itself over proxy, to ...
2
votes
1answer
175 views

iptables NAT multiple devices with same IP address

I have a challenging situation where I have 5 devices which act as wireless access points. I need to be able to access TCP 8080 on each device from a central device. All wireless devices have a 192....
1
vote
1answer
47 views

Linux packet routing [closed]

I'd like to route traffic from one Ethernet to another only if a given rule is met. The "rule" is as follows : if a specif value (numeric or string) is found within the packet - the traffic is ...
2
votes
1answer
120 views

Converting 'ifconfig wlan0:avahi …' command to use ip instead of ifconfig

I am currently working on setting up a wireless mesh network using babeld as the routing algorithm. The documentation is very sparse, and most of the configuration guides I've seen online are using ...
0
votes
0answers
65 views

Setting up classless static routes manually in GCE

In GCE, the DHCP server return the IP address with mask of 32 bits. Making the instance the only one in its subnet. It also return couple of static routes (RFC3442) that need to be configured. Example ...
1
vote
1answer
293 views

How to route traffic over specific interface on linux (debian)?

I would like to route traffic over usb0 (a cellular modem) when it is available instead of eth0. The ip address for usb0 may change over time. How do I create a route in this scenario since the ip ...
0
votes
3answers
52 views

Script to change state of wireless card

Seeing as the hotkey on my laptop doesn't change the state of my wireless card, I wanted to create a short script that would do so and then map it to that key. My research tells me that .sh files are ...
1
vote
1answer
29 views

Mutiple default routes

I have connected two server via vpn. Server A hosts all container and server B is just a simple router. I need to attach to both server via ssh, as so, the default route of ppp0 (server A) and eth0 (...
2
votes
1answer
145 views

How to get pppd to create ppp0 inside namespace?

I have a simple pppoe connection which is working fine. A simple # pon my-isp creates a ppp0 device. I have defined a namespace like ip netns add physical but after ip netns exec physical pon my-...
1
vote
1answer
104 views

UDP socket in UNCONN state when using iproute2's ss

While editing some firewall rules on a machine that has an OpenVPN client running, I was trying to determine its remote port, as I usually do, using ss. # ss -anup | grep openvpn UNCONN6528 0 0....
0
votes
0answers
62 views

Prioritize outgoing network traffic across multiple interfaces

Background My Ubuntu server is configured with a VPN Split Tunnel (all traffic from one user is sent through a VPN, while the rest of my traffic is sent normally). Therefore, I have two main network ...
1
vote
2answers
420 views

Debian IPv6 routing

I'm need to add gateway from server dashboard page to routing list for accessing IPv6 from internet and I try to do this using ip -6 route add default via <gateway ipv6> but i geted this error ...
-1
votes
1answer
140 views

Interface creation via iproute2 resulted to “Cannot find device” error

I'm trying to create additional interface with preconfigured static IP. So I added configuration into /etc/network/interfaces auto eth88 iface eth88 inet static address 10.10.0.1 netmask 255....
0
votes
1answer
213 views

What exactly does these ip lines do?

I found these lines awhile ago reading forums, that allow me to access ssh from inside my VPN when it's turned on. Can someone explain what they do so I may tweak it to allow other traffic from ...
1
vote
0answers
469 views

Why i am getting 'RTNETLINK answers: No route to host' while adding an IPv6 route?

I have the following ipv6 route table: [root@tesla-1 ~]# ip -6 route show 2010:ab7::/64 via 2010:ab7::7 dev pkt0.124 proto static metric 100 2010:ab7::/64 dev pkt0.124 proto kernel metric 256 ...
1
vote
0answers
59 views

Connect 2 networks through a Linux gateway

I am moving my first steps in Linux networking and I'm a bit stuck on this. I have 2 private networks 10.0.1.0/24 and 10.0.3.0/24 And I want to be able to ping the machines from one network to ...
2
votes
2answers
374 views

How to do nat based on port number in stateless nat?

I want to simply forward the RTP packet received from one IP:Port pair to another IP:Port pair. I have already done it with iptables. iptables use conntrack module. But there is no need of conntrack ...
0
votes
2answers
1k views

How to change default ip rule priority for main table

Please, suggest how to add ip rule right after main rule. I have the following configuration and it needed to be restored on boot. 32766: from all lookup main 32766: from all lookup upstream01 ...
0
votes
0answers
64 views

Proxy server with multiple interfaces and internet providers

A proxy server that gives you the ability to connect over a different carrier. To my linux box I have connected 2 modems from different providers. Modem of provider 1 on eth1: gateway: ...
1
vote
1answer
319 views

iproute2 Inherit or Copy Table

I've setup source policy routing on a Linux "router" using : ip rule add from 192.168.1.0/24 table FOO ip route add default dev eth0 table FOO Packets forwarded from that subnet reach Internet ...
0
votes
0answers
289 views

How to share local network over tinc?

I have to device, eth0 192.168.8.178/22, tun0 10.0.0.2/24 I hope from 10.0.0.1 (another host) can access 192.168.8.178/22. $ ip -4 addr show eth0 2: eth0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP&...
0
votes
1answer
323 views

Is it possible to force fwmark reflection in arbitrary-TCP reply packets?

Has anyone solved the problem of fwmarks being lost in TCP socket-connection replies? Background: I need to ensure replies go out on the same interface on which their requests were received, and ...
4
votes
1answer
3k views

Connecting two network namespaces via a veth interface pair where each endpoint has the same name

Is there a single (simple) command that will create a veth interface pair and assign each interface to a different network namespace? For example, suppose that I have two namespaces: mynamespace-1 ...
2
votes
1answer
529 views

Modify routing table route outbound packets (except ssh) through WiFi interface

I am using a remote computer, I use SSH and a static IP to connect to it. I would like to know how to edit the routing table to exit Internet using my wireless interface but still be able to connect ...
0
votes
3answers
1k views

How to make all client traffic through the OpenVPN if server side did't push the route?

I installed OpenVPN client on the OpenWRT and want to direct all my traffic through the VPN, including the game traffic. But the server side didn't push the route to the client side. How can I ...
1
vote
3answers
6k views

Why can't I add a default route?

I have a CentOS 7 machine on private address space, IP is 10.10.0.2. I'd like to have internet access via a gateway with a public IP which is connected to the same switch, lets call it 50.50.50.50. I ...
3
votes
2answers
2k views

default route with linkdown

If no link on enp0s18 i have root@route:~# ip r default via a.a.a.1 dev enp0s18 metric 10 linkdown default via a.a.b.1 dev enp0s10 metric 20 onlink linkdown default via x.x.x.49 dev wwx001e101f0000 ...
0
votes
0answers
26 views

RHEL 6.2 how to set permanent static routes [duplicate]

I've been searching for a while now regarding my request. I either haven't found the right answer yet, or (most likely) I am not fully understanding what I'm reading. I am not a Linux guru. I've just ...
0
votes
1answer
760 views

Pretty display of “ip route”

I'd like to use more of the iproute2 (ip command) utility instead of the deprecated net-tools (ifconfig, route, ...). The main reason I keep going back to net-tools is the output of ip route which in ...