Questions tagged [route]

Command line tool for manipulating and listing the routing table.

Filter by
Sorted by
Tagged with
3 votes
1 answer
5k views

How do I delete route to "link#8" gateway on MacOS?

How do I delete default route of "link#8" gateway on MacOS El Capitan? It's a route automaticaly added after connecting to IPSec VPN. $ netstat -rn Routing tables Internet: Destination ...
igo's user avatar
  • 413
2 votes
1 answer
455 views

openvpn connection without forwarding all traffic

I am trying to connect a client to a vpn network without openvpn forwarding all my traffic into the network. The point being is I want to be able to connect and communicate with all the other ...
user315225's user avatar
4 votes
1 answer
9k views

RTNETLINK answers: File exists -- OpenVPN errors

I have a bunch of servers that connect to the world through a "gateway" server that uses a NAT to redirect to the internet. I am trying to connect the gateway server to a VPN client through an ...
Ahmed Fayad's user avatar
5 votes
2 answers
10k views

Making changes to default IPv6 route persistent in CentOS 7

I have several IPv6 addresses on a CentOS 7 server and need to make a specific v6 address the default address used in routing. I have been able to do this by modifying the route table. ip -6 route ...
James White's user avatar
1 vote
0 answers
4k views

Transparent Proxy Issues w/ HAProxy Centos 7

Having issues following steps to transparent proxy outlined here: Howto transparent proxying and binding with HAProxy and ALOHA Load-Balancer | HAProxy Technologies – Aloha Load Balancer Believe to ...
richv's user avatar
  • 146
0 votes
1 answer
183 views

How to change subnet to login in OpenVPN client.conf?

I have an access to different subnets. How can I modify client.conf to login (or at least able to route) in another subnet? E.g. now I get IP address in 10.132.193.0/24 subnet, but I want to get IP in ...
Paul Serikov's user avatar
0 votes
1 answer
2k views

Windows Server 2012 R2 The route addition failed: The system cannot find the file specified

I am using a simple powershell command,(ran as Admin) as follows. route –p add 172.30.200.0 mask 255.255.255.0 0.0.0.0 IF 28 I have done this no problem on Windows 8.1, but when I do this in ...
S4br3L0FF's user avatar
3 votes
1 answer
6k views

How to add persistent route for VPN when interface # varies?

In Windows, I can add a persistent route for an IP using the interface number of my VPN connection. However, when I reconnect to the VPN later, the interface number changes, which means the route I ...
ingredient_15939's user avatar
2 votes
2 answers
21k views

How to configure OpenVPN server to add route for new clients

I've got a LAN behind OpenVPN client (mikrotik router) which connects to a server, and allows access to the machines inside LAN for every other client that connects to the server. The LAN has its own ...
Krystian's user avatar
  • 306
-1 votes
1 answer
91 views

Dynamic NAT configuration

I am using two routers and one host (computer), I connected fast Ethernet 0/1 of router A with the host and fa0/0 of the router A with the router B I have configured gateway as last resort on both ...
Brathaban Balachandran's user avatar
0 votes
1 answer
6k views

Why i can't access computers in LAN behind OpenVPN server?

On ESXI server i have several VMs: one with external ip address (and internet access), that is configured as NAT (and plays OpenVPN server role) and several VMs in VLAN (using 192.168.182.*/28 ip ...
avasin's user avatar
  • 279
0 votes
0 answers
2k views

How can I create routes between two separate LANs

I have a ASUS RT-AC66U with merlin firmware, how can i create a connection between 2 different subnets, whitout using Vlan's ? My Server subnet is 10.10.1.0 255.0.0.0.0 Asus router and client ...
Bendo1984's user avatar
19 votes
3 answers
32k views

Routing from docker containers using a different physical network interface and default gateway

Background Information I have a server with two network interfaces that is running Docker. Docker, like some virtualization tools, creates a Linux bridge interface called docker0. This interface is ...
user avatar
0 votes
1 answer
1k views

forwarding ping using ip route [closed]

I have a Linux setup which consists of two interface. A local LAN interface and virtual interface. ETH0: 150.10.15.194 PAN0: 192.168.255.209 I would like to set rules that route all ICMP echo ...
stdcall's user avatar
  • 187
0 votes
0 answers
259 views

Linux router for 2 public subnets with one getaway and one local subnet - not load balancing ;)

I have problem with routing on linux. My ISP give me 2 ranges of public addresses, lets say: 192.168.11.0/30 (4 addresses) - router 192.168.33.0/29 (8 addresses) - servers additionally I have on ...
tomiozo's user avatar
1 vote
1 answer
150 views

Debian - One Gateway 2 interfaces how to?

I have this scenario. 4 VM Debian8 : 1 DHCP 1 DNS 1 GW 1 Client I can ping from all my VM (except GW) each other (@ip or hostname). My GW have 2 interfaces (eth0->LAN / eth1->WAN). From it I can ...
Ragnar's user avatar
  • 113
0 votes
0 answers
1k views

Adding a remote default route gives SIOC[ADD|DEL]RT: No such process

I have searched the whole web for this but it seems no one has had similar problem. I have a local network (no internet) which my router ip is 10.201.32.10 and my gateway is 10.201.32.41 I have a VPS ...
mojtabaf's user avatar
1 vote
1 answer
623 views

OpenVPN: Traffic Redirection not Working

tl;dr (after hours of debugging with @krisFR): At least under Debian 8, never use virtual interfaces (eth0:1) for OpenVPN, instead apply the new debian iproute2 methods (manual approach) described ...
TCB13's user avatar
  • 1,238
0 votes
1 answer
84 views

Network Config: Difference between Windows and Debian

We have a so called "LAB"-Network(VLAN). The Switch and Firewall are configured to allow access from the ip 10.150.151.1 (Windows Client in LAB) and 10.150.151.10(Debian Client in LAB) to a mail ...
SaintCore's user avatar
0 votes
2 answers
2k views

How to configure network interfaces for three NIC cards all on three different subnets

I am setting up a cloud environment on Ubuntu and I am running into an interesting problem. Out of the box Ubuntu (all linux really) doesn't allow you to specify more than one gateway in /etc/network/...
Ethode's user avatar
  • 200
3 votes
4 answers
7k views

Xen VM won't come up: could not find bridge device xenbr0 (configured to use routed)

I am using xen 4.4.1 on an Ubuntu 14.04 server, my DomU is running Ubuntu 14.04 Server as well. I've run this DomU in bridge-mode previously no problems. However I want to switch to a routed setup. I ...
user280054's user avatar
0 votes
2 answers
227 views

Make some route info persistent on RHEL

I would like to make the following route info persistent. I know how to do it for the default, but how about this line: 10.27.74.0 * 255.255.255.0 U 0 0 0 eth0 ...
yield's user avatar
  • 800
4 votes
2 answers
12k views

Use Mikrotik as a switch and route subnets through another router

I've got the following network configuration: Comtrend 5813 FTTH Router, connected to WAN, let's say in 192.168.50.x (being .1 router's address) and a DHCP server active, giving addresses from .150 ...
F3RD3F's user avatar
  • 155
1 vote
0 answers
303 views

Clone and then route SNMP traps to new destination

We have 2 SNMP trap servers 10.0.0.1 and 10.0.0.2 which are the SNMP trap servers for close to 500 devices that we monitor.In all these 500 devices,10.0.0.1 and 10.0.0.2 are configured as the trap ...
Amistad's user avatar
  • 111
0 votes
1 answer
1k views

Mikrotik- a subnet route is ignored

I have the following schema: Site1 (Mikrotik) Static WAN IP - 192.168.28.11/28 dynamic connected route - 192.168.28.0/28 --> 192.168.28.1 (route1 for short) static connected route - 192.168.28.240/...
user266784's user avatar
1 vote
3 answers
5k views

Gateway can be pinged, but fail to add route with it

I want to use 10.1.16.189 as gateway to access 9.36.204.4 both on redhat 6.4. here is the network configuration of my machine: eth0 Link encap:Ethernet HWaddr 06:FB:C1:7B:19:FD ...
che yang's user avatar
  • 113
0 votes
0 answers
2k views

How to define route on all IP addresses except some subnet

I need to set up the following rules: If IP is in range 192.168.0.0-192.168.0.255 then route iut from gateway 1 (let's say 192.168.2.1) otherwise for all other IP addresses route it through default ...
seeker's user avatar
  • 231
4 votes
2 answers
10k views

NAT a single IP using 2nd WAN Internet

I have a MikroTik RB750 (firmware 6.22) acting as a gateway for my LAN. Here is the basic configuration: Ether1-WAN1 (1.1.1.10/24) Ether2-WAN2 (2.2.2.20/24) Ether5-LAN (192.168.1.1/24) IP Routes: ...
Narbeh Davoodian's user avatar
0 votes
0 answers
310 views

How to terminate any ip/ip tunnel which has this host as destination

I am in a situation where I want to terminate any tunnels at one device. I.e. I want to be able to create a tunnel to this device from any source ip adress. Something which can inspect a packet, see ...
Erik Henriksson's user avatar
0 votes
2 answers
252 views

Private Network Interface between to MacOSX servers

We would like to set up and private single cable connection between two Mavericks servers, that also need to talk to the rest-of-the-world. The two servers for sake of argument are DB and Web. There ...
Dycey's user avatar
  • 101
0 votes
1 answer
280 views

IP route not on default gateway

I am trying to setup a network that is only accessible if you go through the '10.222.3.1' switch. It is a test environment that we do not want interfering with our production environment. The trouble ...
Tyler Siegrist's user avatar
1 vote
0 answers
77 views

How can I proxy requests to a specific IP to a different IP on OS X?

On OS X how can I setup a route so that when I make a request to 10.0.0.1 it is redirected to localhost? Right now I can do curl localhost:3000 and get back a blob of HTML from my running node web ...
CatDadCode's user avatar
0 votes
1 answer
2k views

Why adding a route here is throwing up an error?

I have a linux Fedora -16 machine that has two interfaces - em1 Link encap:Ethernet HWaddr B8:CA:3A:89:EE:F1 inet addr:136.170.195.17 Bcast:136.170.195.255 Mask:255.255.252.0 ...
dexterous's user avatar
  • 215
0 votes
1 answer
242 views

Public IP not responding because routing table...?

Fixed with: /etc/iproute2/rt_tables 1 tble_eth0 /etc/sysconfig/network-scripts/route-eth0 104.000.64.0/18 dev eth0 src 104.000.65.38 table tble_eth0 default via 104.000.64.1 dev eth0 src 104.000.65....
OnTheFly's user avatar
23 votes
2 answers
49k views

Routing selection: specificity vs metric

I understand that Linux chooses the most specific route to the destination when it does routing selection. But what about a route's metric? Does it have a higher priority than route's specificity? A ...
Eugene Yarmash's user avatar
0 votes
0 answers
6k views

Openvpn Packet loss troubles

Hy! I got an Openvpn server on Linux and use it to route all ipv4 traffic from my clients (win7,android, pfsense etc). I finally want to really understand the routing thing, although it works, but ...
Peter Fleix's user avatar
4 votes
3 answers
14k views

How access remote network with OpenVPN?

I am currently trying to configure OpenVPN to access our company network remotely. I was able to establish a connection and ping the server at the configured address (10.8.0.1), but I was not able to ...
Karsten's user avatar
  • 141
0 votes
1 answer
1k views

force use of specific ip when talking to specific host

I have a server with multiple interface alias running debian. lets say eth0 eth0:0 and eth0:1 I'm looking for a simple solution, when connecting to host 1.2.3.4 (or host range, would be better) that ...
Antony Gibbs's user avatar
-1 votes
1 answer
1k views

Can 192.168.20.4/24 describe a network or only a host? [duplicate]

As I understand it IP 192.168.20.4/24 can only describe a host (24) on net 192.168.20.[1-254]. Now when describing a net; can 192.168.20.4/24 be a valid network ID, or should such a network ID always ...
JohnyTex's user avatar
  • 101
0 votes
1 answer
405 views

Understanding aws ec2 default routes in [closed]

After launching a new EC2 instance on AWS, I get the following routes. The LAN subnet is 10.0.0.0/24. $ sudo route -n Kernel IP routing table Destination Gateway Genmask Flags ...
nwarp's user avatar
  • 143
13 votes
2 answers
10k views

How does Linux pick which network interface to use?

Let's say I have a machine with two network adapters on different subnets, eth0 (10.0.100.5) and eth1 (10.0.200.5). Assuming both subnets have routes to the internet (though their own NATs) and to the ...
Dan's user avatar
  • 241
3 votes
1 answer
12k views

Missing iptables rules for Strongswan routing for VPN for phone

I have a Centos 6.6 VPS out on the Internet that has a public IP. I have installed StrongSwan 5.1.3 to allow my BlackBerry10 phone to connect from hotspots and use the VPS' connection. The VPS' IP ...
Timbo's user avatar
  • 31
1 vote
1 answer
1k views

OpenVpn & KVM: can't access LAN behind server

i just set up an OpenVPN Server on a rented root Server. I can ping the OpenVPN Server IP, but can't connect or ping to other Machines (VMs) on the OpenVPN Server Network. According to the official ...
Patrick Werner's user avatar
12 votes
2 answers
25k views

How can I configure my DHCP server to distribute IP routes?

I have a DHCP server (Linux, IPCop, dnsmasq) running on my default gateway server 192.168.0.1. I have a VPN endpoint on another server in the network (192.168.0.4). Is it possible to configure the ...
blerontin's user avatar
  • 424
1 vote
1 answer
2k views

Can't set up the default route from a sublan to the WAN [closed]

I am trying to connect one of my PCs to the Internet via a WiFi network using a notebook. Here is my network : (Wifi) <=============> (Notebook) <===============> (Desktop) (192....
MayeulC's user avatar
  • 150
0 votes
1 answer
1k views

Need help interpreting route output

GUEST CentOS VM (VirtualBox): [root@localhost network-scripts]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default ...
user's user avatar
  • 123
0 votes
1 answer
1k views

OpenVPN config for route some traffic through VPN CentOS 6

My server is using CentOS 6.4 64 bit and have 2 network adapter. 1st adapter have an internet ip: 192.241.190.x 2rd adapter is an LAN network with ip: 10.60.5.62 I installed openvpn and config for ...
Viet's user avatar
  • 113
0 votes
1 answer
1k views

Adding static routes to remote networks

Having: My local machine (A) A remote router (B) who knows a remote network/subnet (X) My local machine's is located at the default router's (C) subnet, who know the remote router (B), but has no ...
ralftar's user avatar
  • 43
0 votes
1 answer
397 views

How can I tell what's happening to my packets?

I'm trying to bring up a little box on my network. I just reflashed the firmware and it's supposed to come up as 192.168.1.1 by default. My router is a DSL modem at 192.168.0.1; it usually uses a ...
Adam Bliss's user avatar
0 votes
2 answers
2k views

dynamic 'route add' command doesn't work but static is working

i am having a situation where route add is not working but if i add that as a static entry in sysconfig/network-scripts/route-eth0 its working Network details: IPADDR=198.x.x.1 NETMASK=255.255....
chemical X's user avatar

1
5 6
7
8 9
13