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
0 votes
0 answers
14 views

Linux network forcing named service use different gateway

I have Centos 5.4 linux server running bind 9.3.6. One week ago it began not resolving dns , long story short for some reason it is not resolving when it is on the net via cellular gateway, however ...
user avatar
  • 1
1 vote
0 answers
10 views

What is the impact of routing table on curl/ping with specific network interface?

from documents, I found that we could use ping -I <interface> and curl --interface <interface> to use specific network interface to ping or curl. But from my test on Linux, it seems that ...
user avatar
  • 11
0 votes
1 answer
11 views

Is it possible to move broadcast and local routes in the local routing table to custom routing table without creating a name space?

I have a host with two interfaces. ens4 is mgmnt, ens3 is another network. # ip -br a | sort ens1 DOWN ens2 DOWN ens3 UP 172.16.10.1 ens4 UP 192.168.1.100 # ...
user avatar
  • 285
1 vote
1 answer
60 views

GRE IP to virtual machine (Proxmox) - Traceroute showing full route

88.198.49.xxx = Hetzner (will run virtual machines on this) 141.94.176.xxx = OVH (contains block below) 164.132.xxx.0/28 = IP block to use on Hetzner as virtual machines To get GRE set up I ran the ...
user avatar
  • 2,617
0 votes
1 answer
54 views

Understanding the gateway being 255.255.255.0

I know it looks similar to a lot of questions about OpenVPN and routing table, however, I believe it's different from the rest -- or at least I haven't found a duplicate yet. In my case after I ...
user avatar
0 votes
0 answers
107 views

Routing problem shows this Error: Nexthop has invalid gateway

I am trying to route some traffic over a VPN (to certain IPs) and other via my normal connection. To do this I am trying to add a static route to make traffic to some IPs bypass the VPN tunnel. Very ...
user avatar
  • 151
1 vote
1 answer
15 views

Why does traffic continue to flow through my gateway despite a firewall rule blocking all outbound traffic addressed to it?

While messing around in a qemu guest I discovered something very peculiar. If I set the system firewall to reject all traffic to my gateway (10.0.2.2), the firewall only rejects traffic destined to ...
user avatar
1 vote
0 answers
19 views

Is there any way to enable IPv6 forwarding without enabling other assumptions, particularly IsRouter on ND packets?

I notice in the documentation that enabling IPv6 forwarding sets an "IsRouter" flag on the Neighbour Discovery packets sent by the host. In fact it's stated that when enabling forwarding &...
user avatar
0 votes
0 answers
40 views

DNS Resolution over Network Interface

I am trying to route specific site DNS queries through specific network interface. I have private site which is accessible only through specific network interface enp39s0 (eth) and my default internet ...
user avatar
  • 243
2 votes
1 answer
27 views

Explain routing decision

On my linux server, I have the following routing table: $ ip ro default via 172.28.127.254 dev wlp0s20f3 proto dhcp metric 600 10.8.3.0/24 dev tun0 proto kernel scope link src 10.8.3.2 169.254.0.0/...
user avatar
0 votes
0 answers
16 views

Resolving/Routing network trafic through specific interface

Currently I have two network interfaces (eth, wifi). I am looking for solution to route all traffic *.myprivatedomain.com through eth while rest of the internet goes through wifi. I understand that ...
user avatar
  • 243
0 votes
0 answers
29 views

VPN L2TP Ipsec Connection: unable to communicate to devices in vpn

I set up an L2TP connection to a VPN under Windows and Linux. I enabled an IPsec tunnel to the L2TP host with a pre-shared key and connect via MSCHAPv2 PPP authentication. When I connect via Windows, ...
user avatar
1 vote
1 answer
46 views

How to find a process by network domain it requests?

I noticed my Linux machine makes many DNS queries for a specific domain (subdomain) malicious.foo.bar How can I find out which application or process tries to resolve this domain? I also want to see ...
user avatar
0 votes
0 answers
28 views

Gain Internet access with multiple networks configured

I'm running Ubuntu 21.10 and NetworkManager. I have some difficulties to configure my networks. This is the scenario: WiFi, to connect to the local access-point and to provide Internet access ...
user avatar
  • 557
0 votes
1 answer
37 views

EC2 Redhat - Multiple IP

I have one VPC with two Subnets (SubnetA and SubnetB). My team wants to have multiple IPs assigned to the Instance, each from one subnet. The Instance already have one Private IP (from SubnetA, ...
user avatar
0 votes
1 answer
80 views

Expose a behind-NAT virtual machine under a VPS's public IP

There is a VPS somewhere in the cloud with a public IP address. Also, there is a virtual machine somewhere deep in my garage, connected to the Internet behind NAT. I have established a permanent ...
user avatar
1 vote
0 answers
65 views

Can linux load balance between multiple routes to the same subnet?

I'm looking for a way to load balance between multiple routes for the same subnet under linux. The scenario is that we have multiple Linux machines (EC2 instances) each configured with a Strongswan ...
user avatar
0 votes
0 answers
16 views

Is a vpn in and a vpn out possible on one machine?

I have created a vpn setup where i connect with a vpn to my local network with an anonymous vpn out. I use two virtual machines. One is the gateway to the vpn out connecting to one of many vpn ...
user avatar
  • 1
1 vote
1 answer
51 views

Route between VPN interface and alias interface

I have the following setup: Windows PC <---> Raspberry Pi <---> PLC (DHCP - Ethernet) (DHCP - eth0) (192.168.0.10 - eth0:0) (...
user avatar
1 vote
0 answers
59 views

How to add IPv6 route with systemd-networkd and select source address from limited subnet

TL;DR In a systemd-networkd .network file, in the [Route] section, what do I put for the PreferredSource= option to make it select any available IP address as long as it's within a specific subnet ...
user avatar
  • 5,806
0 votes
0 answers
52 views

Why can an interface not simply be added to a bridge?

My mental model of Linux' bridge is wrong. I have always considered a bridge similar to a simple, unmanaged switch: You plug in some ethernet cables, and data is then copied from one port to another ...
user avatar
  • 29.6k
0 votes
0 answers
54 views

Routing between two NIC with different IP classes

I have an home server with Debian 11. This machine has 2 NICs: enp0s25 with ip 192.168.8.100 mask 255.255.255.0 gw 192.168.8.1 (the gw is the router of my LAN with WAN access) wlx54ef33ebd299 with ip ...
user avatar
0 votes
1 answer
32 views

Enforce IPv4 for certain hosts

How can I enforce IPv4 to be used when accessing certain hosts? Can this be done, ideally specifying by domain names? What I tried, but am not sure if I'm going to be able to do this, is - create a ...
user avatar
  • 101
0 votes
1 answer
35 views

How do I access a VM inside a Linux machine?

I have a Debian machine that hosts a virtual machine / Docker container. I would like to access that container from an outside machine, however it's not just a single port that I need access on, since ...
user avatar
  • 15
0 votes
1 answer
143 views

Wireguard Client on Debian 10 on OVH VPS connected but does not pass traffic

I have simple topology. I want my VPS on OVH to connect to Wireguard VPN Server. Server config is ok because other client (Windows) work well with it. VPN Client Wireguard runs on Debian 10: 4.19.0-18-...
user avatar
0 votes
2 answers
24 views

why does a VPN need to access a public IP address directly (not through the tunnel)?

I am trying to understand how NordVPN works, from the IP side of things. After establishing a VPN tunnel, my public IP address becomes : $ dig +short myip.opendns.com @resolver1.opendns.com 138.199.16....
user avatar
0 votes
0 answers
29 views

Mosquitto clients cannot talk through raspberry pi access point

I have set up a raspberry pi access point using the following guide: https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point/install-software that basically makes you use hostapd ...
user avatar
  • 709
0 votes
0 answers
26 views

Routing to a specific IP-Address fails while network is fine

This is my first post to Stackexchange so if it lacks any neccessary information I can add this after posting. My problem is that I am trying to reach the api of riot games. I have a Debian-...
user avatar
  • 1
0 votes
0 answers
103 views

Bypass VPN for local network

I'm using a VPN service (ProtonVPN) through their CLI (protonvpn) on my GNU/Linux computer (NixOS). The problems is that it reroute all my traffic, including my local-network traffic, causing issues. ...
user avatar
0 votes
1 answer
45 views

Set up FreeBSD machine as router/bridge between a computer and the network

I recently installed and did the initial set ups for a FreeBSD virtual machine. My aim is to utilise it as a router/bridge in a network topology structured as follows: from a PC comes a request for a ...
user avatar
2 votes
3 answers
90 views

Why specify CIDR on ip addr add?

When running ip addr add to assign an address to a network interface, you need (or can) specify the subnet of the interface. So then when you run ifconfig you can see the subnet: enp0s3: flags=4163<...
user avatar
  • 264
0 votes
0 answers
56 views

How to override default route metric (1024) for dhcp client interface with systemd-networkd config?

systemd 237 in Ubuntu 18.04 sets route metric for defaultroute received via DHCP on wired interface to 1024. However, defaultroute on NetworkManager's controlled wlan interface is set to 20. Is there ...
user avatar
0 votes
0 answers
52 views

Route traffic from OpenVPN private network to specified public IP address

I have a VPS at OVH with multiple public IP addresses on interfaces ens3, ens3:0, ens3:1 etc. And I have an OpenVPN server running there, which listens for connections on one of the public IPs. The ...
user avatar
  • 3
0 votes
0 answers
243 views

Why is my openWRT routing not working as expected

I hope I am just missing something simple here. I have a OpenWRT router with a Wireguard VPN running, everything routing through the VPN, which is all working fine. I have put a route in place so that ...
user avatar
0 votes
0 answers
66 views

Accessing PORT on docker container connected to a VPN

I am looking to do almost the exact same thing as ssh into a server which is connected to a VPN service only now the server is a docker container. So to summarize, I have a container built with: ...
user avatar
  • 101
0 votes
0 answers
31 views

Multiple Network Interface Not Working Properly

I have two network interfaces on my Linux CentOS. When I tried to access the web server from outside network via ETH0 it works properly. But when I tried to access via ETH1 it gives me time out. Here ...
user avatar
  • 111
0 votes
0 answers
17 views

How to access remote machine from LAN Linux machine via gateway to gateway VPN set on a router?

Would you please help me to access a remote Linux machine from my LAN Linux machine via an established VPN as gateway to gateway link. The link authentication and connection works. Here are IP ...
user avatar
  • 101
0 votes
1 answer
110 views

How to get Public IP Subnet and default gateway value on my Debian Linux?

In order to configure my VPN, I need to determine these values: Public IP : I can do that with curl ifconfig.me Public IP Subnet : How do get this value ? Default Gateway : how to get this value ? I ...
user avatar
  • 101
0 votes
0 answers
100 views

Connect to remote IP camera behind openvpn client

I need remote connection (from "Client") to an ip camera behind openvpn client. The openvpn server runs on a public IP. ip camera-------ASUS router---------Linux server----------Client 192....
user avatar
  • 1
0 votes
0 answers
35 views

Reach a subnet using a specific network device

My setup is the following: Local network 192.168.1.1/16: FritzBox 7530 as Router/Modem 192.168.1.100/16: my dev machine (Ubuntu 20.04) The FritzBox creates a VPN tunnel to connect a remote machine ...
user avatar
  • 557
-1 votes
1 answer
69 views

How to: several ssh tunnels for http but using sub[1|2].domain.tld in the browser (redirect? proxy?)

Sry: still looking for the correct title of the question. i have two ssh (http) tunnels to a remote server. port 8080 and port 3000 ssh -L 3000:127.0.0.1:3000 -L 8080:127.0.0.1:8080 user@server localy ...
user avatar
  • 11
0 votes
0 answers
56 views

How do I access an headless Linux connected to another Linux via USB in Ethernet Gadget mode?

This has been answered and solved in different ways throughout the internet, but my question is a bit more specific. My setting is as follows: RPI_0 = Raspberry Pi Zero 2 W RPI_4 = Raspberry Pi 4 ...
user avatar
  • 1
0 votes
0 answers
87 views

How can I reach a VM through a wireguard tunnel provided by the Host?

I've a working WireGuard setup with a Server, a Host and a Machine. The IPs are in the 10.0.0.x range with subnet mask 255.255.255.0. I can ping the Machine from the Host and the Host from the Machine ...
user avatar
  • 132
0 votes
1 answer
155 views

EHOSTUNREACH error creating a TCP connection between instances on the same EC2 subnet

I have a client EC2 instance and a server EC2 instance, both residing in the same EC2 subnet. The subnet routing table is configured so that this is a “local” route. When I run EC2 networking ...
user avatar
0 votes
0 answers
18 views

How to understand my virtual machine's outbonding gateway?

My VM Ip address is 192.168.33.134. According to my understanding, It is allocated by Dhcp server of My host machine and my vm have to make it as my gw to exchange data with ouside Internet. Next is ...
user avatar
0 votes
0 answers
49 views

Squid transparent proxy not intercepting

I have configured squid as transparent proxy on centos 8. squid is not intercepting or deploying here is below my configuration. # # Recommended minimum configuration: # # Example rule allowing ...
user avatar
0 votes
1 answer
83 views

Redirect DNS traffic via tunnel interface, all other traffic to use kernel routing table

How do I redirect only DNS traffic to use a tunnel interface when active? Any other type of traffic should use the kernel's routing table instead. Whenever the tunnel interface is not active, DNS ...
user avatar
  • 285
0 votes
0 answers
21 views

Redirect all packets sent to ip/port to loopback/port

I have a process configured to use a certain DNS server for exmaple 8.8.8.8:53 running on Linux and I want to redirect its queries to a local DNS server running on 127.0.0.1:1053 so that my local DNS ...
user avatar
0 votes
1 answer
203 views

A linux virtual interface that can actually route packets

I have a linux machine with one actual interface that connect to the internet; lets say eth0 192.168.1.108 I need to create a virtual interface that routes traffic through the [eth0] but shows a ...
user avatar
  • 1
2 votes
1 answer
191 views

Howto hook a Guest to a `tun` Interface

I'm trying to force all traffic from a guest (Windows or Linux) to go through the VPN of the host (Linux). To make sure that a guest has no access to the internet outside the VPN, I establish the ...
user avatar
  • 132

1
2 3 4 5
20