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.

183 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
7k views

Trying to route traffic through a tunnel server error: "Nexthop has invalid gateway"

Short version: we have servers in another data center and we have an openvpn tunnel between them. For the first time, I need to hang server on a different subnet from the tunnel server and I'm ...
Scott Ricketts's user avatar
4 votes
0 answers
855 views

Enable packet routing from network interface eth0 to bridge interface

I have a Ubuntu server connect to LAN 10.1.200.21/24 (bond0), and an Macbook connect to LAN 10.1.200.50/24 (eno1) There are another bridge create by brctl addbr br0 in Ubuntu 10.3.100.1/24, and there ...
王予智's user avatar
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
3 votes
0 answers
2k views

Persistent static routing configuration on 18.04 Server (CloudInit)

What is the current best practice or de-facto standard to define custom routing for Ubuntu Server 18.04? Cloud-Init can only set to, via and metric parameters in the main routing table: https://...
NoMad's user avatar
  • 171
3 votes
1 answer
4k views

openconnect either no internet or no network access

I tried to use openconnect as alternative cisco-pvn client. When connecting to the vpn, my internet connection gets lost but my intranet connection works. This is a common problem and the suggestion ...
Lukasstr's user avatar
  • 131
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
133 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
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
2 votes
2 answers
1k views

Routing IP addresses in Ubuntu 18.04

I have been scratching my head about this all day. Basically, I have several servers on a private network, each with a private IPv6 address assigned and a public IPv4 and IPv6 assigned. I want the ...
matty0501's user avatar
2 votes
1 answer
5k views

Problem with Ubuntu 18 static routing

I'm migrating old ubuntu install to 18 version, but it seems to have some static routing issues when using different networks. First, I tried using NetPlan. I configured TWO NICS with different ...
Rafael Azevedo's user avatar
2 votes
1 answer
2k views

How to configure route so ping will go from one machine to another

My sincere apologies if I was wrong In that, I published the question but found nothing similar. I received an exercise in the course in VMware Workstation at I am doing where I was required to ...
Yoda's user avatar
  • 41
2 votes
0 answers
922 views

Selective routing: how to route the traffic of specific ports through OpenVPN in Ubuntu Server 16.04.4 LTS

My home LAN is organized as follows: DHCP is assigned by a (very) basic modem provided by my ISP (Modem). A server runs Plex Media Server (uid=plex, hereinafter: PMS) and Transmission (uid=debian-...
Stefano A's user avatar
2 votes
0 answers
2k views

PPTP Split Tunnelling

I have VPN on Linux with PPTP protocol. What I want to do is some kind of split tunnelling, which means that I need to use my real IP on some specific internet software, and use the VPN on the rest of ...
DeviL54's user avatar
  • 21
2 votes
0 answers
968 views

How can I forward all incoming traffic from the local network to a VPN tunnel?

The router is forwarding all traffic from an IP range, that goes towards outside the local network, to this host (that is intended to be a VPN concentrator). Using tcpdump on the host verifies this. ...
Alberto Rico's user avatar
2 votes
1 answer
1k views

Gateway routing failure after upgrading from 14.04 to 16.04

I've just upgraded my Ubuntu 14.04 gateway system to 16.04 and somehow the routing has been broken. The system uses a pppoe link to a fibre-modem and runs web, email and DNS services with a shorewall ...
rivimey's user avatar
  • 121
2 votes
0 answers
229 views

How to stop network manager changing my gateway?

Environment: Ubuntu 14.04 Problem: I want to connect to my VPN at work from home. Whenever I connect to my wireless, my route is set up to the work route. The home gateway is supposed to be 192.168....
David Boshton's user avatar
2 votes
0 answers
441 views

Connecting to VPN server closes SSH tunnel

Once I start to connect the VPN, I immediately lose the connection to my dedi-server. My aim is to still be able to ssh to my dedi-server, even if I connect to the external VPN server with my dedi-...
Max's user avatar
  • 371
2 votes
0 answers
263 views

Ubuntu router with 2 NICs, traffic stops and I don't understand why

I'm currently running a Beaglebone black with bone-ubuntu-14.04-console-armhf-2014-08-13-2gb.img (or a more recent version), which acts as a firewall / router. It has two network interface, one USB ...
Gakusei's user avatar
  • 21
2 votes
1 answer
2k views

OpenStack Neutron outside communication through router doesn't work, local between VMs does

I am pretty lost with this one for few day now and can't move further. Any ideas will be very welcome. My private net for VMs: 10.5.5.0/24 Outside link via 192.168.22.0/24 (my router's IP 192.168.22.1)...
user263416's user avatar
2 votes
1 answer
2k views

OpenVPN - Routing issue

Server: Ubuntu 11 (Openvz VPS) Client: Windows 7 Issue: clients connect successfully to VPN, but loss of internet access once inside the VPN. Facts: Everything mostly defaults Is a routing/...
Releaseme's user avatar
2 votes
1 answer
144 views

Networking and Traffic routing question

Hello I had a few of questions related to networking, let me list them in a logical order: 1) Can multiple interfaces be bridged together so that it results in increased bandwidth? 2) Can wired and ...
irenicus09's user avatar
2 votes
0 answers
698 views

iptables, forwarding between interfaces

I'm trying to setup a router using iptables. But, after a lot of examples I've tried, I can't get anything to work. My idea is to setup a box in between my Cisco and the main switch for firewall, ...
yates's user avatar
  • 21
1 vote
0 answers
37 views

Network setup for a mobile robot base

I am working on a mobile robot base that is supposed to be controlled from a stationary control station. The robot itself has multiple computers onboard, which are on an internal Ethernet network. The ...
feoranis's user avatar
1 vote
0 answers
100 views

Ubuntu as VPN gateway for local LAN

I'm running Ubuntu 23.10. On it I've established a VPN connection to my remote HQ with an route set in .ovpn as follows: route 192.168.1.0 255.255.255.0 From Ubuntu itself, I can access and ping ...
trash's user avatar
  • 11
1 vote
0 answers
163 views

OpenVPN: connect to device with duplicate address to local network

I'm connecting remotely to my office with OpenVPN set up on my (TP Link Omada) router. Works well. But I have the same IP address range and can't connect to remote devices that have the same address ...
Matthew's user avatar
  • 433
1 vote
0 answers
212 views

Should I use bridge or route with netplan?

I have an RTSP camera connected through ethernet to a computer. This computer is set up to allow connections over WiFi. What I want is to be able to reach the camera from a laptop that is connected ...
Dan-Erik Lindberg's user avatar
1 vote
0 answers
463 views

Troubleshooting netplan routes on server 22.04.2

I’m looking for some guidance on the correct way to set up this network. I have an instance of ubuntu server 22.04.2 running on proxmox. Two interfaces are attached to the VM and vlan tagging is ...
The_Doug's user avatar
1 vote
0 answers
22 views

Routing application traffic through specific WIRELESS network interface

I've seen quite a few tutorials, more or less complete, about forcing an application to use a certain/specific network interface, however, all such tutorials deal with wired interfaces. The most ...
Aqualung's user avatar
  • 131
1 vote
1 answer
2k views

netplan routing in ubuntu 22.04 gone bonkers

Sorry if this superlong, i have a remote PC running ubuntu 22.04 server that has two services on it, ssh and xrdp, i use it to connect to a remote office using checkpoint VPN, anyways, everything ...
arangaran's user avatar
1 vote
0 answers
237 views

No ping between two 22.04 laptops but can ping both ways from 3rd (windows) device

I have a subnet 192.168.100.x where all IPs a served DHCP over WiFi. I have XPS laptop 192.168.100.121 (Ubuntu 22.04) Inspiron laptop 192.168.100.107 (Ubuntu 22.04) Windows laptop 192.168....
Shaped Sundew's user avatar
1 vote
1 answer
172 views

How to set up routing between two networks?

How to set up routing between two networks? Network #1 ip-10.10.10.1 mask-255.255.255.255 ip-10.10.10.2 mask-255.255.255.255 Network #2 ip-10.10.0.0 mask-255.255.255.0 gw-10.10.0.10 enter image ...
epx's user avatar
  • 31
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
  • 81
1 vote
1 answer
1k 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
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
1 vote
1 answer
820 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
1 vote
1 answer
383 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
0 answers
658 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
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
1 vote
1 answer
921 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
1 vote
0 answers
265 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
1 vote
0 answers
63 views

What is defining the routing table?

Some script, somewhere, is defining the routing table for a Ubuntu 16.04 system and we can't figure out what. It isn't in /etc/udev/, /etc/network/, /etc/systemd/, /etc/init.d/ or any other likely ...
ebsf's user avatar
  • 519
1 vote
0 answers
416 views

Need to set default route to upstream DHCP interface on Ubuntu Server 18.04 LTS

I'm building an edge router using Ubuntu Server 18.04.03 LTS and need to configure the routing table to define the default route as being the upstream / WAN interface, which gets its IP address and (...
ebsf's user avatar
  • 519
1 vote
0 answers
121 views

Ubuntu - Routing between different subnets

Topology I was looking at the other similar questions and could not find one that matches this one. I have an Ubuntu VM with 2 different subnets running on Hyper V. ETH0 - IP 10.10.1.2/24 - GW 10....
Robson Oliveira's user avatar
1 vote
0 answers
130 views

Ubuntu as router: Network Layer packets not reaching WAN

I've got most of it working, but can't quite close the loop. I'm running Ubuntu 18.04.2 on my Raspberry Pi 3. I'm trying to use it as a wireless access point, but not as a bridge. I followed this ...
Rhys Ferris's user avatar
1 vote
0 answers
486 views

Networking question ip routing

Let me start by saying I am a complete novice with very little networking knowledge. I have set up a VPN via a guide and everything is working fine, however, I would like for the IP routing or ...
Alex's user avatar
  • 11
1 vote
1 answer
6k views

How to add routes

In windows I add to the routing table: route add 159.182.151.0 MASK 255.255.255.0 159.182.152.110 How to add similar to ubuntu ? thanks.
Omar  Barrera Valentin's user avatar
1 vote
0 answers
74 views

Port activity after applying iptables

I've applied a rule in the iptables (Ubuntu x64 18) sudo iptables -t nat -A OUTPUT -p tcp --dport 64080 -d 172.31.132.86 -j DNAT --to-destination 149.154.167.50:80 sudo iptables -t nat -v -L OUTPUT ...
IgorZ's user avatar
  • 171
1 vote
0 answers
522 views

LTSP fat clients not connecting to internet in proxy DHCP mode

My current setup is modem to router. Router(10.10.10.0/24) to virtual server via enp8s1. Virtual machine running pfsense as a DHCP server via enp3s0(a second nic in the server) a network 192.168.67.0/...
rvcabc's user avatar
  • 91
1 vote
0 answers
117 views

How can I improve this iptables

As a training, I'm trying to install a server with ESXi, On this ESXi, I have a first ubuntu 16.04 VM that will be the firewall between WAN and LAN. So the host machine IP is 192.168.1.25 and the ...
Grégory L's user avatar