Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 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.

0
votes
1answer
11 views

Trying to setup port redirection through 2nd gateway

I am trying to setup configuration where all connections to port 161 will go through another gateway (through openvpn) while others are going directly [localhost] -> [gateway] -> [remote] - OK [...
0
votes
0answers
12 views

How can the IP masquerading forwarding through a VPN gateway be configured to access the WAN router the gateway is attached to?

I have a gateway machine on my network running a VPN which routes outgoing traffic through a router, but the masquerading rules prevent the machines on the network from connecting directly to the ...
1
vote
0answers
52 views
+50

How to route traffic through VPN only accessible within VM (without a bridged adapter)?

I have an interesting situation where I have a corporate VPN that can only connect through a specific (outdated) version of Ubuntu (and/or Windows) using a vendor-supplied client that creates a VPN ...
0
votes
0answers
25 views

IPTables and Port Forwarding on an OpenVPNAS Server

I have a new OpenVPNas server running on CentOS 7 (Not married to CentOS 7). That I working on replacing an expensive Commercial VPN that has a Public Static IP. Being that the OpenVPNas server is ...
2
votes
0answers
28 views

Linux AP does not route ping replies to final user

I am struggling with the routing in my topology. In this topology I have the following structure with 2 PCs. Each one of them has 2 different interfaces configured in different subnets: 192.162.2.10/...
1
vote
2answers
33 views

Map IP to use specific Network

I have (sometimes) two different networks connected with my Ubuntu system. One WLAN and one over LAN. Both are local networks, but the WLAN is run/managed by a DHCP server. I now want to connect to ...
0
votes
0answers
38 views

What part of my iptable isn't working correctly?

I've followed two separate guides(1, 2) to setup my Raspberry Pi up as a VPN router. To clarify, the RPi isn't acting as a VPN server but rather acting as a router to forward traffic from some, but ...
0
votes
0answers
29 views

Does routing table work like a per-IP-address firewall, while iptables work like a per-port firewall?

I heard that in a routing table, we can drop packets. Does that work like a per-IP-address firewall to prevent access to certain range of IP addresses from the local device? In comparison, does ...
1
vote
1answer
40 views

What is the network 169.254.0.0/16 used for in the routing table on a virtual machine?

What is the network 169.254.0.0/16 used for in the routing table on a virtual machine (guest: Debian; host: Lubuntu)? How can I find out some or all the network interfaces assigned with IP addresses ...
2
votes
1answer
32 views

How can I access a virtual machine running on a remote machine directly?

My local Lubuntu's wifi IP address is 192.168.1.97 A remote Lubuntu's wifi IP address is 192.168.1.198, A virtual machine running on the remote Lubuntu has IP address 192.168.122.169. I can access ...
0
votes
0answers
21 views

Mapping Docker container UDP port to different host port causes only partial communication failure [migrated]

I have a game server running inside a Docker container that listens on UDP port 1111 (EXPOSE 1111/udp). When I publish this server on the same port on the host (-p 1111:1111/udp) everything works as ...
3
votes
1answer
48 views

How shall I understand the routing table “local”?

$ ip route show table local broadcast 127.0.0.0 dev lo proto kernel scope link src 127.0.0.1 local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1 local 127.0.0.1 dev lo proto kernel scope ...
1
vote
1answer
33 views

What do a network route and a host route look like in a routing table?

In the routing table output by route, What do a network route and a host route look like? From https://www.cyberciti.biz/faq/what-is-a-routing-table/ Network Route: A route (path) to a specific ...
3
votes
1answer
59 views

Is there no routing entry for loopback addresses?

$ /sbin/route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.122.1 0.0.0.0 UG 0 0 0 ens3 192....
1
vote
1answer
31 views

Why does a routing rule directing to a local network interface accept more than one destination IP addreses?

$ /sbin/route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.122.1 0.0.0.0 UG 0 0 0 ens3 192....
-1
votes
0answers
25 views

Reroute URL pointing to single file

Given I don't like i.e. a favicon and want my system to have i.e. https://kai.dj/favicon.ico pointing to https://git.kai.dj/favicon.ico instead. Of cource I wouldn't like to reroute the whole domain (...
1
vote
2answers
48 views

Traffic between subnets VirtualBox

I'm trying to build a prototype of a real network in VirtualBox. I have 3 guest systems: Debian-based router with 3 NICs: enp0s3 Looks outsude.(bridged) enp0s8 LAN1.(gateway to internal ...
0
votes
0answers
24 views

How to add a default route to a DHCP-enabled interface?

All my servers' networking is configured via DHCP which sends, among others, a static route (needed for a VPN) and a gateway. This works fine. I have one exception: a server which should not get the ...
0
votes
0answers
37 views

Isolating bridge interfaces from interfaces not connected to them

I am trying to build an emulation platform for emulating an LTE connection using ns-3 and tap interfaces inside a single real host. I have found this very complicated. I want to be able to create a ...
0
votes
0answers
16 views

static routing wwan vs ppp

I have private APN with few sim cards. In the old days NetworkManager created ppp connection with my modem and then I've run ip route add 10.9.200.0/24 dev ppp0 (or add routing via NM) And every ...
1
vote
1answer
28 views

How to control which network is used for different things on Ubuntu? [duplicate]

System: Ubuntu 18.10 I have a linux Desktop running that is connected to two different networks: WLAN adapter connects to the wifi network for: internet access connect to vpn with openconnect LAN ...
0
votes
0answers
17 views

Redirect traffic between two hosts via iptables

I have 2 hosts: A and B inside 1 local network. (A ---> B) Host A (192.168.1.1) has no access to the telegram server (149.154.167.50:80) Host B (192.168.1.2) has an access (46-Ubuntu x86_64 GNU/Linux, ...
1
vote
0answers
31 views

qemu user networking: forward non-localhost guest IPs to the host

I'm running a qemu VM in user networking mode and I'd like to be able to access forwarded ports from the host. Something like the following works well. -netdev user,id=t0,hostfwd=tcp::9992-:9992 ...
0
votes
0answers
60 views

Tagging inteface traffic to VLAN in Linux based virtual router

I have alpine linux running on virutalbox which works as gateway for my other virtual instances resides on the virtualbox. technically alpine running as virtual router with ip forwarding and ...
0
votes
0answers
55 views

Manage a VPN TUN connection under fedora 29 dhcp routing dns

SoftEther is a nice project to establish a VPN a bit easily using both windows and linux enviorment. It has also a vpn azure ddns. My enviorment is A network 192.168.1.0/24 with various host most ...
1
vote
1answer
30 views

Web Server access via second interface

I’m trying to access a Web Service (port 8080) on my Raspberry Pi via both of the following interfaces (which have static IPs): Ethernet (eth0, 172.22.0.99, connected to a Netgear router). Wi-Fi (...
1
vote
0answers
36 views

Linux is caching routing and IP information for established connection. Asymmetrical routing issue

We have following setup : client (10.10.0.2) balancer (eth1: 10.11.0.3, eth2: 10.12.0.1) web-server (eth1: 10.11.0.4, eth2:10.12.0.2 and eth1:10.11.0.3 see below how) Masquerading router to route 10....
2
votes
1answer
61 views

Configure network interfaces for sip trunk

I have a Debian 9.5 server that I'm trying to use as a PBX server with a sip trunk, this machine has two network interfaces, one pointing to LAN another one pointing to my sip provider. This is the ...
0
votes
0answers
30 views

Networking problems: 2 interfaces with 2 gateways, seperated routing tables not working as expected

I have a server, running Ubuntu 16.04.5 LTS with 2 IP addresses on 2 nics: eth0: 192.168.1.5/24, gw 192.168.1.1 eth1: 192.168.2.5/24, gw 192.168.2.1 As I searched here and on Google, in order to ...
1
vote
1answer
49 views

Programmatically find unused Linux IP route table ID?

As part of a script, I'd like to temporarily add a route table for the duration of the script. ip route add default via "${ip}" dev "${dev}" table "${table}" . . . ip route flush table "${table}" If ...
0
votes
0answers
19 views

Routing over VPN Uplink - Packets do not traverse tunnel

I want to route between my home LAN and a remote LAN over a VPN tunnel between my home server and a remote server. Here's the setup: _________________ ...
0
votes
0answers
20 views

How to set a route after DNAT?

For example,a socket is sent to 1.2.3.4.I want to DNAT it to 1.2.3.5 and then choice a routing table for it. I try to solve it by myself,but failed because the route is before DNAT.
0
votes
0answers
43 views

VPN S2S IPSec. Linux strongswan to AWS VPN and routing problem

I want to connect my Linux Centos 7 to AWS VPC VPN Ipsec. I have got problem with a routing. My IPSec connection via Strongswan is UP. conn Tunnel1 auto=start left=%defaultroute leftid=...
1
vote
0answers
27 views

NAT box with two external interfaces and two network namespaces

I have an ARM embedded system with kernel 4.9.62 that has two physical interfaces as shown below: ________ +-------...
0
votes
1answer
55 views

iptables SNAT limit to specific network

I have one problem which I cannot resolve as I frankly don't know how, I haven't used iptables quite often.... I have one main linux router which is representing gateway for the internet access and ...
0
votes
0answers
40 views

PiHole issues with dual band routers

I have a raspberry pi running pihole as an adblocker AND dhcp server, and a dual band router with two discrete signals send out {ssid1.2G and ssid2.5G} When the pihole dhcp service is on, my laptop (...
0
votes
1answer
116 views

Route traffic to specific network through specific interface

I have a Ubuntu server hosted on Digital Ocean and used as a VPN and through it I would like to access my other servers there over the local network (Private Network). But I am unable to access other ...
1
vote
1answer
33 views

3proxy via pptp-linux VPN

Good day. I have a situation: a computer with debian (K) is connected to the router (A), which distributes the network 192.168.1.0/24. There is another router (B) (it has a “white” ip), which ...
2
votes
1answer
101 views

firewalld to allow routing without NAT between NICs

As a network adminstrator, I often have to set up network gear for remote sites before shipping it. I have found it convenient to use a linux workstation with two network cards, setting the secondary ...
0
votes
2answers
47 views

Routing over Gateway

I have a very basic question about a routing issue I have right now. So my central server with the ip 10.0.0.1 of my own network is the router for the ip net 10.0.0.0/25. On the client 10.0.0.100 I ...
1
vote
0answers
50 views

Unable to add default route via VPN (openvpn)

Initially my routing table looks like this Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG ...
1
vote
1answer
83 views

Client based routing on a gateway

I have a network gateway (Debian) with two interfaces: eth0 and tun0. In general all traffic from all clients is routed through tun0. I would like to change that in the following way: client a‘s ...
6
votes
2answers
394 views

'ping' uses localhost instead of public IP address

Let's say my server has IP address 11.22.33.44 and hostname server1.mydomain.com. When I ping server1.mydomain.com, it looks as if ping is actually using the public IP address: # ping server1....
1
vote
0answers
28 views

Route for hosts in LAN should not handled by VPN-DNS

I use NordVPN-NetworkManager to handle my VPN servers. This works well with NetworkManager, with one single problem: Local hosts will not be resolved by my local DNS (Unify setup) but from the DNS of ...
0
votes
0answers
18 views

How to configure linux to use home router static names?

Once I configured my Mikrotik router (RouterBOARD 962UiGS-5HacT2HnT) to use static routes, like on the picture: I was using Debian 8 then and it worked flawlessly, I could access my smartphone, ...
0
votes
0answers
38 views

How can I set a gateway in a local network?

Homework disclaimer... So I have computer A whose IP address happens to be 192.168.0.81. This computer has a web server installed and exposes port 80. So typing 192.168.0.81 in the web browser ...
0
votes
0answers
45 views

Routing packets to a container that has a destination that is an interface's IP, stopped working in recent kernels:

I have a flannel-based k8s system with a container at 10.233.64.18. I also have an interface ens224:1 with the IP address 10.5.2.11 With older kernels (3.x) I'm able to force packets destined to 10....
0
votes
4answers
114 views

How can a computer assign an IP address to itself? Aren't IP addresses assigned to computers by routers?

I can do this: /sbin/ip addr add 172.17.0.12 dev eth0 This possibility conflicts with my (apparently overly simplistic and untrue) mental model of how assigning IP addresses work. According this ...
0
votes
1answer
131 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 ...
1
vote
1answer
35 views

What is a Linux IP route without outgoing network interface (RTLINK answer lacking `RTA_OIF`) and how do I create one for testing?

When using RTLINK to query the available IP route from a (network-namespaced) Linux kernel, I noticed that on one test system RTLINK returns a route without a RTA_OIF attribute, that is, without an ...