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

1
vote
1answer
47 views

forward packets from one interface to another interface using iptables

I have an embeded system with 2 interfaces e0 and m0, whose ips are 10.0.0.20 and 192.168.0.20, respectively. Incoming packets into e0 have an ip of 10.0.0.10 and should be forwarded to m0 interface ...
0
votes
1answer
36 views

yast routing problem — connect: Network is unreachable

---------------------------------------------------update----------------------- on doge the route works: thufir@doge:~$ thufir@doge:~$ route Kernel IP routing table Destination Gateway ...
0
votes
0answers
16 views

RHEL6.6 in which file you put the gateway configuration

In RHEL6.6 OS system, which file we've to put the gateway configuration? I tried GATEWAY=xxx.xxx.xxx.xxx in these files : /etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-eth0 and I ...
2
votes
0answers
37 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 ...
0
votes
1answer
20 views

Not understanding the meaning of Genmask in linux routing table

lanix@lanix ~ $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.0.138 0.0.0.0 UG 0 0 0 ...
1
vote
0answers
32 views

Miniupnp thinks my router doesn't support UPnP

I have a IP camera on my network that is truly plug n play. As soon as I plugged the Ethernet cable in, it was accessible from 'the outside', without me having to touch my router's configuration. So I ...
1
vote
2answers
40 views

Can I prevent a default route being added when bringing up an interface?

I have a system with two NICs on it. This machine, and a few accompanying devices will be moved and attached to different LANs or sometimes it'll be using dial-up. eth0: - 10.x.x.x address space - ...
1
vote
0answers
12 views

Routing problem through 2 hop in the LAN

This is the scenario I'm facing with: firewall (Zyxel Zywall USG210) configured as default gateway, with LAN IP 172.29.0.1 /16 2nd firewall, directly connected with the 1st, with LAN IP 172.29.0.250 ...
0
votes
1answer
17 views

Dynamically assign outbound network interface

I'm establishing a network connection with wvdial (PPP) and I want to assign this as the outgoing network interface AFTER it is established. The connection is being established by a bash script and ...
1
vote
1answer
38 views

iptables: route packets to example.com via public proxy

I want to access certain websites via a public proxy and I can't seem to get it right using iptables. Let's say I want to access example.com having ip address 1.2.3.4 via a public proxy at ...
1
vote
0answers
10 views

routing through a GVPE network

The following is a GVPE network (VPN) setup on Debian Linux systems. It is how I interpreted the two paragraphs starting at line 174 in the GVPE README. Sadly, there is not much detail and my ...
1
vote
1answer
29 views

Access network of PC2 from virtualbox installed on PC1

I am going to attend one seminar where I need to bring laptop with installed Virtualbox and Windows 7 running inside it. My laptop is too old to handle Virtualbox with Windows 7 and native Linux ...
0
votes
1answer
22 views

Default Route in ip route

I'm trying to setup an IP based route in DD-WRT using DD-WRT v24-sp2 (12/22/14) giga. Instead of only sending traffic from 10.13.37.0/24 to the tun1 VPN, all traffic is going there. Below is the ...
1
vote
0answers
58 views

How to create a wireless-to-ethernet router?

I have a Debian machine, which I want to turn into a router. It will connect via wireless to a access-point, where it will get an IP. To its ethernet port, other machines will be connected. It will ...
0
votes
0answers
33 views

DNAT forwarding for FTP: No route to host

I have a single public IP for multiple VM, i need forward multiple ports for FTP service, i write these lines: iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 20:21 -j DNAT ...
3
votes
1answer
22 views

How to create an internal multipath gateway

Basically trying to bend bridging and NATing to my will with quite a unique project. I've simplified what I'm doing below (VM=Kali virtual machine for testing): ZoneX's are network namespaces, ...
0
votes
1answer
44 views

two NICs in the same subnet— need to set up routing

I have a tricky case: +---+ +----+ |D1 +->eth0---------<-eth0-+D2 | | | | | | +->eth1---------<-eth1-+ | +---+ ...
0
votes
1answer
122 views

Linux tun interface packet routing [closed]

I have questions on the ip packet flow for the following scenario. The scenario is : A tun0 (10.0.0.2/8) interface and a physical wireless lan card wlan0 (ip address not fix) on the client side, ...
1
vote
1answer
56 views

Connect through different interfaces to the same server (SO_BINDTODEVICE): Destination Host Unreachable

I have 2 interfaces: eth0 and wlan0, each one connected to a different router. Their network specs are these: eth0: ip: 192.168.1.7 Gateway: 192.168.1.1 Submask: 255.255.255.0 wlan0: ...
2
votes
1answer
50 views

How do I apply iptables SNAT to packets bound for localhost (INPUT chain)?

I'm setting up a host that has two routes to the public internet: one via my run-of-the-mill home gateway router, the other via a gateway router on a semi-private network (AMPRNet on 44.0.0.0/8). Most ...
-1
votes
1answer
35 views

iptables routing through firewall

I have a httpd service running on server machine, I have a firewall and internet browser on desktop machine. On server I have a rule that only firewall can access to server: -A INPUT -m state ...
1
vote
0answers
47 views

Internet sharing disappears when either eth0 or wlan0 gets disconnected

I just got a RasPi B+ and I'm looking to replace the Windows PC that's doing the routing job. What I'm trying to do with the Pi is making it share the connection (wlan0) with another wifi router (via ...
1
vote
0answers
59 views

route gateway proxy traffic through different interface with identical upstream gateways

My question is similar to the below with a small caveat not answered by any of these threads: Output traffic on different interfaces based on destination port ...
2
votes
0answers
64 views

Making static routes persist after a reboot

I have two VLANs (default vlan and vlan 5 for voip). I have 2 interfaces, one for each VLAN. My route table looks like this right now: Destination Gateway Genmask Flags Metric ...
1
vote
1answer
65 views

Why doesn't Linux remove route from routing table if interface is physically down?

As seen below, Linux(3.7-trunk-686-pae) keeps route to 10.10.12.64/28 in routing table although the interface is physically down: root@kali:~# ip addr show dev eth0 2: eth0: ...
2
votes
1answer
21 views

Make a request through vpn interface

I want to be able to make request through a specific network interface, like this: ping -I eth0.1 google.be ping -I eth0.2 google.be This example works on my multihomed OpenWRT router. I now want ...
0
votes
2answers
34 views

IP routing to domain

I have a remote device that sends data to an IP address through a specific port. The problem I want to solve is that I need it sends data to a domain, but device only allow set IP addresses. I want ...
1
vote
0answers
68 views

Using a VPN client as a VPN gateway

I would like host 1 to use host 2 as a gateway to the remote host 3. I have scoured the web looking for a solution, but it doesn't seem to work for me. VPN client software is ike (shrewSoft VPN) is ...
3
votes
0answers
85 views

Route VPN traffic through different proxies

I want to setup VPN server and route (based on my routing algorithm) all traffic through different proxy servers. Let's say I have one host, with many users, connected to my VPN. I want to route all ...
2
votes
1answer
84 views

Default gateway fallback via DHCP configuration

I have a small network, with two routers/Internet connections. I have configured a Raspberry Pi to load balance traffic between these two routers. I would like to have a redundant setup. If one of ...
1
vote
1answer
26 views

Always Forward Traffic Out The Interface It Originated On

(This is the original question but my eventual solution was too different from how I originally asked the question so I'm posting as a new question.) Background: I have a VM with three different ...
1
vote
1answer
30 views

Iptable forward interfaces for gateway machine

I have two Ethernet interface being configured to use as system gateway ex: eth1: 10.10.1.0 eth2: 10.10.2.0 I want to forward all the packets which are coming to the 10.10.2.0 gateway contacting ...
2
votes
0answers
56 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.
0
votes
0answers
70 views

iptables IP address (source and destination IP address) mangling

I tried to understand the concept of iptables mangling part, but somehow failed to understand the IP header manipulative section. For example: Below is the system scenario which I'm trying to ...
1
vote
1answer
96 views

How to force FreeBSD to assign default router when acquiring IP in DHCP mode?

How to force FreeBSD to assign default router when acquiring IP in DHCP mode? My machines are FreeBSD 8.2-PRERELEASE or RELEASE The NIC (respectively em0 or re0) is set to get a dynamic IP address. ...
1
vote
2answers
116 views

Forward port 22 out a particular interface

The situation I'm in is where we have three separate interfaces on a particular machine. Each connected network only allows servers (by network-based routing/firewalling) to only offer particular ...
0
votes
1answer
37 views

Adding routes for configured virtual IP addresses of different segments

I have configured virtual IP addresses in different segments as below in RHEL box. eth0 - 192.X.X.208/27 eth0:1 - 192.X.X.219/27 eth0:2 - 10.72.X.19/24 eth0:3- 10.72.X.20/24 The problem here is as ...
0
votes
0answers
69 views

How to bridge a VM to public IP

I wish to to assign the IP from my eth1:2 to a VM; I also have no use of this IP for the host, it would be desirable to be exclusive to the VM. I've ended up with a setup just like this (eth1:1, ...
1
vote
1answer
59 views

Assymetric routing problems in LINUX

Assymetric routing problems are driving me crazy! I am trying to build a multi-homed server with 3 NICs. Each NIC is connected to 3 different subnets: eth0: LAN connected, 10.99.72.38; function: ...
2
votes
3answers
116 views

Bridge/Router with custom logic

I've a Linux box with 3 network adapaters, which I'd like to configure as follow: Adapter A is connected to computer A Adapter B is connected to computer B Adapter C is connected to the Internet. ...
1
vote
0answers
54 views

Is legacy checkpoint endpoint blocking puppy 528 wireless Internet connection and how can I remove it?

Background: Whilst booting with an old flash drive (SafeXs by block master) plugged in to my laptop (DELL latitude 6430u) I came up against a blue login screen . At full encryption point ... ...
1
vote
0answers
20 views

how to binding each each interface to a seperate VPN config

What I am trying to do is route all traffic that comes on a given interface to a specific, per interface, VPN connection where all outbound traffic is actually leaving on WAN0. I frankly don't have a ...
2
votes
0answers
70 views

Network connectivity trouble to non-routing multi-homed hosts?

I have two networks: A and B (172.16.2.0/24 and 172.17.2.0/24). A is Ethernet, B is WiFi. An OpenWRT router connects A and B, and most traffic gets passed OK. Default route on router leads to a ...
0
votes
0answers
44 views

Egress packets do not use non-default routing table

I made a custom routing table named test: # ip route show table test default via 10.10.10.126 dev eth0 # As seen above, it contains only a single route. As a next step, I made a rule where traffic ...
1
vote
0answers
134 views

Setting up a 802.11s mesh network for mobile devices to communicate with a wired server

I'm in the process of developing an android app that maintains a device's connectivity to a linux-based WiFi mesh network, and periodically sends status information (GPS, battery life, etc.) to a ...
0
votes
1answer
63 views

Which path are the packets taking?

I have set up a host-only network in VirtualBox. Windows Host: VirtualBox Host-Only Network IPv4 Address. . . . . . . . . . . : 192.168.56.1 Wireless LAN Adapter Wireless Network Connection 2 ...
0
votes
0answers
135 views

How can I connect to a local computer behind a router with the router's IP address?

I am trying to set up an IPA server to be used from machines that share the same network as the server and machines that don't. The router's IP address is 12.34.56.78 I am using port forwarding on ...
1
vote
0answers
44 views

What is the point of the second route lookup after OUTPUT?

According to the packet path diagram, and its description: Table 6-2. Source local host (our own machine) [...] Routing decision, since the previous mangle and nat changes may have ...
1
vote
1answer
69 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?
2
votes
1answer
417 views

Forwarding packets from loopback interface with policy-based routing

I have the following iptables rule: iptables -t mangle -A PREROUTING -p udp -m udp --dport 10000 -j MARK --set-xmark 0x4/0xffffffff which sets fwmark 4 on all udp packets with destination port ...