Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [routing]

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

471 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
2 answers
455 views

Looking for elegant iproute2 solution for host w/ 2 interfaces on 2 networks and 3 gateways

I've got a Linux webserver with 192.168.0.2/24 assigned to eth0 and 172.16.0.2/24 assigned to eth1. I must not change this. Here's the routing so far: 172.16.0.0/24 dev eth1 proto kernel scope link ...
Frx's user avatar
  • 81
6 votes
0 answers
4k views

Routing traffic for specific user to specific interface

I have a Linux box with these interfaces: eth0 Link encap:Ethernet HWaddr 14:da:e9:ef:75:7d inet addr:176.9.85.182 Bcast:176.9.85.191 Mask:255.255.255.224 tun0 Link encap:UNSPEC ...
steved's user avatar
  • 61
5 votes
0 answers
2k views

Ubuntu pinging from link-local address instead of global

I have a network like this, (client 2001:10:1:100:0/64) -> router -> (server 2001:172:16:200:0/64) However, when I ping from client to the 172.16.200.0 network, (or anywhere) it always uses the link ...
Thomas's user avatar
  • 81
5 votes
0 answers
3k views

ip rule not acting on fwmark

I'm trying to use iptables to load balance web traffic over multiple DSL lines by marking the packets and routing based on the mark. I'm working with CentOS 6.6, Kernel 2.6.32-504.16.2.el6.x86_64, ...
NudeRaider's user avatar
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) &...
Björn's user avatar
  • 151
5 votes
1 answer
1k views

Where did pand go?

Most guides on setting up a Bluetooth access point use a program named "pand" to do so. Seemingly, this program was dropped in bluez5. How can PAN be set up without it?
XZS's user avatar
  • 1,448
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 ...
Nikita Kipriyanov's user avatar
4 votes
1 answer
2k views

Wireguard fallback to relay when direct connection is unavailable

I have three machines hooked together: A desktop, a laptop, and small public server. The desktop and laptop are usually on NAT-ed networks, while the server has a static IP with publicly accessible ...
markasoftware's user avatar
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 ...
py9's user avatar
  • 141
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 ...
user3889963's user avatar
4 votes
0 answers
422 views

Routing policy is not working

I have an Access Point with OpenWrt. On other host of the same LAN there is a squid (IP Address 192.168.80.148). I'd like to route packages with destination port 80 to 192.168.80.148. So I have root@...
sebelk's user avatar
  • 4,419
4 votes
0 answers
2k views

iptables and ip forwarding for failover

hi i have an ethernet nic interface with 4 additional virtual interfaces (failovers) all configured with public ip4 (IP-1 to IP-5) / netmask 255.255.255.255 / broadcast addr same as ip: eth0 ->...
ceph3us's user avatar
  • 587
4 votes
0 answers
715 views

Packets do not cross IP tables Postrouting when originating from an external IP

I'm trying to reflect traffic from the internet to an internal device that I only want to have local access. I have a host in my DMZ that I'm trying to DNAT traffic to this internal device, and SNAT ...
ACiD GRiM's user avatar
4 votes
2 answers
562 views

How does Linux handle 2 identical destinations in its routing table?

I have this is my routing table (in that order): 10.3.68.0/22 via 172.16.100.9 dev vlan4 10.3.68.0/22 dev eth3 proto kernel scope link src 10.3.69.254 eth3 has ip 10.3.69.254/22. Why does ...
Totor's user avatar
  • 20.2k
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 ...
Clay Freeman's user avatar
3 votes
0 answers
75 views

System fails to reach one specific IP address (41.215.xxx.1)

Ok, this is driving me crazy now. I have this RHEL 7 machine that was able to reach this destination IP a few days ago. Its LAN neighbors can see the remote host so the routing between networks is ...
SolutionGuy's user avatar
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 ...
Stantastic's user avatar
3 votes
0 answers
373 views

Unable to DNAT packets while maintaining source IP address

I have two Debian machines, one set up as a proxy, which I'll refer to as proxy1 and another set up as a router, which I'll refer to as router. My goal is to DNAT packets coming in from the WAN on ...
mcmsweet's user avatar
3 votes
1 answer
1k views

IPv6 routing Public to a subnetwork

Doing Linux/Debian IPV6 Routing from my vendor to a client not working. IPV4 NAT/routing is reliably working using iptables and dnsmasq, however, even with forwarding enabled on IPv6 I can't make it ...
fcm's user avatar
  • 447
3 votes
0 answers
2k views

Two network interfaces with same metric and with gateway. Which one is used?

Suppose I have a system with two network interfaces. These are in different subnets and have a different local IP address. Both have a gateway defined, and both have the same metric value in the ...
José D.'s user avatar
  • 131
3 votes
1 answer
161 views

Not seeing packets from internal->external firewall in AWS VPC

I am setting up an AWS VPC with an external/internal firewall to protect the hosts in the DMZ (for Internet->DMZ and DMZ->Internet traffic) and hosts on the local network (for DMZ->Local, Local->DMZ, ...
Albert Chin's user avatar
3 votes
0 answers
6k views

Socat- No buffering

I am using a TP-Link router TL-WR710N with OpenWRT as an IPv4-to-IPv6 translater/gateway with the following socat-command: socat TCP4-LISTEN:80,fork,su=nobody TCP6:[xx:xx:xx::xx]:80 On the IPv4-...
Chris's user avatar
  • 181
3 votes
1 answer
398 views

How do you create an network interface without generating an associated route?

I'm having a hard time creating a network interface without a static route being generated to use the default gw. More specifically, I'm trying to create a VLAN interface using the following ifcfg ...
user665456's user avatar
3 votes
0 answers
1k views

Allow KVM guests on virsh virtual network to access the real internal network

I have a home network 192.168.1.0 behind a router 192.168.1.1. A set of existing Linux and Windows hosts are on this network, most on wired ethernet connections. I am configuring a new server that ...
Ken Pronovici's user avatar
3 votes
0 answers
848 views

10GBit Ethernet network mesh switch with brouting and "VLAN"

I want to create a mesh network with 10GBit Ethernet links between servers and a switch stack capable of distributed trunking. In this scenario for a number n>2 (but typically 2<n<6) imagine:...
Alex Stragies's user avatar
3 votes
0 answers
1k views

Why could policy routing on iptables marks applied in FORWARD or OUTPUT chains be inconsistent?

I am routing HTTPS connections down a SSH tunnel (-w) using iptables marks and iproute2 rules, the reasons I need to do it this way are contrived, to say the least, so most alternate solutions may not ...
DanSut's user avatar
  • 592
3 votes
0 answers
1k views

Debian 8 : where are default static routes set?

i'm facing a strange problem with my newly installed Debian 8 box : default static routes are missing the 0.0.0.0 destination route. $ sudo route -n Kernel IP routing table Destination Gateway ...
Eric MORAND's user avatar
3 votes
0 answers
1k views

Prefer wired over wireless for local subnet using NetworkManager

My wireless network is bridged to my wired network, so both have the same subnet. How do I tell NetworkManager to give the local subnet route on the wireless interface a higher metric than the route ...
Michel's user avatar
  • 213
3 votes
0 answers
126 views

Linux Routing Question

I was wondering how it would be possible to have multiple IPv6 default gateways on CentOS linux. I currently have two interfaces with IPv6 (venet0 and tb0), both with different blocks routed to them. ...
AwesomeMarioFan's user avatar
3 votes
0 answers
243 views

Route wireless LAN through OpenVPN

I am trying to set up my home server to act as an OpenVPN gateway so I can connect to my VPN from any device without installing special software of them. My server is running Ubuntu 14.04. The host ...
enm's user avatar
  • 31
3 votes
0 answers
2k views

Default iterface/routes metric in Linux

When I run ip route on my Linux machine, I see default via xxx.xxx.xxx.xxx dev eno1 metric 202 I wonder, where this 202 metric is configured and what other ip commands use it.
Eugene Yarmash's user avatar
3 votes
0 answers
3k views

How do I route bittorrent through a second interface?

I've managed to configure openvpn on my DD-WRT router such that the tunnel is up and working, but that it doesn't mess with routes at all (the default configuration wants all traffic to go through it)....
John O's user avatar
  • 141
3 votes
0 answers
202 views

Transparent Proxy

I am setting up attempting to set up a transparent proxy on CentOS using Squid. So far I have managed to filter the content and get it working perfectly. The only issue I am having is getting a form ...
Brodie's user avatar
  • 41
3 votes
1 answer
498 views

complex dd-wrt routing setup - is it possible?

I have access to my university's VPN through OpenVPN, and would like to extend it to all the devices at home. I have cable internet, a DD-WRT router, a bunch of clients (mostly Windows), and a RHEL-...
nvja's user avatar
  • 31
3 votes
1 answer
359 views

What are the requierements to sniff UDP packets in a Wireless Ad-Hoc network?

In a wireless Ad-Hoc network, I have two computers which communicates in UDP together from 192.168.1.3 to 192.168.1.5 I have a third computer (192.168.1.6) which wants to listen to the packets which ...
Vladimir Leiv's user avatar
3 votes
2 answers
1k views

Policy routing with load balanced ppp connections

This my setup using Debian 6.0. 6. It's role is a proxy server and a load balancer using eight 3G modems. Whenever a ppp connection dials it takes over the default gateway which is ok but it also ...
ovidiucs's user avatar
3 votes
0 answers
212 views

Traffic getting routed through Apache

For some reason, certain outgoing traffic on my server gets routed to the Apache webserver I am running. this problem just started happening. I have the webserver set up to use vhosts, the webserver ...
Soaz's user avatar
  • 31
2 votes
0 answers
324 views

How can loopback addresses be assiged in a Linux VRF?

I create a Linux VRF with ip link add vrf-blue type vrf table 10 ip link set dev vrf-blue up ip link set dev eth2 master vrf-blue ip ro add default via 192.168.3.202 table 10 Then I run a command in ...
lgekman's user avatar
  • 343
2 votes
1 answer
1k views

WireGuard : How do I route VPS PUBLIC IPs traffic through tunnel to home router/firewall for public facing self-hosting services?

WireGuard : How do I route VPS PUBLIC IPs traffic through tunnel to home router/firewall for public facing self-hosting services? What a terribly long and wordy question to ask. Long Story: After 10+ ...
I Own I Owe Oh My's user avatar
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 ...
Rêve's user avatar
  • 21
2 votes
0 answers
225 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 ...
TheoW's user avatar
  • 21
2 votes
0 answers
5k views

Mark a packets with iptables in order to make a source ip routing

I have a linux machine, which I use as a gateway and firewall. The linux machine (GW/FIREWALL) is connected to a device which allow internet connection (Router Aggregator), it has 2 IP addresses 172....
famedoro's user avatar
  • 145
2 votes
0 answers
903 views

Netplan does not clean old routes when changing route configuration

I have a netplan configuration file: network: version: 2 renderer: networkd ethernets: eth0: routes: - to: 192.168.202.0/24 via: 192.168.201.98 Note: addresses are ...
hudac's user avatar
  • 779
2 votes
0 answers
86 views

iptables - allowing access to only a single port on different subnet

I've got a OpenVPN server up and running, currently allowing to route all traffic between the VPN (10.8.0.0/24) and the LAN (192.168.2.0/24) network. My iptables look as follows: iptables -t filter -F ...
Turnspit's user avatar
2 votes
0 answers
448 views

Linux / iptables - NATing between overlapping subnets

I'm trying to NAT from one Wireguard interface to another while retaining a private subnet. Here's my setup. The trick here is that I have overlapping subnets on the interfaces. My VPN server has ...
poots's user avatar
  • 21
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 ...
Alessandro Romano's user avatar
2 votes
1 answer
744 views

Linux source routing with nexthop pointing toward Docker

I have a similar question linked over to ServerFault, but after further working on the problem, I believe I've refined the problem to a Linux route table question. Background: AWS released their ...
DavisTasar's user avatar
2 votes
0 answers
214 views

OpenBSD ipsec routing

I have an OpenBSD VM that I wish to connect to my OpenBSD home router with ipsec. The objective is to have a secure channel between my home network and the VM. So I have the following ike conf' on ...
22decembre's user avatar
2 votes
0 answers
982 views

Wireguard server with active OpenVPN client

I need to run a Wireguard server on a machine with an active OpenVPN client. Clients connected to the Wireguard server would be NATed to the OpenVPN client at 'tun0' and access the internet through ...
donghakim187's user avatar
2 votes
0 answers
37 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/...
Gabriel's user avatar
  • 21

1
2 3 4 5
10