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
0answers
51 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 ...
1
vote
0answers
44 views

Centos 6.x multi-homed routing question

I have a conundrum and would like to hear any pointers (been working on this for 2 days now, and need to get this server in to production). My "google-foo" has not been strong with this one....
1
vote
1answer
415 views

OpenVPN - Understand the routing table + How to route only the traffic to a specific ip via the VPN

I'm connecting to a VPN service using OpenVPN and everything works fine. Once I connect these are the rules that automatically are set: root@linux:~# ifconfig eth0 Link encap:Ethernet HWaddr 00:...
1
vote
1answer
35 views

Which network interface is used if they are both the default gateway?

In this example below on my Linux machine, I have an Ethernet and Wifi interface established. Here is the route output: Kernel IP routing table Destination Gateway Genmask Flags ...
0
votes
1answer
198 views

Linux Source Routing, Strong End System Model / Strong Host Model?

Can a multihomed Linux machine implement a true Strong ES Model? Specific Use Case I have a system with five different interfaces, each connected to the same subnet, thus the same gateway to the ...
0
votes
1answer
116 views

Does “ip_forward” need to be enabled for any iptables SNAT/DNAT (postrouting/prerouting) rules?

I remember I had to enable ip_forward kernel parameter in the past in order to run SNAT/DNAT rules in iptables successfully. Today I was reading this post: http://blogs.aws.amazon.com/security/post/...
0
votes
0answers
23 views

iptables: route back to source

How can I have iptables route a source back to its source on the same requested port? Example: X.X.X.X comes in on port 22; I want to route X.X.X.X back to X.X.X.X on same requested port; how do I do ...
0
votes
2answers
38 views

IP routing not working

I configured network bridge for my VM. VM can ping host but can't ping anything from internet. My configuration: # ip route default via 192.168.1.100 dev wlp3s0 192.168.1.0/24 dev wlp3s0 proto ...
0
votes
0answers
78 views

Centos 7 persistent static routes for any interface

I am trying to set up some static routes in a CentOS 7 box. The official RHEL says it is possible to add files in /etc/sysconfig/network-scripts/route-interface. This approach works, however I need ...
0
votes
0answers
64 views

How to route mail server from both intranet and internet?

We have a mail server configured in Ubuntu 12.04 with postfix, dovecot and roundcube. It has two interfaces, one with real IP and one with private LAN IP. Incase of intranet we have branches and head ...
0
votes
0answers
105 views

pfsense: Network freezes when squid service started in bridge mode

We are using pfsense firewall in bridge mode. When squid service with Transparent proxy option is started the network freezes. On routing mode, squid works pretty well. Squid setup is as below: ...
0
votes
0answers
86 views

Ubuntu routing tables problem

I'm having an issue with ubuntu's server network traffic rules. Ubuntu server's version is 14.04. I have a zabbix server monitoring serveral hosts. 2 days ago, about 14 hosts started reporting down. ...
0
votes
0answers
33 views

How do I change NAT type for UDP to be more P2P-friendly?

On gateway I do iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE, and on device I have this: $ stun stun.counterpath.net STUN client version 0.96 Primary: Indepndent Mapping, Port Dependent ...
1
vote
1answer
66 views

Nothing happens when trying to add/set default gateway

I'm connected to a network using VPN (Managed byt NetworkManager, Fedora 23), and I want to route all traffica via the VPN network. But for some reason nothing happens when I run ip route add or ip ...
4
votes
1answer
30 views

How can I tell which IP address is used to connect to another machine?

I have several computers that are multi-homed, and have different static IP addresses for each of several network connections. How can I tell which of these IP addresses is used when I'm connecting to ...
1
vote
3answers
128 views

Routing to different subnet via single NIC to another box

I have a home network with 3 subnets (I like to play around!) I've been struggling with something that I thought would be easy, but after a few days I'm no closer to the answer. My network is ...
1
vote
1answer
34 views

How to get numerical output in `ip route` command

When using route command, -n switch does the trick. How to get numerical output using ip route command? It's man page does not mention anything similar. Specifically I need 0.0.0.0 instead of default.
0
votes
1answer
77 views

Linux routing IPv6 packets through incorrect interface

I have a Arch Linux system where link-local packets are not being routed properly. I have 4 interfaces on this machine (wan, lan0, lan1 and lan2). All three of the lanX interfaces are bridged together....
3
votes
2answers
97 views

Linux static routing : Ping a private network(Network Diagram Attached)

In the Network Diagram above my aim is to ping 192.168.20.20 from System A. I do not want to configure the router. For that to happen All the traffic to 192.168.20.0/24 should be first forwarded ...
1
vote
0answers
40 views

Bridging two interfaces with iproute2 doesn't work

I'm trying to create a bridge between eth0 and eth1 with iproute2, but there's always the error: RTNETLINK answers: Operation not supported when I use the command:ip link add name br0 type bridge. ...
1
vote
0answers
126 views

Not permitted to add eth0 to bond0

I'm trying to add an interface to my bond0 but I always get the error. sudo ip link set dev eth0 master bond0 RTNETLINK answers: Operation not permitted I already tried it with sudo and with ...
1
vote
0answers
365 views

ip link add gives me an error that it's not supported

I would like to set up a bridge with iproute2 like this: Adding bridge : ip link add name br0 type bridge Bringing bridge UP : ip link set dev br0 up Adding interface to bridge : ip link set dev eth1 ...
0
votes
1answer
33 views

SSH tunnel between 3 box to get internet access

The network looks like this : Server X -- My machine -- Server Y My machine has SSH access to both boxes. Server Y has internet but not server X. How can I make a tunnel so server X can acces the ...
2
votes
0answers
151 views

Quagga ebgp routes not advertised to ibgp peers

I am trying to achieve http://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/13762-40.html#conf3. Only difference from the setting is that the ISP is sending full BGP table instead ...
1
vote
1answer
350 views

Modifying existing route entry in linux

what is the command to modify metric of an existing route entry in linux? I am able to change gateway of an existing entry using "ip route change" command as below but not able to change metrics. Is ...
0
votes
1answer
47 views

Adding route entries to the routing table

I have a device that has a default IP address of 10.1.1.102 with netmask 255.255.255.0. Rather than changing it, I tried to add a routing entry to my routing table using route add. sudo route add -...
2
votes
1answer
251 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
136 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
123 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
94 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
74 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
78 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
248 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
31 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
87 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
135 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 /etc/network/...
3
votes
0answers
258 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
120 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
339 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 10.10.25.160/...
1
vote
0answers
23 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
63 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
22 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
94 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
263 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@...
2
votes
2answers
253 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 '100.107....
3
votes
0answers
686 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
41 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
119 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
224 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
86 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 ...