Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
7 views

Routing to subnet of a shared internet connection

Greeting, I have a mobile wifi router (192.168.8.1) and an Ubuntu PC Wifi(dhcp). I have purchased a LAN/WIFI router for playing with IoT devices. I set Ubuntu to share the internet connection and have ...
user avatar
0 votes
0 answers
20 views

How to access web server with public IP through private tunnel?

There are 2 networks like this image and a site to site tunnel. Users in site 1 (Home) can access the web server in site 2 (Office) with its private IP, but I want them to access the web server ...
user avatar
  • 1
0 votes
0 answers
18 views

What is the equivalent in Ubuntu to changing the Windows IPv4 configuration?

The Windows IPv4 Ethernet settings (see image) have fewer options than Ubuntu wired settings and I am unsure what to change in order to mimic (if that is possible) the same change in Windows. In ...
user avatar
  • 101
0 votes
0 answers
22 views

How do I keep my local networks connectivity after NetworkManager establishes openVPN connection?

I have a router with two WiFi local networks (2.4 and 5 Ghz) and a wired one, let them be 192.168.0.0/24, 192.168.2.0/24 and 192.168.4.0/24. They are all connected through router so that I can ping ...
user avatar
  • 101
0 votes
0 answers
9 views

Policy based routing rules not respected

My local VM has the IP address 10.2.X.X/24, and I have the following rule/table set up. root@localVM:/tmp# ip rule show all 0: from all lookup local 32765: from all to 192.168.10.0/24 lookup 200 ...
user avatar
0 votes
0 answers
43 views

How to have a same static IP address in all the networks

Imagine, I have an application at office which is bound to use 10.x.x.x IP address once it is installed. The gateway of this address will be 10.x.x.1 and this IP is set as static. So, when I move the ...
user avatar
0 votes
1 answer
69 views

DHCP and Static IP on different subnet on one interface - Netplan - What are the limitations

Maybe I have some fundamental misunderstanding about subnets, but someone at my company is telling me what I want to achieve is not possible or at least not reliable. Currently, we have multiple ...
user avatar
0 votes
0 answers
13 views

Bridging Internet connection with ubuntu server to connected clients

I was wondering if it was possible for my Client PC to get an internet connection in my Ubuntu Network. My Network looks something like this: Router --> Ubuntu Server --> Ubuntu Client However, ...
user avatar
0 votes
0 answers
33 views

NAT from internet/firewall thru a Ubuntu computer, to another network and device. (routing)

(Ubuntu) computer has two network interfaces: (and is not sunning iptables) wlx1cbfce8bd2bd: inet 10.1.1.129 netmask 255.255.255.0 on this network, there is a device:  10.1.1.10 - with a UDP port ...
user avatar
  • 1,249
0 votes
0 answers
99 views

Disable IP Routes on Boot

I'm running KVM on bare metal Ubuntu 20.04, and in order to get guest to host networking functional, I added a macvlan interface. I added a script under /etc/networkd-dispatcher/routable.d/10-macvlan-...
user avatar
0 votes
0 answers
51 views

Restarting networking after flushing routes (systemd-resolved won't restart)

I flushed my kernel routing table and wanted to return to using the network but found every server unreachable. I ended up rebooting my computer to restore functionality. Can you help me identify what ...
user avatar
0 votes
0 answers
46 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 - ...
user avatar
0 votes
0 answers
177 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 ...
user avatar
  • 71
0 votes
0 answers
13 views

Best approach to route traffic out different routes based on what user is logged in

I have an Ubuntu 20.04 machine with 2 ethernet interfaces with 2 IP addresses each. It's an AWS EC2 instance and each of the 4 IP addresses has an EIP attached to it via NAT. Both interfaces connect ...
user avatar
  • 101
1 vote
1 answer
116 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 ...
user avatar
0 votes
0 answers
11 views

Ubuntu 18.04 Static Routing

Please help in verifying my static routing config are correct. Basically, I have a SIP Trunk (LAN: 172.16.1.98) with an External IP of 20.211.3.12 which responds only to packets coming from eth0 (172....
user avatar
  • 3
1 vote
1 answer
42 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....
user avatar
0 votes
0 answers
238 views

Access a non default network namespace from LAN

I have a configuration where on my 20.04 server I've set up a network namespace called vpn in which there's only a loopback device and a tun0 device which is a openvpn connection to the internet. I've ...
user avatar
  • 91
0 votes
0 answers
27 views

Bifurcation of packets depending on LAN and WAN traffic and forwarding them to different gateways

The current scenario of my interfaces with their IPs and Gateways are as follows. PC1 -> IF11 192.168.1.100 GW 192.168.1.220 PC2 -> IF21 192.168.1.210 GW 192.168.1.1 IF22 ...
user avatar
0 votes
2 answers
53 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 ...
user avatar
  • 1
0 votes
0 answers
53 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&...
user avatar
  • 113
0 votes
0 answers
77 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 ...
user avatar
  • 1
0 votes
0 answers
42 views

Gateway between Ethernet and WiFi adapters

I'm trying to connect between 3 Ubuntu 18.04 devices (1 Laptop + 2 NVIDIA Jetson Nano) where the 1st Nano acting as the gateway between the 2nd Nano and Laptop. Currently the 1st Nano have wlan0 10.42....
user avatar
  • 1
0 votes
0 answers
49 views

Route inbound to outbound ip address netplan

I have configured my VPS to listen to multiple IP addresses (whole subnet, 255 addresses), for example: network: version: 2 renderer: networkd ethernets: ens3: addresses: - 15.16....
user avatar
  • 101
0 votes
0 answers
116 views

How do I create Ubuntu Persistent Policy-Based-Routing Rules?

Would like this question (https://unix.stackexchange.com/questions/354854/how-do-i-create-centos-7-persistent-policy-based-routing-rules) answered for ubuntu using Network Manager, not CentOS. Netplan ...
user avatar
0 votes
1 answer
95 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 ...
user avatar
  • 119
0 votes
0 answers
74 views

How do I connect to multiple servers using Ethernet switch?

I have a lab setup with multiple pieces of equipment that can be controlled remotely using each one's respective embedded Telnet server. I can connect to each one easily by configuring a static IP for ...
user avatar
0 votes
0 answers
163 views

Configure 20.04 as a VPN Router

I'm a beginner ubuntu user. I've been searching the internet for months on how to do this and I literally even partially took an online course on networking and I still made no progress. I'm trying to ...
user avatar
0 votes
1 answer
41 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/...
user avatar
  • 117
0 votes
0 answers
46 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 ...
user avatar
0 votes
1 answer
52 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 ...
user avatar
  • 3
1 vote
1 answer
384 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 ...
user avatar
  • 1,729
0 votes
0 answers
43 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 ...
user avatar
  • 1
0 votes
1 answer
51 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 ...
user avatar
  • 101
1 vote
1 answer
503 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 ...
user avatar
  • 121
0 votes
1 answer
32 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?
user avatar
  • 1
0 votes
1 answer
3k 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 ...
user avatar
0 votes
0 answers
246 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: ...
user avatar
  • 101
1 vote
1 answer
283 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, ...
user avatar
  • 1,047
1 vote
1 answer
596 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 ...
user avatar
  • 113
0 votes
0 answers
179 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 ...
user avatar
2 votes
1 answer
128 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 ...
user avatar
  • 71
2 votes
0 answers
65 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. ...
user avatar
0 votes
0 answers
1k 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 ...
user avatar
  • 121
2 votes
2 answers
3k 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/...
user avatar
0 votes
1 answer
622 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 ...
user avatar
  • 235
0 votes
1 answer
54 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 ...
user avatar
0 votes
2 answers
140 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 ...
user avatar
0 votes
1 answer
139 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 ...
user avatar
1 vote
1 answer
172 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 (...
user avatar

1
2 3 4 5
7