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
0answers
40 views

Different routing for each address on an interface

I know I can add several IP addresses to an interface without using interface aliases (ex.: eth0:0). My question: but how can I create different routing decisions for the different IP addresses on ...
1
vote
1answer
372 views

iptables Port Forwarding — no service with the port

I have setup a network as in the image below: Firewall (FW) running CentOS 6 has two physical interfaces with subinterfaces: eth0:2 — 10.100.1.78/25 eth0:3 — 10.100.1.79/25 eth3 — 192.168.0.21/24 ...
1
vote
0answers
471 views

OpenWRT configuration when router is in bridged mode

I am planning on putting my Zyxel ADSL modem in bridged mode and use an OpenWRT router instead as the exit point from my local network. So, what protocol must have the Wan interface if the router is ...
1
vote
0answers
86 views

Linux Source Routing with one gateway

I've a Linux box which have IP 10.1.1.100/24 on eth0 with gateway 10.1.1.1 and as well as 20.1.1.1 on eth0:1 and 20.1.1.2 on eth0:2 . Is there any way that I could communicate to a remote machine ...
3
votes
1answer
229 views

Creating a private network for internal VMs

I am trying to configure a private network for use with my Xen VMs, in addition to the public network in use by another of the VMs (VM1, which has its own public IP). So far, I have the public side ...
2
votes
1answer
732 views

Transparent Ethernet over GRE not forwarding traffic

I am running on Linux 2.6.30.9 and have been trying to setup a transparent ethernet over GRE tunnel. The network topology used is as follows: I want to bridge PC1 and PC2 using Transparent Ethernet ...
1
vote
0answers
50 views

invisible bridged router with 2 route table

my setup I have 2 ISP connexion : ADSL and SDSL. A qos (named qos, ip : 192.9.201.252) server stands before the ADSL router. It is the only way to access the ADSL gateway (192.9.201.254) through a ...
1
vote
0answers
33 views

How to send packets coming from a second router on a particular port back to the router, using iptables not a route

I have a Linux server which runs a particular service listening on a single TCP port. The Linux server connects to the internet using a PPP connection and also acts as router for a local network using ...
2
votes
0answers
19 views

Route socks proxy traffic through wireless client [duplicate]

I have a router with two Internet WANs: DSL (vlan1) and wireless client (eth1). They are both in default route: vlan is the first and eth1 is the second (I am using ip route add default scope global ...
0
votes
0answers
700 views

Use iptable do redirect all the HTTP traffic to localhost

I use a Linux machine as WLAN Router with the help of hostapd and udhcpd. There's also an Apache web server installed on the same machine. Now I want to redirect all the traffic which comes through ...
3
votes
1answer
873 views

Internet routing between wlan0 and ppp0?

On my Debian Linux device, I have a USB-modem that is connected to the Internet. Its interface name is ppp0. I also have a USB-wireless adapter, where I am hosting a Access Point. Its interface name ...
1
vote
0answers
672 views

Route outgoing traffic to different gateway based on port

I am trying to get around my Usenet download bandwidth restrictions based on IP. I currently have two IPs from my ISP to double the download speed. So far I have it working and getting double speed ...
0
votes
1answer
139 views

How to automate route commands

For some reason everytime I connect to my VM I have to manually launch these two commands for it to connect to the Internet. route add 198.245.49.254 dev eth0 route add default gw 198.245.49.254 Is ...
2
votes
0answers
54 views

How to route traffic to different interfaces for different ports [duplicate]

I have an eth0 connection providing internet connection through a proxy server only for port 80 and 443 (provided by university). For ssh, git and related purposes, I got a different connection on my ...
4
votes
0answers
581 views

What do I need to add a virtual IPsec adapter?

I'm trying to set up an IPsec connection manually from the console with iproute2. What I need is a virtual interface (at best, a virtual IP address could also be sufficient) that IPsec-transforms ...
4
votes
1answer
606 views

How to open VPN connection inside other VPN connection under Linux/Ubuntu

Is it possible to have two VPN connections on top of each other under Ubuntu? Scenario: My organization is quite large and has its own large network. Each group inside the organization has its own ...
4
votes
1answer
98 views

putting extra hops into traceroute6 on OpenBSD

I'm running OpenBSD, or maybe FreeBSD. I don't have lots of IPv4 addresses to waste, but who doesn't have a few billion of IPv6 ones? How do I add some extra IPv6 hops to a traceroute6, around pf(4) ...
1
vote
0answers
53 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 ...
0
votes
1answer
52 views

Ip connectivity with two interfcaes

I have two network interfaces in Linux machine , eth0 and eth1. IP is assigned to both interface from two different VLANs and default gateway to eth0. Now if interface eth0 is down I am unable to ...
3
votes
1answer
137 views

Local DNS Server Refuses to Ask itself for DNS

I am running Debian 7 and have set up a DHCP and DNS server. Everything is working nicely, except for the server itself not following the DNS entries in BIND. The problem is that /etc/resolv.conf is ...
1
vote
1answer
147 views

Managing iptables for home lan routing

I have a LAN at home. One Netgear router - 192.168.0.1 connected to the internet. One Macbook - 192.168.0.10 (connected to Netgear router) One PC with Kali Linux - 192.168.0.20 (connected to ...
0
votes
1answer
163 views

Squid not forwarding my packets proxied from iptables on router

I am trying to make openwrt's iptables from my router to direct to my squid proxy on my machine (since there is no enough space in router's flash memory) but even if I have my squid config ok ( ...
1
vote
0answers
145 views

SSH to a machine that is getting it's network connection from an Android device(Google TV)

I have a Linux(Ubuntu) machine for my HTPC. It's running XBMC and I control it via my IR remote control. I don't have a (wired) keyboard to control it. It has Wifi adaptor but it's not installed. I ...
9
votes
3answers
9k views

what is the meaning of 0.0.0.0 as a gateway?

Can anyone clarify gateway assignment for me? What is the difference between adding gateway as 0.0.0.0 and assigning a specific ip address as a gateway?
4
votes
1answer
410 views

How to set up ssh server with VPN tunnel? (Policy routing for sshd service)

It's difficult to me to explain in words, so I made diagrams. In short, I want this to work: Basically I want to be able to connect from my laptop [A] to my desktop [B] via ssh, and run terminal ...
1
vote
0answers
354 views

iptables one IP through another network interface

This question is very similar to what I am trying to do: iptables --set-mark - Route diferent ports through different interfaces However I attempted to follow the answer but I was unable to make it ...
2
votes
1answer
150 views

Mark packets between machines (client and router)?

Can I mark a packet on the client's OUTPUT chain and add an iproute policy on the router to route them via a specific gateway? This what I tried to do, but it isn't working. My client's mangle table ...
1
vote
1answer
14k views

OpenVPN: Push a route to client with a different gateway

I would like my OpenVPN server to push a route down to the client with a different default gateway. Specifically, my OpenVPN server has an internal IP address of 10.0.0.1, and I would like it to ...
2
votes
0answers
245 views

SNAT problem in iptables

I am trying to reroute traffic from specific devices in my house over openvpn. For this, I've created an OpenVPN tunnel between my house wifi router and my server. Here is my setup: Wifi router's ...
2
votes
0answers
766 views

Adding multiple gateways for separate physical interfaces with various metrics/priorities

My system has 3 interfaces. These are eth0, eth1 and usb0. eth0 is linked to my router and is the line I want to be used by default. eth1 is un used. usb0 is a 3G phone that's tethered. My issue is ...
2
votes
0answers
25 views

Route a particular process over another gateway [duplicate]

I have 2 internet connections on differnet interfaces. I have eth0 which is internal ip of 192.168.1.70 and then I have another network connection to a different network which is on wlan0 ...
2
votes
2answers
600 views

What does my router need to act as a name server for my home network?

I am happily using an old PC as a router. Two network cards, Debian wheezy, NAT, ... everything just fine. My home network uses static IPs, which I am also happy with. However, every box on my home ...
8
votes
1answer
3k views

Linux as router with multiple internet providers

Linux as router: I have 3 Internet providers, each with its own modem. Provider1, which is gateway address 192.168.1.1 Connected to linux router eth1/192.168.1.2 Provider2, gateway address ...
3
votes
4answers
32k views

How can I change the default gateway?

Currently I'm running a FreeBSD 9.1 and the default gateway is already configured in the rc.conf. rc.conf: defaultrouter = "10.0.0.1" But now I want to change the default gateway without rebooting ...
1
vote
2answers
433 views

iptables: what the difference between filter and mangle

I am using iptables to to mark the package and want to route based on the marks. First I added the ip rule: sudo ip rule add fwmark 1 prohibit (The "prohibit" is just for test, I will change it ...
4
votes
1answer
1k views

Can't ssh to beaglebone?

After I did: route add default gw 192.168.7.1 I also changed /etc/resolv.conf: nameserver 192.168.7.1 in order to share internet between Ubuntu in VMware. I've got internet working but after a ...
1
vote
1answer
358 views

What does the route Dest: 123.123.123.123, GW: 0.0.0.0 mean?

I have a route table: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 123.123.123.123 0.0.0.0 255.255.255.255 UH 0 0 0 ...
1
vote
1answer
1k views

Copy/Mirror traffic to WAN interfaces without “iptables tee” support

I want to copy every outgoing packet to other WAN interfaces but my iptables (v1.2.7) doesn't have TEE target support. I wonder if there is another way (maybe using iproute2 or ebtables) to copy every ...
4
votes
2answers
193 views

Is it possible to set-up a VPN in such a way that I disconnect from the Internet if it goes down?

How can I set-up a VPN so I loose connection to the Internet if it goes down? I use Ubuntu and have used the network-dialog to use a VPN; but if the VPN goes down, it just switches to the non-VPN ...
3
votes
1answer
116 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 ...
2
votes
1answer
599 views

Route only ssh traffic through VPN

Is it possible to route a computer's SSH service through a VPN connection but allow ALL other data to exit through the WAN address? What sort of iptables magic needs to be done to accomplish this? ...
1
vote
1answer
813 views

TP-Link TL-WR1043ND as dumb access point

I followed these instructions on how to set up my TP-Link TL-WR1043ND as a dumb AP: Flashed brand new Attitude Adjustment 12.09-rc1 Logged into LuCI, set up a password Disabled and stopped firewall ...
2
votes
1answer
229 views

Http proxy to select external interface based on host header

I have a very specific use-case at work where I have several external IP addresses (a full class C), and I need to select the outbound IP address I'm using. The requests are http, and the application ...
4
votes
3answers
1k views

ssh will sporadically hang temporarily on fast connection

I am using Ubuntu 13.04 on my laptop, connected to my router at home. When working from home, I will ssh into the servers on campus, through a vpn, with X11 forwarding. ssh -X ...
1
vote
1answer
112 views

Routing 4 Networks

I've been trying for almost a week to make it work but without success. I'm starting to feel hopeless. I have 4 Ethernet adapters : 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state ...
1
vote
2answers
175 views

Using a specifing gateway for a packet. (CentOS/RHEL)

I have just setup a machine which has two NICs, one for private network and the other one for public network which has a real IP assigned to it. DEVICE=eth0 HWADDR=XXX TYPE=Ethernet UUID=XXX ...
2
votes
1answer
818 views

How do I route different users over different OpenVPN tunnels in Linux?

The setup: I have multiple, static-key OpenVPN client/server configurations, labeled "client1", "client2", and "client3" with server/client IPs 10.10.1.1/10.10.1.2, 10.10.2.1/10.10.2.2, and ...
2
votes
3answers
223 views

Detect which interface traffic to an IP address goes through

I'm making an script, and I need to detect in what interface is the traffic of an IP going through. This is because in the arch, an IP address is attended only for one of four NIC's, but can be any of ...
1
vote
1answer
249 views

How can I configure dnsmasq to resolve based on the source of the request?

I'm trying to get SiriProxy to work whenever I'm connected to my home network by setting up dnsmasq on my router running the Tomato firmware to send all requests to the Apple Siri server to my local ...
1
vote
0answers
176 views

Network in LXC not forwading through a bridge

I've got an LXC container, on the host I've got a bridge between the LXC container and eth0. The LXC container can ping it's Host 10.1.0.5, but can't ping the gateway of 10.1.0.2. The host is able to ...