Skip to main content

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
1 answer
29 views

Can i use both wifi and ethernet at the same time

I am planning to build an airplay receiver with ubuntu. The network configuration in my house is a bit complicated. My home network is in a "Double Nat" state, so other smartphones inside ...
Max's user avatar
  • 1
1 vote
0 answers
38 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
108 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
0 votes
2 answers
680 views

Route traffic on different ports through different network interfaces

My situation is this: I’m setting up a server running at home (Ubuntu Desktop 22.04.3 LTS) to run an email server and a few other online services. As we all know, for my email to work reliably and not ...
wpbdry's user avatar
  • 45
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
1 answer
277 views

How can I force my Ubuntu Server to use the correct ethernet port (interface)

I have an Ubuntu Server running Ubuntu 22.04.3 LTS. It has two ethernet ports, enp3s0 and enxf8e43b557271. enxf8e43b557271 is much faster, so I want to use that by default, but, if it goes down for ...
Tim's user avatar
  • 32.9k
0 votes
0 answers
277 views

Use TPROXY feature of iptables with Ubuntu 22.04

I'm trying to use the TPROXY feature of iptables. For example : iptables -A PREROUTING -t mangle -p tcp -i eth0 -j TPROXY --on-port 5000 --tproxy-mark 1 This feature works perfectly on Ubuntu 16.04 (...
Noxivs's user avatar
  • 1
0 votes
1 answer
123 views

Something adds routes with metric being consecutive integers starting from 201

My home router is connected to the WLAN with enp2s0 and to the internal LAN with enp3s0 (192.168.10.0/24). After migration from Ubuntu 18.04 to Ubuntu 20.04 (done last week) something keeps adding and ...
Adam Ryczkowski's user avatar
0 votes
0 answers
170 views

Route traffic from VPN to web proxy

I'm struggling for days to do this: I've got an Openvpn installed on a ubuntu server, I want this traffic to be routed to a web proxy (socks5), so it will look like this : Device->VPN->Proxy->...
Rimcus's user avatar
  • 1
0 votes
1 answer
183 views

How to set Ubuntu 2 interface to LAN and Proxy Internet

I have 2 interface ens3-192.168.100.10 and ens8-10.100.0.10. Both get via dhcp. ens3 is for lan access and ens8 is for proxy to internet and to run apt update. Problem is now I have to 2 default ...
chenoi's user avatar
  • 101
0 votes
0 answers
297 views

PBR routing doesn't work on Ubuntu 22.04 Server

I'm attempting to configure my server, but it's proving to be impossible. Thus, you are my last hope! To provide some context, my virtual server (Ubuntu 22.04 server TLS) has 3 network devices ...
0L4Y4's user avatar
  • 1
0 votes
1 answer
467 views

How to bypass wireguard vpn except some ports

I have some ubuntu hosts that are connected to a wireguard vpn. Each of them has a openssh server on port 22 and another service that serve in tcp on port 19999. Is there a way that all the traffic ...
Ripper346's user avatar
  • 101
0 votes
0 answers
31 views

Ubuntu iptables

How to accept traffic coming from server1 to server 2 and route to internet from server 2 Server 1 doesn't have internet connection it should get routed from server 2
Sanjay Kumar's user avatar
1 vote
0 answers
214 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
0 votes
0 answers
40 views

What would cause spontaneous default network changes and how to fix smb access?

I have an Ubuntu 20.04 LTS Desktop install with 4x physical network interfaces. One interface connects to a larger network with access to file shares etc and the others connect to smaller networks to ...
Geordie's user avatar
  • 211
0 votes
0 answers
908 views

Ubuntu 22 does not accept new routing table

I'm running Ubuntu 22.04 with Kernel 5.15.0 and I am unable to create a new routing table. Create a new, custom routing table: $ sudo cat /etc/iproute2/rt_tables # # reserved values # 255 local 254 ...
sugusi's user avatar
  • 1
0 votes
0 answers
105 views

netplan equivalent of ip rule add oif eno5 lookup 5000

In a netplan yaml configuration file like this one: network: version: 2 renderer: networkd ethernets: eno5: dhcp4: false dhcp6: false link-local: [ ] addresses: ...
PouJa's user avatar
  • 163
0 votes
0 answers
186 views

Route all traffic (except port 3336 and a few more) from eth0 to specific ip

How can I route all incoming traffic from eth0 interface to ip 10.8.0.5 (VPN tunnel)? I need to forward incoming traffic except port 3666, to specific ip on ubuntu 22.04 machine. In future list of ...
Михаил Агафонов's user avatar
0 votes
1 answer
538 views

Why can't I access internet via vlan in private network?

As the title suggests, I'm having issues setting up the networking so that a server can access the internet. Bear with me while I lay out the infrastructure. All 3 servers are hosted by Hetzner. The ...
stewie's user avatar
  • 101
0 votes
0 answers
55 views

Ubuntu static routes location

I have Ubuntu 18.04 server wich can't boot because HDD problems and I didn't succeed to fix it. The HDD is readable and I can open it from Ubuntu usb drive for example. So, is it possible to find ...
Мирослав Сотиров's user avatar
1 vote
1 answer
6k views

difference between nmcli connection reload and nmcli device reapply?

I am currently using Ubuntu 20.04 machine and having Network Manager as the service for managing network configuration. What is exactly the difference between the commands nmcli connection reload and ...
Alakananda S's user avatar
-1 votes
1 answer
108 views

VPN Connectivity and Routing Problem - Local Server to Internet via Cloud Hosted Server - wget/apt Oubound Connections

I have a network/connectivity/routing problem associated with achieving public internet connectivity through a VPN tunnel to a cloud connected server hosting a VPN server/gateway. The Local Server is ...
Martini's user avatar
1 vote
0 answers
471 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
0 votes
1 answer
62 views

Routing Table Modification on Ubuntu/Raspbian with VLAN Consideration

I had an issue with my Pi-Hole recently where after resolving I found my networks no longer had DNS resolution. After some troubleshooting I found the Unbound process (PI-Hole upstream) was sending ...
willdabeast's user avatar
0 votes
1 answer
4k views

ubuntu 22.04 routing using netplan

Hi I have a new ubuntu server with 2 interfaces and i wrote a netpaln config for it like this: network: version: 2 renderer: networkd ethernets: ens160: dhcp4: no addresses: - ...
pumper's user avatar
  • 3
0 votes
1 answer
3k views

How to set iproute2 routing table for 2 network interfaces on Ubuntu 22.04

I want to use 2 network interfaces (enp7s0 and enp8s0) simultaneously on Ubuntu 22.04. Both has its own separate internet connection. My default is enp8s0 which I plugged the LAN cable in first. I ...
God of Money's user avatar
0 votes
0 answers
79 views

DNS and/or routing broken on one machine after subnet change in LAN

I reconfigured my home router to use 192.168.39.0 as the subnet. Previously it was 192.168.0.0 I have one Ubuntu 22.04 machine which now has broken DNS and/or routing. I have eliminated hardware ...
Tim Richardson's user avatar
1 vote
2 answers
707 views

How to configure netplan so enp9s0 goes to internet and enp5s0 goes to lan?

I must build a replacement server using Ubuntu 20.04.5 LTS, and I'm trying to migrate from NetworkManager to netplan. My new server can connect to the internet, but complains that it has no route to ...
Charlweed's user avatar
  • 139
2 votes
3 answers
960 views

Route all traffic on port 443 (IPv4), to an external IP address on port 80 (IPv6)

I want to host a website from home using the Yggdrasil network. Yggdrasil gives me a static IPv6 address at home (even if behind a DNS). However "regular" users cannot be routed to that IP ...
Thomas Browne's user avatar
1 vote
0 answers
23 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
2 answers
2k views

Route all traffic from one server to another

I have two servers. First one is from a local datacenter. OpenVPN is installed on Ubuntu 22.04. Clients connect to this server and get an IP from 10.8.0.0/8 pool. Clients are configured to redirect ...
Omid Shojaee's user avatar
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
0 votes
1 answer
776 views

How can I set up my Ubuntu sever as ipv6 tunnel?

I have an Ubuntu server one bare metal that has both ipv6 and ipv4 dedicated, but my home ISP ONLY PROVIDES ME WITH ipv4, is there any sane way of setting up my dedicated server as an IPV6 tunnel ...
Max's user avatar
  • 392
2 votes
1 answer
112 views

ubuntu 20.04 wrong ip in LAN

After updating Ubuntu 20.04 and installing wireguard I'm facing an issue. My machine wasn't reachable via ssh and pings anymore. ping 192.168.178.42 (the LAN ip of the ubuntu machine) outputs: $ ping ...
bj4rne's user avatar
  • 23
1 vote
0 answers
238 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 votes
1 answer
128 views

How to read and alter packet info when forwarding

I have two laptops running ubuntu(both 20.04.4 LTS x86_64) and im trying to use one as a router(lets call them laptop1 and laptop2 and laptop2 is acting as a router). So far ive used the ip route ...
hirad davari's user avatar
1 vote
2 answers
5k views

openVPN client does not create routes - Ubuntu 22.04

I am struggling to get my openVPN 2.5.5 working on Ubuntu 22.04. Long story short : my server has been working for years (recently updated to Ubuntu 22.04) I have other clients connecting correctly (...
rc1317's user avatar
  • 21
0 votes
0 answers
129 views

How do I get ssh to start working?

I turn an unused laptop into an Ubuntu server and everything was working great. I connected to it through ssh on my Windows 10 computer and was able to set up and access Nextcloud to upload all my ...
Price's user avatar
  • 1
0 votes
1 answer
897 views

set up 2 networks card with different gateways

I have a VMs Ubuntu server 20.04 with two network cards, I would like to set up a different vlan with different gateway in each one. I made my routing table in the file yaml but when I assign gateway ...
intheshadow's user avatar
0 votes
0 answers
43 views

Single Server with 3 network subnets - how to setup routing tables

I have 4 servers, each having 8 NICs each. For each server, 2 NICS form bond0 (192.168.1.10; GW: 192.168.1.1), 2 NICS form bond1 (192.168.2.10; GW 192.168.2.1) and 4 NICS form bond2 (10.154.46.200; GW:...
Jeffrey's user avatar
0 votes
2 answers
1k views

Help with netplan and 2 LANs on Server v22.04

I'm running Ubuntu server v22.04 with 2 NICs - one facing the ISP and one facing the local LAN and is intended to be a media server for the local LAN and the interface between the LAN and WAN. The ...
TheKeeper's user avatar
0 votes
1 answer
5k views

Ubuntu 22.04 shared internet connection with multiple interfaces

I use Lubuntu 22.04 LTS with Cinnamon desktop to be precise. I have one network device with a single interface on my motherboard. enp5s0 is the one connected with my ISP-router, with fixed IP 192.168....
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
0 votes
0 answers
959 views

Help with correct routing for Tailscale/Wireguard - really frustrated!

Running two VPS instances. One in Auckland, and an Oracle Cloud instance in Sydney. Auckland acts as a wireguard server - using PiVPN's build there, and I connect to the Sydney instance via the ...
Paul Barnett's user avatar
0 votes
1 answer
807 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 ...
RedDragon's user avatar
0 votes
0 answers
222 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 ...
NickDGreg's user avatar
  • 101
0 votes
0 answers
393 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 ...
Abhijith H R's user avatar
0 votes
1 answer
471 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 ...
Christophe Foyer's user avatar
0 votes
0 answers
340 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 ...
user105939's user avatar
  • 1,671
0 votes
0 answers
116 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
2 3 4 5
8