Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [routing]

Routing (in IP-based networks) is the process of selecting paths in a network along which to send network traffic.

Filter by
Sorted by
Tagged with
5 votes
1 answer
3k views

How do I configure OpenVPN as a Gateway client for Witopia?

I have the following setup: Witopia SSL account Synology 409 NAS (with OpenVPN and Apache etc) PS3 Mac Apple AirPort router (configured for NAT) Locked IPT-box (using DHCP and NAT traversing) &...
2 votes
2 answers
3k views

Setting up a NordVPN gateway on my Raspberry Pi

Goal Set up NordVPN on my Raspberry Pi and use it as a gateway. Current set-up Raspberry Pi2 running Arch ARM, connected to my router via ethernet cable NordVPN account nordvpn installed on my Rpi ...
0 votes
0 answers
12 views

Firewalld (nftables) SNAT problem

so my setup is following: A: PrivIP: 172.16.1.1 PublicIP: 212.1.2.3 B: PrivIP: 10.123.0.1 (Interface: dummyip, dont ask why I named it like that) PublicIP: 213.1.2.3 (Interface: eth0) They both are ...
3 votes
1 answer
51 views

IP forwarding between two LANs without masquerading

I have two LANs connected with a VPN: LAN1:192.168.0.0/24 <=> VPN:192.168.2.0/24 <=> LAN2:192.168.10.0/24 The two routers (one on each side of VPN) are running on Debian Linux and IPv4 ...
0 votes
2 answers
2k views

persistant default route on debian 9

I have three interfaces on a Debian 9 box. I need to set the default route permanently for the entire system. I have attempted to add it in different ways to the /etc/network/interfaces file, but ...
0 votes
2 answers
59 views

Wireguard and Ubuntu 22.04. Forcing traffic from port 25 over VPN

So Im hosting a server in a docker container which is a client in a VPN network. I Cant send any egress traffic out of port (say ummm 52) through the host. That box is a client to a wireguard server. ...
4 votes
1 answer
3k views

Asterisks keep going in traceroute

I know that asterisks mean that the router didn't send the ICMP message back saying that TTL was 0 and I had to dump the request. but sometimes for some cases when I want to check for the path of my ...
2 votes
1 answer
2k views

What is the difference between using Linux VRF, network namespaces and using different routing tables?

The ip-vrf manual reads : A VRF provides traffic isolation at layer 3 for routing, similar to how a VLAN is used to isolate traffic at layer 2. Fundamentally, a VRF is a separate routing table. At ...
0 votes
0 answers
5 views

How does dynamic routing stack up against multipathing/bonding techniques for a remote gateway?

I have a remote gateway to which I connect using two IKEv2 VTIs, OpenVPN, Wireshark, or a combination of these in /30 tunnels. Then create an ECMP route using OSPF (FRR) and the rest is like magic. I ...
1 vote
2 answers
2k views

Can't delete default route on linux

I have two default routes and I want to delete one of them, but can't. I get no error message and the route is still there. Am I doing it wrong? Is NetworkManager screwing with me? [11:09:52]user@...
0 votes
0 answers
23 views

Server not responding to ICMP requests

I have 4 servers running on rocky linux at a datacenter in Chicago but one is not answering to ping requests. I have been checking for solutions for day but so far things look good, what I am missing? ...
0 votes
2 answers
2k views

Failover default route on primary link outage

I have 2 ISPs, and a server with two IP addresses, something like this: eth0: 161.0.0.2 eth1: 171.0.0.2 I have set www.example.com with two A records, so that I have DNS LB. App is working fine ...
4 votes
1 answer
3k views

Prevent eth0 from adding default route

I am looking for a way to prevent eth0 interface from adding a default route to my main routing table on my Linux machine. I have a Debian distribution (Jessie - 8.0) and was looking at the post-up ...
1 vote
1 answer
81 views

How does linux report SNAT port exhaustion [closed]

I would like to monitor a router for potential SNAT port exhaustion. I'm fully aware of how unlikely this is to happen. I would still like to know how I could detect this on my running system. Does ...
1 vote
0 answers
18 views

Wireguard not routing traffic back

I have 2 Ubuntu Servers with wireguard setup on them . one server is acting like middle man . so clients traffic is routed to middle server and middle server route them to the other server(I call it ...
0 votes
1 answer
38 views

How to edit an already existing routing metric in RHEL 9.3

Hi, based on the attachment, I would like to ask a question. I have configured a VM in VMWare and installed Redhat 9.3. I configured the VM with 3 network interfaces and allocated it 3 different IPs ...
0 votes
0 answers
28 views

Flow of marked packets in Linux network stack

Summary: My question is regarding the flow of marked packets in the network stack. Here is what i have done: I have marked packets in the mangle table using the OUTPUT chain. I have also added a tun ...
1 vote
1 answer
152 views

Convert unusual Netplan config to avoid deprecated Gateway4 field

I have an existing 01-netcfg.yaml file from documentation which is supposed to have worked previously. network: version: 2 renderer: networkd ethernets: eth0: dhcp4: no dhcp6: no ...
1 vote
1 answer
2k views

Iptables not forwarding. Input instead

I have set up iptables on my ubuntu headless server: iptables -S -P INPUT ACCEPT -P FORWARD DROP -P OUTPUT ACCEPT -A INPUT -s 10.1.3.90/32 -i eth0 -j LOG --log-prefix "INPUT: " -A INPUT -i eth1 -j ...
0 votes
1 answer
38 views

Cloudflare resolves but Google doesn't. Why?

I am in Mexico. This fails: % curl -s -H 'accept: application/dns-json' 'https://cloudflare-dns.com/dns-query?name=www.bispebjerghospital.dk&type=A' | jq . { "Status": 2, "TC&...
0 votes
1 answer
609 views

Can I assign a virtual interface of wireless to a network namespace?

I am trying to make a VPN router while keeping the host itself accessing Internet without VPN. The host has only one NIC which is wireless. So I have added two virtual interfaces via iw phy phy0 ...
2 votes
1 answer
50 views

How to configure a WireGuard client to interact with two distinct servers?

I want an unmanned WireGuard client to work with redundant WireGuard servers. Physical: I have a master database server in a VPS of provider A in the USA. I have continuous replication running to a ...
0 votes
1 answer
2k views

Configuring Linux Mint as a Gateway

My trusty Slackware box died, and I had to replace it with an already built Linux Mint v18. I was hoping this would be a drop-in replacement, but routing has changed over the years with iproute2. I ...
27 votes
7 answers
285k views

How can I change the default gateway?

Currently I'm running a FreeBSD 9.1 and the default gateway is already configured in the rc.conf. rc.conf: defaultrouter = "10.0.0.1" But now I want to change the default gateway without rebooting ...
3 votes
2 answers
6k views

How to change the default source IP address to be something other than the address facing the default route?

Background Information I'm using a Linux system to route traffic for a small block of public IPv4 addresses (by enabling IP forwarding in sysctrl.conf). The router is connecting to the ISP over eth1 ...
0 votes
1 answer
2k views

Having trouble setting up data calling with rmnet_data0 interface

I'm trying to set up a data call through rmnet_dataX interface which is referring to a cellular connection through the card inserted, but having trouble doing so. I do the following ifconfig ...
0 votes
0 answers
9 views

OpenWRT - RTSP doesn’t work on 802.11b (no video stream, but audio works)

I have an issue with configuring OpenWRT on MT7628 chip from Mediatek. OpenWRT version: 19.07.3 Expected behavior: OpenWRT creates a local Wi-Fi network (no connection to the global internet). Two ...
0 votes
1 answer
22 views

Forcing container to route outbound through VPN - source-based routing not working

I need to ensure outbound traffic from a specific (Docker) container is tunneled through my (WireGuard) VPN (running on my VPS) to exit to the Internet with my VPS external IP, but I am not being ...
3 votes
1 answer
3k views

Route incoming traffic on openVPN server to client

I have a VPS with a public IP that is running OpenVPN and a local server that is the only VPN client on this. Is it possible to route incoming traffic on lets say port 80 to the client? My local ...
0 votes
1 answer
54 views

configure raspberry pi as multicast server and host

I have a network setup that I want to use to research igmp. I have two routers and a switch, three raspberry pis are connected to the switch with different ip address subnets. I have already ...
0 votes
0 answers
7 views

Routing Rx and Tx traffic to/from a port on separate interfaces

I have a Guest OS that looks sort of like this: Host OS Guest OS Intranet --- eth0 -------|--- eth0 / eth1_in <--|--< eth1 <--\ <some app> | ...
0 votes
1 answer
24 views

Route all TCP traffic from port to another host:port

I have a wireguard config, creating a VPN between a remote server (10.0.1.1) and my local machine (10.0.1.2), so that the server can reach the local machine and vice versa. I'd like the server to ...
1 vote
1 answer
3k views

VPS: How to forward traffic to devices from public IP

My goal is to set up a public IP for a Android Smartphone which is running an "IP Cam" software. The interface can be accessed in local network on (example) 192.168.0.2:8080, but it has no public IP, ...
1 vote
0 answers
107 views

How does all traffic go through wireguard?

I'm trying to understand how all traffic on my machine gets routed through wireguard when I connect to a wiregurad VPN. See outputs below of ip route ip a s, and ip rule. My VPN was set up using my ...
4 votes
2 answers
3k views

How do I route a spare network interface through an SSH tunnel?

I just bought a Raspberry Pi and I am wanting to route an ad hoc wireless network interface fully through an SSH tunnel that was created using another wireless interface. I want to do this so that I ...
10 votes
4 answers
25k views

NetworkManager changes default routing policy

I have a machine with a built-in NIC (eth0), which serves as a DHCP server for a Raspberry Pi. I also have a USB 3G modem, which shows up as ethernet device eth1. eth0 has the static ip 192.168.100.1 ...
1 vote
2 answers
3k views

On ssh connection the auth.log shows as source IP the external IP of the server instead of the IP of the client

I have a very odd situation with my ssh connection. Every time I connect to my server, whatever is my external ip, the connection have as source the server's external ip. Example Server S.O.: ...
0 votes
0 answers
19 views

How does IP Masquerading send packages back to the original device on inbound connections?

I established a WireGuard Point-to-Site connection following this Tutorial: https://www.procustodibus.com/blog/2020/11/wireguard-point-to-site-config/#configure-routing-on-host-b The connection itself ...
0 votes
0 answers
23 views

Script for ubuntu with 2 IPv4 so that auto choose which direction to go through

I have a PC with two IPs, for an internal network with IP 10.X.X.X and another for an external network with IP 192.168.X.X I have two network configuration profiles, one for each. If I am on 10.x.x.x ...
1 vote
1 answer
73 views

How exactly does Linux use the prefix length assigned to network interface?

I assigned IP address 192.168.0.1/24 to eth0 in two ways. A. Adding 192.168.0.1/24 as usual # ip addr add 192.168.0.1/24 dev eth0 # ping -c 1 192.168.0.2 PING 192.168.0.2 (192.168.0.2) 56(84) bytes of ...
2 votes
1 answer
63 views

nft port forwarding not working on router

I have a machine that serves both as a router and a server. I have several lxc containers on this machine, and want to expose them to both the LAN and WAN. Following https://access.redhat.com/...
0 votes
1 answer
35 views

Forwarding REST API requests and responses using iptables

I want a linux node that I own to be the 'router' -so to speak- for certain packages, REST API packages to be precise. The whole situation is this, I have made a web-ui program, this program will be a ...
0 votes
0 answers
22 views

iptables static routing simple entry (ddwrt)

Im trying to add a policy-based routing entry to my dd-wrt router, the router is in Router mode, not Gateway mode (using my own Ipv4 block) bsaically I wish to redirect traffic to a different gateway ...
4 votes
1 answer
3k views

Routing traffic through VPN using Raspberry PI

I have a setup like this: Raspberry Pi connected to router via LAN cable Created a bridged connection between eth0 and wlan0 Using hostapd for Wi-Fi hotstop Configured l2tp/ipsec connection with one ...
0 votes
0 answers
22 views

Centos 7 Policy Based Routing not working CEntos 6 no problem

Centos 7 Policy Based Routing not working CEntos 6 no problem How can i transfer my static based routing policies from Centos 6 to 7 ... I have two WAN ip/gateways, 1 LAN ip address on on NIC . . ...
0 votes
0 answers
39 views

Create Network Interface with SSH Tunnel

My question has already been asked with this exact title, however since new users brilliantly cannot ask further questions in the comment section because of reputation the only viable option that I ...
1 vote
1 answer
30 views

Route all traffic via VPN except SSH (for using an SSH tunnel)

Hi I need to create the following configuration: I have a VM where I've set up a PPTP connection pty "pptp x.x.x.x --nolaunchpppd" name username password password remotename PPTP require-...
0 votes
1 answer
35 views

ip route: no route to host

Straightforwardly, I've two inet devices: enp0s3 and enp0s9. enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 08:00:27:f3:bf:35 ...
17 votes
7 answers
47k views

How to route specific addresses through a tunnel?

There are certain websites/services which I can only access from the subnet on which my server is located (think of the typical intranet scenario). Is there a way to transparently route traffic that ...
4 votes
1 answer
9k views

How to flush routing cache in Linux?

There is an Oracle Linux 7 system with Unbreakable kernel 5.4.17-2136.304.4.1.el7uek.x86_64 (which is very recent for the RHEL7-like system, which usually uses 3.10-based kernel). Network interfaces ...

1
2 3 4 5
23