Questions tagged [iproute2]

iproute2 (ip) is a tool used to manipulate network configurations.

The ip command is meant to replace ifconfig/route commands on Linux. This command lets you perform advanced configurations that were not possible with ifconfig/route.

See:

242 questions
0
votes
2 answers

Route forwarded traffic through eth0 but local traffic through tun0

I have a Ubuntu 12.04/Zentyal 2.3 server configured with WAN NATed on eth0, local interfaces eth1 and wlan0 bridged on br1 on which DHCP runs, and an OpenVPN connection on tun0. I only need the VPN for some things running on the gateway itself and…
Ross Patterson
  • 149
  • 2
  • 8
0
votes
2 answers

Set up router with 2 WANs and multiple subnets

I'm trying to set up a Debian box as a router for an office. I need to have 3 subnets in the LAN and 2 WAN connections, and I want one of the subnets to ALWAYS use WAN 1 and the other subnet to ALWAYS use WAN 2 (no load balancing). For exmaple, I…
El Barto
  • 963
  • 5
  • 16
  • 24
0
votes
2 answers

How can I reroute heavy traffic using iproute2

I am having two ISP connection (Link1 and Link2), I want to route all downloads traffic which are of size more than 1MB through Link2. I have created a routing table Link2 and routing all packets which has got mark 2. ip route add default via…
Supratik
  • 2,154
  • 10
  • 51
  • 66
0
votes
1 answer

Network interface selection

Suppose I have more than a network interfaces and I want to selectively use them per application. eth0 is the standard interface with the standard gateway in the main routing table eth1 is another interface with a different gateway. Suppose I launch…
0
votes
1 answer

SOCKS4-5 network device driver

There are methods of forcing programs to use SOCKS4-5 proxy's, such as socksify, tsocks and other LD_PRELOAD hijacking methods. Is there a way of having a SOCKS proxy network device, such as one that shows up under ifconfig? It would be nice to do…
Ash Palmer
  • 357
  • 1
  • 8
0
votes
0 answers

How to make secondary IP routable

I am trying to assign a secondary IP to my primary interface. I added the IP to my eth0 interface ip addr add 172.20.14.253/21 dev eth0 $ ip a show dev eth0 2: eth0: mtu 1500 qdisc mq state UP group default qlen…
Hussain Nagri
  • 181
  • 1
  • 9
0
votes
0 answers

In a Linux environment, does the order of commands "ip Route" affect routing?

I attached multiple ethernets to the server, one for LAN and the rest for PPPOE. Each packet connected to each PPPOE was sent by itself. It works fine on CentOS 6.10. In the 8 series, packets are routed through the default LAN. MIRACLE LINUX is a…
Cholho Lee
  • 21
  • 5
0
votes
0 answers

Best way of configuring a OpenVPN to allow access from the Internet to hosts behind a firewall

I have a Proxmox node with a bunch of VMs connected to a virtual bridged network. I have one VM on that bridged network that I want to connect to a Cloud VPS running OpenVPN. I then want to run an Nginx reverse proxy or directly port forward from…
obevan
  • 1
  • 1
0
votes
1 answer

How to set up Parallel Redundancy Protocol on linux?

I'm trying to setup a PRP connection between to Linux machines (Ubuntu 20-04 LTS) following the doc from TI. The module hsr is present (modprobe hsr works), but when I tried to use iproute2, it seems that it was compiled without support of…
grep
  • 186
  • 1
  • 3
0
votes
0 answers

Make WireGuard server accessible via multiple interfaces

I have a Raspberry Pi running WireGuard listening on port 51820. The Pi is connected to the my router via eth0 (192.168.1.51) and wlan0 (192.168.1.50), with the eth0 route having higher priority. My router forwards port 8880 to 192.168.1.51:51820…
Benjy Wiener
  • 101
  • 2
0
votes
0 answers

2 Interfaces with different metric, and a single default gateway - losing connection

I have a weird issue. I have two interfaces: One is my WiFi, The other is a 4G USB I am trying to set up the default GW through the 4G USB (which is NATed by the 4G provider, hence, I can't SSH through this interface into the device) because I need…
Joe
  • 1
  • 2
0
votes
0 answers

Ubuntu/netplan/iproute: route everything except specific /24 across interface

2 VLANs 10.160.32.0/24 on ens160 -> * (assume multiple non-merging subnets) 10.192.16.0/24 on ens192 -> management Through ens160 I can hit other networks via routing. Through ens192 is my management interface which isn't routeable via…
ClontarfX
  • 1
  • 2
0
votes
1 answer

Ubuntu on VMWare with multiple adapters - can't ping outside

I've made a machine with 3 nic adapters. Everything works inside configured networks, but It looks like routing is not working correctly: ping 8.8.8.8 ping: connect: Network is unreachable Here's my config: /etc/netplan/00-installer-config.yaml…
Alby11
  • 123
  • 2
  • 5
0
votes
1 answer

How "ip route get" decides outgoing interface

Wondering what decides the outgoing interface. Here is my setup Eno1 - 192.168.3 0.2/24, Gateway - 192.168.30.1 Eno2 - 192.168.50.2/24, Gateway - 192.168.50.1 My routing table looks like this - [root ~]# ip route default nexthop via…
Manny
  • 1
0
votes
0 answers

Port forwarding via vpn connection

I have two RHEL servers, one frontend and one backend. The connection of which is like this: ----eth0---frotnend---eth0 -------- eth0 ----- backend Also, I've set port forwarding between two servers for certain ports via iptables: # Generated by…