2022 Developer Survey is open! Take survey.

Questions tagged [route]

Command line tool for manipulating and listing the routing table.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

What does default gateway from ipconfig on Windows means? [migrated]

What does Default gateway properties of every network adapter from ipconfig /all command's output means? As far as I understand, default gateway is the next-hop IP that is assigned to address 0.0.0.0 ...
user avatar
  • 1
0 votes
0 answers
16 views

Cannot reach LAN from Fedora 35 that is sharing Internet

In my cable ethernet configuration, a Fedora 35 workstation has 2 network interfaces: if0 connected to an Internet router via DHCP if1 connected to the LAN with a static IP Machines in the LAN are ...
user avatar
0 votes
1 answer
27 views

Routing all Traffic through a VPN Node while accepting incoming WAN Connections

I want to route all traffic through another VPN-Node, while: Keep the Connection to the VPN-Server active (already works) Still accepting WAN-Connections on that Client. My Client Node Configuration:...
user avatar
  • 321
0 votes
0 answers
7 views

SIOCDELRT: No such process when deleting default route from secondary interface on Ubuntu

I'm trying to remove the automatically-generated default route for a particular interface on an Ubuntu machine. I have two interfaces, enp0s3 and enp0s8. Default routes are generated for each of them: ...
user avatar
  • 162
0 votes
0 answers
63 views

RTNETLINK answers: Invalid argument for specific IP Ranges

ip route add blackhole 64.79.89.0/19 ip route add blackhole 64.79.85.0/19 I try to add these ranges into route but they give RTNETLINK answers: Invalid argument I am not sure if it is about those ...
user avatar
0 votes
2 answers
125 views

Add secondary IP to ESXi host from different subnets

I have to add a secondary IP to an ESXi host running ESXi 6.5. My objective is to allow communication between some machines running on a different local network and the VMs present inside ESXi through ...
user avatar
0 votes
1 answer
234 views

Redirecting Netflix and Youtube traffic to another gateway by IP addresses on Mikrotik router

I help a friend in taking care of the network with few buildings with appartments for rent. During the holiday season all apartments are fully booked, and that means we have 40-60 guests. There are 18 ...
user avatar
  • 123
0 votes
0 answers
17 views

Forward some connections on specific interfaces - ubuntu 20.04

i need to find a way to redirect the traffic on the interfaces depending on the url you need to connect to. I'll explain: I have two network interfaces, one that must be used as default (like a normal ...
user avatar
0 votes
0 answers
109 views

Docker Messing With IPTABLES?

I have a problem with docker docker: Error response from daemon: driver failed programming external connectivity on endpoint containername (containerhash): (iptables failed: iptables --wait -t filter ...
user avatar
  • 13
0 votes
0 answers
36 views

Reach private subnets on secondary interfaces between GRE tunnel endpoints

I have two servers in different locations. Each server has an eth0 with a public IP (internet accessible) and an eth1 with a private IP connected to the internal network. Server A eth0: 1.2.3.4 (...
user avatar
0 votes
1 answer
64 views

Routing two debian virtual machines on one network

I have two debian virtual machines on two different physical servers with 2 interfaces on each virtual machines. One port of each vm is connected to each other on a network with CIDR of /21. and there ...
user avatar
  • 1
1 vote
1 answer
55 views

How to check an IP address is blocked by IP Route?

My server is constantly getting attacked by Amazon India servers. I added 35.154.0.0/16 range to the route for IP address 35.154.252.15 ip route add blackhole 35.154.0.0/16 But when I check if the IP ...
user avatar
  • 211
0 votes
1 answer
32 views

Isolating my docker container from the rest of my local network (route add reject not working)

I'm just simply trying to add a route to reject any traffic to other systems on my local network from my docker container, but seems like my route add command isn't working and I'm not quite sure why. ...
user avatar
  • 141
0 votes
0 answers
59 views

Unable to add IPV6 Route in GCP

we have a requirement where we need to create a floating Ip and it should be moved across the GCP Compute Instances. In this case we need to add the route under the route table of the VPC(asia-south1) ...
user avatar
0 votes
0 answers
98 views

ipv6 route add with next hop fails

I'm trying to add an ipv6 route on machine B to subnet behind next hop A: 2:2:2::2/64 +---+ 192:168:2::1/64 192:168:2::10/64 +---+ -----| A |---------------------------------------| B | ...
user avatar
  • 101
0 votes
0 answers
73 views

Route traffic after OpenVPN server

The main purpose - remote access to the local network (video surveillance, smart home). Input data: mikrotik router and server in the DigitalOcean. Since mikrotik knows how to work with OpenVPN server ...
user avatar
0 votes
1 answer
59 views

How to set a public LB route to a proxy on AWS?

I built this traffic route in a VPC. Route53->ACM(SSL)->Public ALB->EC2(Nginx proxy)->Private ALB->ECS(Internal App) The EC2's security group is allowing tcp 80 and 443. The ECS' ...
user avatar
  • 7
3 votes
1 answer
608 views

What can cause 'Network is unreachable' when the link is up, the route is there, and the netmask is correct?

What could cause this? $ sudo ip route show 192.168.100.0/24 dev usb0 ...
user avatar
0 votes
1 answer
50 views

Add to route table destnation using this syntax *.mycompany.net

The reason that I am asking this question is that i a using VPN-slice (VPNC) with openconnect While running this command ip route add *.mycompany.net via 0.0.0.0 dev tun0 Error: any valid prefix is ...
user avatar
0 votes
0 answers
17 views

Proper way to set congctl on systemd routes

I'm using sysctl to set default tcp_congestion_control to bbr on all routes and I'd like to set the congctl to dctcp on the route added by a private interface. What is the proper way to do this? The ...
user avatar
0 votes
0 answers
77 views

Dante socks server ROUTE command isn't working?

I've installed Dante-Server 1.4.2 on Ubuntu 20.04, and it runs without any issues, however, I've tried to redirect the traffic to squid proxy with the following small configuration: errorlog: /log/...
user avatar
0 votes
0 answers
57 views

How to configure Fedora 34 with three NICs and three subnets to route traffic?

I have a Fedora 34 linux and it has a physical ethernet interface (NIC3), a physical wifi interface (NIC2) and an USB/Ethernet interface (NIC1) (USB LTE Dongle). I would like to use the NIC3 to route ...
user avatar
  • 21
0 votes
0 answers
39 views

How to switch between multiple ip addresses [duplicate]

As an example, I have 2 IP addresses on my NIC: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UP group default qlen 1000 link/ether 02:00:17:06:ac:05 brd ff:ff:ff:ff:ff:ff ...
user avatar
1 vote
0 answers
334 views

Two instances of Dante proxy server with two interfaces

I'm running 2 instances of Dante server on my Linux machine, one of them is called danted which is supposed to connect me to the internet through the ethernet cable and the other is sockd which is ...
user avatar
  • 85
0 votes
0 answers
95 views

route two interfaces that has ip of two different subnet

Yes I know it's a duplicate of many questions but I can't find my solution to them. I have a host virtual machine (ubuntu 16.04) that has two network adapters. one of them is connected to the gateway(...
user avatar
0 votes
1 answer
48 views

Auditing specific route table operations

Does Linux have a way to audit operations run against a specific route table? I have the following config in my custom route table: default dev tun0 scope link 192.168.100.0/28 dev eth0 scope link ...
user avatar
  • 205
0 votes
3 answers
221 views

why MASQUERADE SNAT can block localhost connection?

I observed a weird behaviour on linux: First, I clean all routes and iptables rules: ip route flush table main ip route flush table default ip route flush table local iptables -P INPUT ACCEPT iptables ...
user avatar
1 vote
0 answers
106 views

IPv6 multipath routing with configurable weight

With Linux kernel 4.14, when I add IPv6 multipath routes with weights (10 & 30), they are getting added with same weight '1'. IPv4 route does not have this issue. I checked with exact same steps ...
user avatar
0 votes
1 answer
130 views

use ppp for Internet for netns

Use of ip r add 0.0.0.0 via 172.20.10.10 src 10.0.100.10 GOT: Error: Invalid prefsrc address How to fix this? Goal: netns (host) => ppp0 => Internet via ppp0 My config: /home# ip netns ns2 ns1 (...
user avatar
  • 1
0 votes
0 answers
69 views

Second interface not redirecting traffic

I am trying to setup a redirector to nat https traffic destined to (eth0)172.31.14.66 -> 1.1.1.1 and http traffic destined to (eth1)172.31.14.48 -> 2.2.2.2. Here are my iptables rules: iptables -...
user avatar
  • 1
0 votes
2 answers
618 views

OpenVPN server : connexion OK but no access to remote lan

I've got a running OpenVPN server with following configuration VPN network is 10.7.0.0/16 LAN network is 192.168.100.0/24 Client is able to connect, but I can not reach LAN hosts located behind VPN ...
user avatar
  • 133
0 votes
1 answer
701 views

Debian Static route does not work (/etc/network/interfaces)

This is the content of /etc/network/interfaces: auto lo iface lo inet loopback # The primary network interface allow-hotplug ens18 iface ens18 inet static address 10.0.5.108 netmask ...
user avatar
0 votes
1 answer
27 views

mikrotik route appear and removes every second automatically

Mikrotik OS v6.48.2 has routes # DST-ADDRESS PREF-SRC GATEWAY DISTANCE 0 ADS 0.0.0.0/0 193.168.1.1 1 <<<<<<&...
user avatar
  • 1
-1 votes
2 answers
241 views

Multi hop routing

I'm trying to communicate from the tx.py program to send packets (UDP) down to device 1 and device 2 shown in the picture. Currently we have OpenVPN clients running on 2 of our VMs and if I run tx.py ...
user avatar
  • 61
0 votes
1 answer
39 views

Routing loop issue

We have a application having certain ip, let say myapplication.com The traceroute to the application give result something like below. The Ip and the time is just for illustration purpose. If you see ...
user avatar
  • 5
0 votes
1 answer
329 views

redirecting udp traffic from one network interface to another on the same host

My host has two network interfaces: eth0:172.16.125.5 eth1:172.165.8.55 I want to redirect all UDP traffic to eth1 port 1234 to eth0 port 1234, ie: 172.165.8.55:1234 -> 172.16.125.5:1234 After ...
user avatar
  • 1
2 votes
1 answer
86 views

Ping host with dual IPs on 1 IP, echo returns from other IP

I'm running Fedora 33 on a host (i5 cpu, 8Gb RAM, SSD and hdd) which is set up as a router; it has 5 NICs. I've managed to get dual internet gateways and dual LANs working reasonably well using ...
user avatar
0 votes
1 answer
387 views

Can (and do) I use iptables to expose a host directly online (not using NAT)?

I'm using a DSL-5300 VDSL modem/router which is set up with NAT for my house, and works great. Its web interface hasn't been written to support a mix of NAT and no-NAT traffic. I've been assigned 8 ...
user avatar
  • 59
0 votes
1 answer
508 views

Windows Route Add when Gateway is text instead of IP

I have the following in my route table if I connect to my Company VPN. IPv4 Route Table =========================================================================== Active Routes: Network Destination ...
user avatar
0 votes
1 answer
40 views

Proxying packets back using iptables

Problem: requests from web-application server to main server should be proxied back to web-application server. So if I perform a request from web-application server to application's domain (or public ...
user avatar
0 votes
1 answer
2k views

How do I provide Internet Access to both of my VLANS?

I have a TP-LINK T1600G-28TS, and I have 2 different VLANS (10.0.0.0/24 ID 101 and 10.1.1.0/24 ID 102), their IP addresses are defined by the switch's DHCP server. This part is working fine, I can see ...
user avatar
-1 votes
1 answer
523 views

how to save static routes permanently in ubuntu

The current configuration: server1: sudo route add -host 10.0.1.2 dev enp131s0f0 sudo route add -host 10.0.1.3 dev enp131s0f1 server2: sudo route add -host 10.0.1.1 dev enp131s0f0 sudo route ...
user avatar
  • 11
0 votes
0 answers
82 views

Openshift Route - Cookie specification - Istio Routing

I have requirement to pass cookie or headers in openshift route to istio virtual service and decide the traffic routing based on cookie or header passed from route to virtualservice. Please share ...
user avatar
1 vote
0 answers
516 views

Static route gives "Destination host unreachable" error

I have a server (Windows Server 2012) with 2 network interfaces. One with a 172.0.0.0 network, which has the default gateway (172.16.8.254) And one with a 10.0.0.0 network, no gateway set. Since by ...
user avatar
1 vote
0 answers
54 views

How to find the route that has internet connection and set it as default (lowest metric) with NetworkManager (Ubuntu)

~$ route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.30.102 0.0.0.0 UG 100 0 0 eth0 default ...
user avatar
  • 111
0 votes
1 answer
522 views

How to only allow routing to IP range on particular interface?

I have two interfaces eth0 (192.168.10.x) and wlan0 (172.16.30.x) on my device (Raspberry Pi, Raspbian GNU/Linux 10 (buster)). Both networks have access to the internet, but I want my device to only ...
user avatar
1 vote
1 answer
39 views

Routing traffic away from a VPN connection

I'm using a VPN which takes all my traffic by default. For some addresses, I'd like my computer to avoid using the VPN as it is slowing down the quality of the connection. The addresses for the ...
user avatar
  • 113
0 votes
1 answer
41 views

Use a gateway from another NIC

I have a machine (machin-A (Ubuntu 18.04)) with two NIC's. one is eth0 and the other eth1. eth0 connected to the company subnet. eth1 connected to a second Linux machine (Machine-B) . both physical ...
user avatar
0 votes
0 answers
199 views

How to make Linux kernel send ARP requests down multiple network interfaces with overlapping subnets?

I have a Linux PC with the following physical network interfaces: Primary LAN/Ethernet port used for most traffic. Ethernet (from external device) to USB (into my PC), used to connect to a single ...
user avatar
-1 votes
1 answer
39 views

Can I forward VPN traffic to another vpn clients?

I've run OpenVPN server on SERVER-1. Client1(10.8.0.2) and Client2(10.8.0.3) have a connected to OVPN SERVER-1 (pubIP:87.x.x.x | privIP:10.8.0.1) And I've other SERVER-2 with connected 3 VPN clients ...
user avatar

1
2 3 4 5
12