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

learn more… | top users | synonyms

2
votes
1answer
177 views

Linux ignoring multicast route over loopback

I'm trying to test some multicast code on a single machine. I'm trying to get the packets sent over the loopback device (lo) instead of the default eth1. Googling keeps turning up the incantation ...
0
votes
1answer
97 views

Linux Forward Packets between interfaces

I would like to forward packets between interfaces without using iptables. I am not against iptables per se, I just believe that for my simple needs it's not necessary. However I am unable to do so. ...
1
vote
1answer
101 views

OpenVPN connection help. Multiple Tunnels

i have a system setup, mostly from reading posts and instructions and am having a bit of trouble. My basic setup multiple openvpn clients, e.g. macbook, android phone dd-wrt router / firewall ...
0
votes
3answers
80 views

Unable to figure out how to route a packet through a multi-homed nic

The environment is FreeBSD for the most part and looks like this: HOST_A <-> ROUTER <-> LOKI <-> HOST_B Minimally, I would like to be able to ping ROUTER from HOST_B. ROUTER is ...
0
votes
0answers
57 views

Hang routing cache

Recently I've started to get the following message in my syslog "kernel: [274521.629591] dst cache overflow". Short investigation led to some troubles with routing cache. This is what I found: On ...
0
votes
1answer
62 views

Route Locally generated packets to different gateway [duplicate]

I need to send the packets of specific port to different gateway. This is the situation: The server has different services, like http, dns, and mail (smtp,pop,imap), and it has two gateways. eth2: ...
0
votes
0answers
193 views

How should a two nic gateway be routed (FreeBSD 10.2)?

I am trying to set up a freebsd router that sits between the cable/dsl modem and my lan machines. Here is the logical setup: Cable/DSL modem connected to internet: gateway 192.168.0.1 FreeBSD ...
0
votes
2answers
30 views

Debian : 2 Nic 2 different networks switches - kernel sees a bad network

Hello Here is the situation : - VMplayer with 2 physical NICs (network interface cards) on the Windows host - VM Debian 64bits - On VM settings: both NICs are configured to replicate on the physical ...
1
vote
0answers
80 views

Configure Linux PC as router

Consider the below network configuration. wan ----[WAN router] <----> [eth1 (PC2) eth0]<---->[eth0 (PC1)] wan ----[WAN router 192.168.169.1] <--> [192.168.169.5 (PC2) 10.1.2.3] ...
0
votes
2answers
100 views

Direct connection w/ ethernet cable

This is for "research" not pragmatic purposes -- I want to know how this is supposed to work, since my guess below does not. In other words, I do not want an answer that involves ...
3
votes
0answers
216 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 ...
0
votes
0answers
95 views

How to delete gateway from default routing table use systemd

There are two physical interfaces on my machine, both with DHCP, so my default routing table looks like this: Destination Gateway Genmask Flags Metric Ref Use Iface default ...
0
votes
1answer
257 views

how to configure multiple interfaces with systemd-networkd

I have three physical network interfaces one my machine, they are all connected to different subnets, the first interface is eno1 with IP 10.10.24.157/24, the second one is eno2 with IP ...
1
vote
0answers
20 views

DNS lookup with different Port

I have 2 interface. interface_1 ip address 10.192.0.1 --- interface_2 ip address 192.168.10.2 gw 192.168.10.1 --- default gateway. Not I want to pass my url lookup (keeping 4.2.2.2) with ...
0
votes
1answer
52 views

how to add default drop route in custom routing table?

Am trying to learn using policy based routing which is based on fwmark as below. Need to forward traffic by using default entry in table1, if table1 doesnt have a default entry, then that particular ...
1
vote
0answers
21 views

Conditional routing according to protocol HTTP/S

There is a wifi corporate network which is reasonably fast but does not allow ssh connections. I want to be able to web browse using both that network and a ssh tunneled mobile USB tethering in my ...
3
votes
1answer
79 views

Routing on per application basis

I'm using a proprietary VPN client on my Ubuntu Linux work station (Astrill) which support several types of VPNs. One of these VPN types is OpenVPN, which creates a virtual interface tun0 when ...
2
votes
1answer
207 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? ...
1
vote
2answers
203 views

Can't access my device via SSH over internet

I'm running sshdroid server on my android device at port 22 and I get this while I use my pc to connect to it via ssh (LAN) root@kali:~# ssh -l root 100.107.219.116 The authenticity of host ...
3
votes
0answers
536 views

About tun2socks (BadVPN) SOCKS proxy

I am not very experienced with socks proxy. Recently I found the tun2socks. If you open the link, in the 1st paragraph it says : It implements a TUN virtual network interface which accepts all ...
-1
votes
1answer
39 views

How do I configure my server to stay hidden unless it receives correct password?

The server is supposed to silently ignore any requests (including ping) unless it receives correct credentials with initial request. Nobody else can tell that the host even exists. I am talking about ...
1
vote
0answers
101 views

Sniff on SWITCH(lan) traffic openWRT

Is it possible to sniff (with tcpdump) or mirror LAN traffic that doesn't get routed to WAN using openWRT? Say I have two PCs connected to LAN ports and I want to sniff on traffic one PC is sending ...
3
votes
1answer
142 views

add route in Linux if sub-net, where gateway is situated, is not configured

I have a PC which has 192.168.1.1/24 configured to eth0 interface. Now if I try to add routes via 10.10.10.254, the ip utility reports that No such process: root@PC:~# ip neigh add 10.10.10.254 ...
0
votes
1answer
81 views

Access my web server publicly

On my Debian server I have a eth0 interface (192.168.10.x) and I just added eth1 (176.31.36.x). I would like to set up a public access for ssh, web, ..etc. allow-hotplug eth1 iface eth1 inet static ...
0
votes
0answers
59 views

Incoming internet SSH traffic to eth0 and outgoing internet traffic to wlan0

I have this setup: kali linux on raspberry PI connected to eth0 and wlan0. eth0 has internet access and public ip with port 22 open. wlan0 has internet access. I want to be able to connect to my ...
1
vote
2answers
78 views

Meaning of address netmask without route to subnet?

My understanding is that the netmask of the interface tells what subnet the interface belongs to. Meaning of this information is that the routing system knows that packets to this subnet should be ...
2
votes
0answers
108 views

How to define different routes for global and non-global zone to the same destination?

I have the requirement to separate the management network for global and non global zones in a Solaris 10 server. The global zone has its own management network and all non-global zones share their ...
0
votes
0answers
32 views

How to use RTNETLINK in kernel module/kernel space to extract routing table?

I want to extract routing table information in kernel module using Netlink sockets? Is it possible? I know that in user space we can do that. Regards
2
votes
1answer
231 views

Rewrite source IP in TCP replies using iptables

I'd like to rewrite the source IP on TCP/514 traffic leaving a redhat machine, for connections that weren't initiated from the machine. The machine receives TCP/514 traffic on an interface, for ...
0
votes
1answer
246 views

Possible to route all LAN traffic through router configured with my VPN service?

I have a paid VPN service (mullvad) and I wondered if it would be possible to route all my WAN traffic mullvad's VPN via an Asus RT-AC66U wireless router running DD-WRT v24 sp2. I guess what i'm ...
0
votes
1answer
44 views

Add a route permanently to mac

I connect from a Mac running PPTP VPN to a synology box VPN server. Connecting works great, but in order to access the the drive shares, I need to run ifconfig and then sudo route add -net ...
4
votes
2answers
432 views

How can I use Linux as a Gateway?

NOTE: If client devices (computer B in this example) want to obtain internet through the gateway computer, maybe they still need to configure nameserver resolution. This is not explained here ...
0
votes
0answers
93 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 ...
3
votes
1answer
888 views

OpenConnect: Setting default routes

I'm trying to use OpenConnect to connect to my company's Cisco VPN (AnyConnect) The connection seems to work just fine, what I'm not understanding is how to set up routing. I'm doing this from the ...
0
votes
0answers
134 views

openvpn: iptables not forwarding

I have the following topology: And I'm following the iptables rules listed on https://community.openvpn.net/openvpn/wiki/BridgingAndRouting Here's the output of iptables -L -v Chain INPUT (policy ...
0
votes
0answers
82 views

Routing Traffic to IPSec

I set up an IPSec/L2TP connection. It operates in transport mode and the server acts as a gateway to the network behind the server. You can see my configuration here. I think I have a routing problem ...
1
vote
0answers
69 views

Routing only VM traffic through VPN

I'm stuck on a problem and would like some help if possible :-) My goal is to make my VM going through my VPN connection and my HOST through the standard gateway. Configuration : VM (192.168.100.1) ...
0
votes
2answers
58 views

routing problem - arp

I have a computer that should connect two networks: 192.168.0.x and 192.168.1.x 192.168.0.x is reachable through interface tun3 while 192.168.1.x is reachable through interface virbr1. It seems ...
1
vote
0answers
45 views

How to drop packet if conntrack entry not present

Is there a way to check if conntrack exists before doing a particular action in iptable chains ? I would like to drop the packet in mangle-postrouting if conntrack entry is not present, dont want it ...
0
votes
0answers
36 views

AODV Routing protocol on Raspberry Pi model B?

is it possible to run the AODV routing protocol on rpi ?
0
votes
1answer
293 views

Routing tables with two network interfaces

When I try to access the internet with my raspberry pi via ethernet, it works, but when I do ifdown eth0 and try to ping any server outside my home network, it tells me connect: Network is ...
0
votes
1answer
139 views

Problems setting up Ubuntu Machine as a router

I have been at this for over 24 hours, here is what I have so far. -I have an Ubuntu Server running version 14.04.2.amd64, called SV-01 -SV-01 has two NICs. ETH1 is for the external network (goes to ...
0
votes
1answer
40 views

redhat 9 persist default gateway

We changed the IP addresses of our RedHat 9 system that controls a conveyor/sorter system. When originally installed many years ago someone chose 192.0.0.10 as the IP! But for some reason it defaults ...
1
vote
2answers
314 views

Iptables exception for specific port

I'm new to iptables but configured a simple natting today on my raspian: # Always accept loopback traffic /sbin/iptables -A INPUT -i lo -j ACCEPT # Allow established connections, and those not ...
1
vote
0answers
147 views

Howto configure linux router to allow clients to use maximum bandwidth?

The problem is that I'm always limited on the final client machine to about 1/3 (one third,about 200/300kb) of the internet hotspot bandwidth when testing download speed with wget. I have configured ...
1
vote
2answers
235 views

bash command/script to reset default route

I manage several OpenWrt (embedded linux) routers for which I've written bash scripts to run an Openconnect VPN client. The client uses "vpnc-script" to set up routing, which replaces the initial ...
2
votes
1answer
231 views

Routing problem from internal eth1 interface to an external ppp0 interface

I'm trying to connect two LANs using a ppp link. I had a basic network topology diagram but it didn't come out well. This can be seen here. Routing Problem ================ 172.20.0.0/16 ...
1
vote
2answers
3k views

Error when redirecting ports with iptables: No chain/target/match by that name

I am trying to redirect all incoming TCP connections, originally to port 80, to port 8090, because I am running Confluence in 8090 and I want to avoid it running as root, which is a requirement to ...
2
votes
1answer
72 views

Packets not forwarded due to second routing table

I've just spent about an hour trying to understand why my docker containers couldn't connect to the internet, in particular couldn't resolve any DNS names. By now I've found a workaround, but I still ...
8
votes
2answers
2k views

Bind unix program to specific network interface

Question: How do I launch a program while ensuring that its network access is bound via a specific network interface? Case: I want to access two distinct machines with the same IP (192.168.1.1), but ...