Questions tagged [routing]

Use this tag when the topic is related to managing the paths that IP traffic will take. This includes subnets created by access points, and on the high end it could be multiple feeds coming through a Cisco unit.

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

Use Ubuntu server as VPN PRovider

I recently came up with the following project. My home network consist of: an ISP modem/router a second router used as an access point/switch an Ubuntu server used as file server - cloud server - ...
giorgis1987's user avatar
1 vote
0 answers
1k views

How To Add Docker Container Static Route?

Have a server with 4 subnets - 1 usable IP, each configured on separate network port on the network card. Running 4 docker containers, but they are randomly accessible upon reboot. How to add a static ...
lion's user avatar
  • 91
1 vote
1 answer
968 views

Prevent routing of DHCP traffic

First, I'm aware that similar questions to mine have been asked elsewhere (I've read many of those posts!) but I've not been able to figure out a solution to my problem, so I'm asking for help. My ...
jlindqvist75's user avatar
1 vote
1 answer
222 views

What is the significance of order in the device list of ip route output?

I have this output for ip r default via 10.0.0.1 dev enp0s20f0u1 proto static metric 1000 default via 10.0.0.1 dev wlan0 proto static metric 2000 10.0.0.0/24 dev wlan0 proto kernel scope link src 10....
Stephen Boston's user avatar
0 votes
2 answers
76 views

Skip route table

I want to create a VM VBOX Ubuntu to be a gateway in my home lan to route to my enterprise VPN. The problem is that my VPN when is stablished, create a route per route entry with metric 1 to be routed ...
Ivan's user avatar
  • 1
5 votes
1 answer
1k views

Use a VPN only for some specific routes

I want to use a VPN only for some specific routes (so that the default route is not on the VPN). So in the Add VPN dialog I selected the "Use this connection only for resources on its network&...
Wizard79's user avatar
  • 161
0 votes
0 answers
308 views

No route to host in one direction

I am able to ssh from one host in Mexico to another in New Jersey, but when I start the ssh from the New Jersey host going to the same Mexico host, I get "no route to host". While ...
Rick's user avatar
  • 1
0 votes
1 answer
621 views

Preferred way to copy route configuration to different host?

I'm replacing a CentOS server with an Ubuntu 20 one. I need to duplicate the older servers routing configuration. The outputs of ip route show and route are not directly usable as inputs. I'm a bit ...
Charlweed's user avatar
  • 139
0 votes
1 answer
149 views

Unable to ping or connect to internet via WLAN

Problem statement Hi 👋 . I needed to auto-connect my system to another system via Ethernet so I assigned both these systems respective static IPs. On my host system, I did this by editing the /etc/...
Pe Dro's user avatar
  • 147
0 votes
0 answers
53 views

How can I solve the routing problem when using an industrial camera?

I use an industrial camera. I also have access to the modem. The problem is that if the Internet comes up first and then the program has access to the camera, then the camera gives an error and has no ...
F.Cheraghi's user avatar
0 votes
1 answer
218 views

How to connect pc to internet and directly to NAS using different interfaces

My goal is to connect my PC and my NAS directly using two USB to 5 Gbe adapters and both of them to a switch that has internet access via 1Gbe NICs. So the initial setup was: QNAP TS-431P connected ...
Luca's user avatar
  • 3
1 vote
1 answer
2k views

routing table incorrect after netplan static ip configuration

Here is my netplan configuration on ubuntu-server 20.04.2 (virtual machine) (virtual box). /etc/netplan/00-installer-config.yaml $ cat /etc/netplan/00-installer-config.yaml # This is the network ...
deostroll's user avatar
  • 1,769
0 votes
0 answers
90 views

VDS provider blocking port that I need. How to forwarded over other VPS

I have an Ubuntu 20.04 LTS. I was surprised to get to know that the VDS provider blocking port that I must to have opened. There is no way for me to push them to open it. I have to organize that port ...
Harvi's user avatar
  • 1
0 votes
1 answer
151 views

Can netplan bring down the routing for an interface entirely if another interface has a priority route-metric?

I figured certain quirks with networking in several libraries that I do not want to deal with fixing individually are gone if the interface that is not the priority route-metric is taken out of the ...
j riv's user avatar
  • 111
1 vote
1 answer
791 views

Making Ubuntu 20.04 into a Router: something keeps adding default route for the lan interface

I have read a lot about NetPlan - it sounds awesome compared to the old interfaces file... But everything I've tried generates a default route to the lan interface - (which disables access to the ...
Jeff K's user avatar
  • 131
0 votes
1 answer
38 views

Routing ubuntu server 20.10

I can't configure routing on my server because of: https://i.stack.imgur.com/Q64Gr.png Have you any idea?
I D's user avatar
  • 1
0 votes
1 answer
7k views

Error: Netmask doesn't match route address

I am trying to add a new route in Ubuntu 16.04 by following command: sudo route add -net 192.168.245.2 netmask 255.255.255.0 gw 192.168.0.200 enp2s0 But getting this error: route: netmask doesn't ...
TheBlaDe's user avatar
0 votes
0 answers
674 views

Configure route metric of tunnel using Netplan

Under Ubuntu 20.04 LTS focal I previously configured a net64 tunnel to use the HE-IPv6 service. Below is my config: . ├── 50-cloud-init.yaml └── 51-he-ipv6.yaml # 50-cloud-init.yaml network: ...
KInGcC's user avatar
  • 101
3 votes
2 answers
1k views

Can someone explain interactions between iptables, nftables and bpf?

I'm on Ubuntu 20.10 trying to do some routing config for my virtual network, and I'm confused about the interactions between the 3 main types of firewall technology used in modern Linux distros, ...
Avery Freeman's user avatar
1 vote
1 answer
2k views

How to route all traffic to a dynamically configured default gateway?

Some context: I'm trying to create a virtual private network on my laptop using VirtualBox. I want the virtual machines to be inside a private network, so a virtual machine can only be reached by ...
user60481's user avatar
  • 113
0 votes
0 answers
359 views

How Can I Configure Keepalived to Not Change the Routed Ip?

I am using Keepalived for IP Failover of two IP addresses. Server 1 : 10.0.0.1 , Master Server 2 : 10.0.0.2 , Backup VirtualIp : 10.0.0.3 The virtual IP is set by me on Keepalived configuration file ...
TarabydaVllasıCafcaflıAtArabsı's user avatar
2 votes
1 answer
139 views

Ubuntu 16.04 issue connecting wired and wireless connections to the router

I am running Ubuntu 16.04. I have a pretty simple networking setup, a router with both wifi and wired connections. Separately I can connect to the router using either wifi or ethernet and both work ...
Vik's user avatar
  • 71
2 votes
0 answers
132 views

Ubuntu Server reviving bad route at reboot

I recently moved an Ubuntu 18.04.5 server from one network (192.168.101.X) to a new network (192.168.1.X). The server (and all network devices) are addressed by DHCP, issued by an Edgerouter Lite. ...
Sgt. Ketchup's user avatar
0 votes
1 answer
3k views

IPSEC/IKEv2 StrongSwan applies only the first route from split-include, the rest is ignored

I have an IPSEC/IKEv2 VPN server (on a MikroTik router) and I'm trying to connect to it from my Ubuntu 20.04.1 LTS system. The server uses x509 certificates and private/public key pairs for ...
nagylzs's user avatar
  • 131
2 votes
2 answers
4k views

ip_forward=1 in Ubuntu 20.04 after reboot fails

I have Ubuntu 20.04 configured as a router with nftables and frr (ospf configured) installed. I have configured two interfaces (ens33 and ens34) in different networks, forwarding is configured in /etc/...
Helngard's user avatar
0 votes
1 answer
2k views

Default gateway route being automatically added to main table

I have 2 network interfaces connected to my machine. (Fwiw it's an aws instance with the primary (default) ENI and an additional, secondary ENI attached, each with a public and private IP address ...
jsstuball's user avatar
  • 267
0 votes
1 answer
237 views

Is it possible to setup routes that the internet works only through VPN connection?

Is it possible to set up routes that the internet works only through VPN connection? If the vpn is disconnected then the internet shouldn't work. I found the solution here with the firewall, and it ...
Alexmind's user avatar
0 votes
2 answers
256 views

nameserver change breaks server

I am using Ubuntu 20.04.1 LTS. I have very limited knowledge on how to set the network configuration after the installation of the server. I run a small subnet with one static IP server on it next to ...
disco_rogge's user avatar
0 votes
1 answer
475 views

What do these iptable rules mean?

These: sudo iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE sudo iptables -A FORWARD -i tun0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT sudo iptables -A FORWARD -i wlan0 -o tun0 -j ...
cream_pi's user avatar
1 vote
1 answer
375 views

TCP Forceful routing through designated ethernet interface does not work in ubuntu 18.04

I'd like to establish outgoing TCP path through any designated ethernet interface even if the designated ethernet interface is not configured as default gateway. My device has two Ethernet Interface (...
Alex Lee's user avatar
1 vote
1 answer
542 views

Network routing and port forwarding problem

I have 2 networks (graph in link below) A: 10.0.0.0/24 B: 192.168.1.0/24 In network A, all devices are connected via a switch. Some devices provide certain services such as ssh or access to a database ...
Wojciech Stańczuk's user avatar
0 votes
1 answer
109 views

Static route from 192.168.98.192 to 192.168.72.201

I'm new to this so it might be an obvious question. I've given two servers on the same network, one with ip 192.168.72.201 and another one 192.168.98.192. They can't communicate with each other ...
Max Moser's user avatar
0 votes
0 answers
158 views

Why do I loose ping after adding static route

Since I live in one of the countries with most freedom ever been presented to citizens, I'm using a VPN all the time to connect to free world. Well, this way my connection gets slower but as I grow ...
Mehraban's user avatar
  • 1,275
1 vote
1 answer
1k views

Dual NIC Configured as Router with NAT

I have a PC running Ubuntu 18.04 and am attempting to configure the two GbE interfaces as a gateway/router. I've referred to some related questions and attempted to follow guides such as this one: ...
Liquid Plasmas's user avatar
0 votes
1 answer
108 views

Plugging in ethernet (internal network, no inet) cuts of Wifi inet [duplicate]

Im still pretty new to linux, but Ubuntu is my favorite. As the title says: Plugging in ethernet (internal network, no inet) cuts of Wifi inet. I am using AnyDesk to connect to a ubuntu 20 box. All ...
Dingl Berto's user avatar
1 vote
0 answers
631 views

netplan: ignore routes, keep gateway

I have a Ubuntu 20.04 server which has three network interfaces/connections: eth0 is configured via DHCP, should have the default route, everything fine so far. wg0 is a wireguard interface wich ...
Matthias Lohr's user avatar
1 vote
0 answers
65 views

Dual NIC silently rejecting all incoming traffic from one interface

In my server, I have two ethernet cards: enp0s17, local IP 192.168.0.7, router's public address x.x.x.x, netmask 255.255.255.255 enp0s18, local IP 172.16.0.7, router's public address y.y.y.y, netmask ...
TheOneWithTheBraid's user avatar
0 votes
0 answers
513 views

IP Route resets after restart

I have an IP Route that's been created by docker-compose, here is the relevant line from ip route show: 172.17.0.0/16 dev br-a5625859b0ca proto kernel scope link src 172.17.0.1 linkdown This clashes ...
Guy's user avatar
  • 144
0 votes
1 answer
118 views

Connecting a remote client to an openVPN server running on Ubuntu

I am really stuck on this one - please help. I have an openVPN server running on Ubuntu 18.04. I have a Macbook running as a client. The Macbook connects to the VPN server without problems if it ...
Jeremy Andrews's user avatar
1 vote
0 answers
2k views

Trouble adding static routes in /etc/network/interfaces

I'm trying to add in static routes into /etc/networking/interfaces, but it's not working: I'm using the following commands per this article in order to connect with my Docker containers using ...
Synthetic Ascension's user avatar
0 votes
1 answer
2k views

Error configuring static routing using cli

I'm trying to add a static route on my Ubuntu Desktop 16.04 machine with the cli, but with no success. I'm using the classic ip route command: ip route add x.x.x.0/24 via y.y.y.y dev eno1 (hid the ...
Pizza's user avatar
  • 1,428
0 votes
1 answer
1k views

Redirect traffic from server on cloud to another machine on local host in VPN

I have a virtual server instance on a cloud with Ubuntu 18.04 running on it which has public ip 123.456.789.100 (dummy ip here). I installed OpenVPN server which has added private ip of virtual server ...
Vinay Dandwani's user avatar
0 votes
0 answers
1k views

Default route being added randomly while NIC is already up, post-up action doesn't help

I have an Ubuntu 16.04 machine that I'm using as a temporary router while I fix some issues with my normal router. The network looks like this: Thus, the normal flow of traffic out to the internet ...
rst-2cv's user avatar
  • 101
0 votes
0 answers
1k views

How do I set the modem route metric to 50?

The cellular configuration file for NetworkManger has the route metric set to 50. But on boot the route metric for the modem connection is 700. When the connection is taken down and brought back up ...
Duane Murphy's user avatar
0 votes
1 answer
1k views

Make a permanent route change to a specific IP through a specific interface

I have a setup where I use a 10G bond to work with a remote system, but it intermittently gets disconnected, as traffic will occasionally be routed over another interface. I think I have the problem ...
Rick's user avatar
  • 1
0 votes
0 answers
159 views

Can not ping from one node to another while both nodes connected via an ethernet cable

I have two ubuntu machines each with two physical NICs. I am trying to create a private network between two of them connecting of one node's NIC with the other node's NIC. In Node 1 when I run ...
kr90's user avatar
  • 11
1 vote
1 answer
832 views

How to view all current networks around me

I have an Ubuntu Server hosted on a raspberry pi 4. There is no desktop on it, only a terminal. I am trying to figure out how I could view all possible networks around me I could connect to. Then, I’d ...
Jack's user avatar
  • 81
0 votes
0 answers
107 views

routing packets to default gateway

I've got two networks (NET0, NET1) and my default gatway to ISP is in NET0. Routing between NET0 and NET1 is done by an Ubuntu Server (GATEWAY1). Everything works fine, all hosts in NET0 and NET1 are ...
Schilling's user avatar
1 vote
0 answers
262 views

Multiple NIC Configuration Stopped Working ( Multiple NIC on Same Subnet) Routing Issues

Server : Ubuntu Server 18.04.4 Router : pfSense 2.4.4 Switch : tp-link TL-SG1016DE The Short : How do I configure multiple NIC on the same subnet/VLAN? Would like traffic that goes in one NIC to ...
I Own I Owe Oh My's user avatar
2 votes
1 answer
2k views

How can I connect to a Windows 10 remote desktop over openfortivpn from behind a router?

I am trying to set up a remote desktop to my office Windows 10 machine from my home PC running Ubuntu 19.10, using Remmina. My home router is a Synology RT2600ac. My company uses a Fortinet SSL-VPN, ...
ahawkins82's user avatar

1
2
3 4 5
8