Questions tagged [routing]

Questions about using a router/networking, e.g. port forwarding, VPNs

Filter by
Sorted by
Tagged with
196 votes
13 answers
402k views

How can I make the Windows VPN route selective traffic (by destination network)?

I want to use a Windows VPN but only for a particular network, so that it doesn't take over my entire network connection. e.g., Instead of the VPN becoming the default route, make it only the route ...
Legooolas's user avatar
  • 5,870
96 votes
5 answers
251k views

OpenVPN: Only route a specific IP addresses through VPN?

On a remote private network there are two servers -- a file server and a database server (these are both Win machines, in case it matters). The file server has its own fairly robust authentication ...
Brian Lacy's user avatar
  • 3,281
31 votes
4 answers
46k views

Route the traffic over specific interface for a process in linux

Is it possible to route the traffic used by a process over a specific interface? For example, network traffic by download application should always use the interface wlan0 whereas all other ...
Suresh's user avatar
  • 573
1 vote
1 answer
638 views

How does an internet server respond to a request from a private IP?

I'm learning about private/public IPs, port forwarding and NAT, and still fail to see the answer to a simple question: Suppose two users on the same network are communicating with a single server ...
Ofek Shilon's user avatar
134 votes
14 answers
121k views

What is the exact use of a MAC address?

I understand that IP addresses are hierarchical, so that routers throughout the internet know which direction to forward a packet. With MAC addresses, there is no hierarchy, and thus packet forwarding ...
80 votes
3 answers
52k views

How do you get loopback addresses other than 127.0.0.1 to work on OS X

According to everything I read, the entire 127.x.x.x subnet should loopback. However, on my Mac, I can only ping 127.0.0.1 I know I've done this before (though possibly on another OS) and has come ...
elliotbetancourt's user avatar
19 votes
2 answers
23k views

How does the router know which device to send packets to? [duplicate]

my question does not concern how it moves through the internet, but how it moves through the router to a certain device. All devices connected to a router in a home network have the same external IP. ...
user avatar
2 votes
1 answer
3k views

Connecting to my own network via external IP

Even though I have seen and read quite a few similar Q's I was still unable to understand what is required for me to be able to do this. I have an internal network. One of the machines is a web ...
epeleg's user avatar
  • 569
20 votes
4 answers
34k views

How to set up application-specific routing table on Windows?

Suppose network interface 1 (net1) and 2 (net2) are both connected to the Internet. I want application 1 (app1) to use net1, and application 2 (app2) to use net2. How can it be done under Windows? If ...
netvope's user avatar
  • 5,325
5 votes
1 answer
5k views

Changing routing on Mac with two Ethernet ports

I have a Mac tower which has two Ethernet ports. One is connected to our corporate network, the other to a non-corporate network. Priority order states that the non-corporate network comes first and ...
Tony's user avatar
  • 281
1 vote
1 answer
735 views

Routing between two

I have the following network setup: From Laptop I can ping any IP in the 192.168.2.0/24 network and I have internet access. On Tower PC I can ping any IP in the 192.168.2.0/24 network (including 192....
Fabricio's user avatar
  • 115
51 votes
8 answers
70k views

How to force split tunnel routing on Mac to a Cisco VPN

Any one know how to hack the routing table (on a mac) to defeat the forcing of VPN routing for every thing over a cisco VPN? pretty much what I want to do is have only 10.121.* and 10.122.* addresses ...
user avatar
25 votes
3 answers
79k views

How to map an IP adress to localhost?

I want to map the IP address 192.168.1.222 to 127.0.0.1 so that if I use 192.168.1.222 in the web browser or ping command I get the response (and that from my 127.0.0.1). Is this possible via ...
Sebastian's user avatar
  • 373
14 votes
2 answers
55k views

Interpreting the 'metric' column in routing table

I'm a little confused about the output I'm seeing in my routing table, particularly the 'metric' column: $ route -n Kernel IP routing table Destination Gateway Genmask Flags ...
Alexander Kohler's user avatar
13 votes
2 answers
41k views

How can I setup a win 7 PC as a router?

I have an industrial PC with 4 Ethernet port, I would like to use this PC as a router on windows 7. Before we used Ubuntu so there is an open source solutiosn, but unfortunately the UPS power supply ...
Kicsi Mano's user avatar
11 votes
3 answers
17k views

DD-WRT: Cannot see client when using wired ethernet

A bit of a frustrating problem I've been facing - I just don't know what's wrong. I have a Netgear WNR2000v3 router with DD-WRT v24-sp2 (03/19/12) std installed. Everything works perfectly apart from ...
Robert Jonson's user avatar
3 votes
3 answers
10k views

How to run a web server on my PC without static ip

I have two related questions: 1- When I see my global IP address in a website like https://whatismyipaddress.com/, which is for example X.X.X.X, I think this is not only mine, and a lot of people who ...
Mahdi Mohammadpour Fard's user avatar
32 votes
3 answers
128k views

"Network is unreachable" when attempting to ping google, but internal addresses work

I can get to other PCs in my house on the 192 network, but trying to go outside gives me the "network is unreachable" message. p3p1 is up with a good IP Address. Running Fedora 16. What should I ...
Scott C Wilson's user avatar
26 votes
5 answers
85k views

How to tell Windows 7 to ignore a default gateway

I currently have 2 network cards in my PC -- one connected to an internal network on a router with a disconnected WAN port (10.x.x.x), and one connected to the internet through a consumer router (192....
zildjohn01's user avatar
  • 2,337
16 votes
5 answers
91k views

Rerouting local LAN and Internet traffic when in VPN

I'm connecting to a VPN which doesn't allow split tunneling and basically reroutes my Internet traffic through, which is slow. Additionally and more importantly, this also effectively removes my ...
Domchi's user avatar
  • 2,789
11 votes
2 answers
21k views

private address in traceroute results

I SSH into a remote host 194.199.68.165 and then use traceroute to check paths to 132.227.62.122 , and I notice that there are some private IPs, like 10.230.10.1 bash-4.0# traceroute -T 132.227....
misteryes's user avatar
  • 3,005
6 votes
1 answer
13k views

Routing a particular subnet into a VPN tunnel

My network looks like this: I'm trying configure my router so that the subnet (192.168.2.0/24) is routed over the VPN tunnel (tun0) on the gateway/router. While at the same time clients on the ...
moonmoon's user avatar
5 votes
2 answers
14k views

OpenVPN: Route only specific subnetwork through vpn - works for single IP adresses

I was trying to route only specific subnet/single through open vpn. I have read several questions like this on superuser, and even found good answer to my question. So I am now able to route single ...
running.t's user avatar
  • 278
68 votes
2 answers
122k views

What is the difference between ARP binding and DHCP address reservation?

In my TL-WR1043ND I have these functionalities and both of them pair an IP address to a MAC address. What is the difference? I read that ARP is for security reasons, others say it is for Wake-on-LAN. ...
totymedli's user avatar
  • 5,204
50 votes
2 answers
46k views

Does All LAN Traffic Travel Through A Router

I have a very simple question: if I have a router (DHCP enabled - leasing IP addresses between 192.168.0.2 and 192.168.0.254) with a switch plugged in, and I plug two computers into the switch, will ...
jrtc27's user avatar
  • 898
39 votes
8 answers
142k views

Access internal IP using public IP

I have a DSL modem with a public IP address (201.206.x.x), and I have a web server in my internal network (192.168.0.50). I set up the modem to forward requests to port 80 to my web server, so, if I ...
willvv's user avatar
  • 683
30 votes
5 answers
40k views

How do IP answer packets reach their destination inside of a private LAN? [duplicate]

This is a little theory question that has been confusing me for a pretty long time. Basically, if we are inside of a private LAN, and we want incoming packets to reach, for example, an HTTP server ...
InsomniaArray's user avatar
21 votes
2 answers
34k views

Route only specific traffic through VPN

I've looked up previous people asking similar questions, but have yet to get a straight answer that will work for my given situation, so here goes.. I'm running on Linux (Fedora 22) and have a VPN ...
Josh Raymond's user avatar
20 votes
4 answers
32k views

How do I setup Ubuntu/Linux's Network manager to selectively route network traffic through the VPN?

I'm using Ubuntu 9.04 and I just noticed that ALL of my network traffic is being routed through my VPN. I would like the VPN to route only the traffic hitting servers on the VPN and then connect ...
Elijah's user avatar
  • 494
14 votes
3 answers
28k views

Why is tracert showing a private IP address right after my router, even though it has a public IP?

Here is a log of tracert superuser.com from my computer: Tracing route to superuser.com [198.252.206.16] over a maximum of 30 hops: 1 2 ms 2 ms 2 ms 192.168.1.1 2 11 ms 17 ms ...
kinokijuf's user avatar
  • 8,255
14 votes
2 answers
59k views

Windows 7: how can I add an IP range in the "route" command?

I'm using two network connections, and I tried using the "route" command so that when I access a specific internal IP on my LAN, it would use connection 1, anything else would go normally through ...
KeyStroke's user avatar
  • 373
13 votes
6 answers
67k views

When a PC has both a wired and a wireless connection, how is information transferred?

My PC has two connections (wireless and wired) simultaneously. Both of them have an internet connection. In this situation, how does it connect to the internet? How do my LAN and WLAN interfaces know ...
KevinOelen's user avatar
11 votes
8 answers
24k views

Why can't routers use MAC addresses instead of private/local IP addresses?

I understand the reason public IP addresses are necessary to be that if we only had MAC to move data between one host and another, the entire Internet would be one massively flat network. But what is ...
Drazen Bjelovuk's user avatar
11 votes
4 answers
131k views

Why can't my OpenVPN client access machines on same LAN as OpenVPN server?

I have configured OpenVPN on my Linux server and Windows client according to the instructions here. My client can access the server, but can't get any further onto the LAN. My Server is 10.23.29.64/...
Grezzo's user avatar
  • 962
11 votes
4 answers
37k views

Routing all Traffic through OpenVPN Tunnel

I have installed OpenVPN server on Archlinux and am now using OpenVPN GUI on Windows 7, I can talk to other computers connected through the VPN but I have not yet figured out how to route all traffic ...
Filip Ekberg's user avatar
9 votes
4 answers
33k views

Static routing on a TP-Link TL-WR1043ND

My home network setup looks like this: Both routers are TP-Link TL-WR1043ND routers. The basement router handles all devices in the house that are connected via cable, handing out addresses for the ...
igor's user avatar
  • 260
9 votes
1 answer
55k views

How to forward packets between two interfaces?

My laptop (use's Ubuntu 13.10) is connected to internet using a wired connection at eth0 with ip 192.168.42.13 and it also acts as a wifi hotspot at wlan0 with the ip 192.168.1.1 (i used airbase-ng to ...
vikkyhacks's user avatar
8 votes
3 answers
4k views

Iptables forwarding port/s to a external IP transparently (remote end should see the actual source IP)

The question is simple but I think the answer might not be as I went through countless related topics with no concrete reply. I wish to forward a port 1234 from x.x.x.x to y.y.y.y (both on internet ...
Sam's user avatar
  • 81
6 votes
2 answers
8k views

How to use a Windows PC to share multiple network connections?

I have a Windows PC (Win 7). It has a couple different network connections, including one that connects to a VPN, and one that connects to the Internet. I want to share both of those connections with ...
Tacony's user avatar
  • 161
6 votes
4 answers
1k views

Is there any alternative to virtualization for handling two different interfaces, different networks and same IP range?

I have a Linux box with two different NICs that are connected to two different networks, but they share the same IP range (10.0.0.x). My first idea was to use virtualization for that (i.e., Xen), but ...
Carlos's user avatar
  • 61
6 votes
2 answers
25k views

Problem with persistent routes and VPN connection in Windows 7

My home PC has a VPN connection to my office. The office network is firewalled, with a secure zone on 192.168.0.* and a DMZ on 10.0.0.* From outside, www.mycompany.com routes to a public IP - say 1....
Dylan Beattie's user avatar
5 votes
2 answers
7k views

How to route traffic to website using a specified network connection on Windows 7?

I want to route all traffic to a website over my wireless connection while the rest of the traffic using my lan. What I tried was first finding out the IP address of the website I want to go to. For ...
rwetzeler's user avatar
  • 161
5 votes
2 answers
12k views

Multiple NICs in linux: how to return route through established?

If there's a linux host with two interfaces on two different networks (the primary network, and the out-of-band management network, call them "primary" and "mgmt"), how can return traffic be routed ...
Ned's user avatar
  • 91
5 votes
3 answers
6k views

hosts file for ip address

I would like to map ip address to specific localhost interfaces (e.g. 23.45.66.77 => 127.0.3.3). For named hosts I can use the hosts file. Naturally this doesn't work for IP address. This has to work ...
Jon Clegg's user avatar
  • 151
4 votes
1 answer
6k views

Default route in debian with two interfaces

I have a debian machine with two interfaces, configured by dhcp: allow-hotplug eth0 iface eth0 inet dhcp allow-hotplug eth1 iface eth1 inet dhcp On boot, a default route is added to eth1: 0.0.0.0 ...
loopbackbee's user avatar
  • 1,431
4 votes
3 answers
41k views

How to make Windows send specific traffic to specific ethernet ports?

In my line of work, I am often in a situation where I want to do this: Icon made by Freepik used with permission from flaticon.com Essentially, I have my phone setup as a Wifi hot-spot, in order to ...
Frank's user avatar
  • 183
3 votes
2 answers
12k views

Creating a whitelist of websites on the router

I have a home network using a Siemens SL2-141 ADSL router. Is there a way to tell the router to allow only specific websites, for example, to protect kids using the computers from harmful sites? I ...
Erel Segal-Halevi's user avatar
3 votes
3 answers
6k views

Custom route table for a specific application? [duplicate]

I'm on a network with two internet connections. One is a WAN access to a corporate network (with custom firewall rules), the second is a direct internet connection. By default, all communications are ...
Steve B's user avatar
  • 2,222
2 votes
1 answer
3k views

Route LAN traffic through eth0, not tun0, on my VPN access point

How can I make my Access Point send traffic to 192.168.1.0 through eth0 and all other traffic through tun0? I have set up a Raspberry Pi VPN access point. It sits on the same subnet as all my servers,...
SnabelaDotNet's user avatar
2 votes
1 answer
17k views

How to set route specific interface metrics under Mac OS X

UPDATE: I found a great answer to part of my problem here https://superuser.com/a/525592/169461. I was able to set priority for interface en1 (wifi). However, this is not specific enough, since it ...
titusn's user avatar
  • 105