Questions tagged [route]

Command line tool for manipulating and listing the routing table.

620 questions
3
votes
2 answers

how to add static route to specific host

I'm currently using "strongSwan" ipsec VPN client on linux. I can connect to my VPN server, default route automatically set to 10.10.10.1. And I can access my local network by ip route add 192.168.7.0/24 dev ens33 ip route list output: default via…
GongT
  • 53
  • 1
  • 1
  • 6
3
votes
3 answers

openvpn --client-connect example script

Good day all I require a --client-connecting script and --client-disconnect script. My issue: is that I am unable to find an example anywhere, I have been searching for the past 4 hours. I have only come across this from the OpenVPN archive back in…
CybeX
  • 323
  • 2
  • 7
  • 18
3
votes
2 answers

Change default outgoing IP adress on latest Ubuntu

I just set up a second IP adress on my Ubuntu server and now I'm trying to change the default outgoing IP adress to the new one with ip route replace default via src . But whenever I restart the networking service, it gets changed…
kevdotcom
  • 31
  • 2
3
votes
2 answers

Allow Docker containers to use IPSEC VPN on host

I have Docker and an IPSEC VPN tunnel on my workstation, but the containers can't access hosts behind the VPN. Is there anything I can do, e.g. with IPTables or routes to allow access? [Note: I'm currently running these tests from within a…
Robin
  • 305
  • 1
  • 3
  • 9
3
votes
0 answers

Ping problems with two interfaces, same subnet, direct connections to two separate hosts

I have a configuration of a client machine (Ubuntu 14.04.2 LTS) that directly connects to two server machines. The server machines--while on the same subnet--cannot route to each other. Packets must not route between the client's eth1 and eth2,…
3
votes
2 answers

Cannot ping through one of the network interfaces

Setup ubuntu linux VM ( virtual-box) is configured with two interfaces, eth0 and eth1. eth0 is on a bridged network and directly connected to external network. eth1 is on "nat network", which is also connected to external network. Problem Unable…
Nambi
  • 149
  • 1
  • 1
  • 5
3
votes
1 answer

how to associate a Docker network interface to a Linux network interface (eth5) on Linux host?

My Linux host has 8 Ethernet interfaces, eth0 - eth7. I'm running three Docker 1.9 containers on this Linux host. How can I associate a network interface inside one Docker container to a specific Linux physical network interface (say eth5) on the…
Adi
  • 41
  • 1
  • 4
3
votes
1 answer

multiple tuntap VPN traffic selection

I have a php / bash application on top of a linux machine (centos or debian but assume redhat just in case the reply need different dialect) connecting to port 80. Actually I'm perfectly able to open a VPN via openvpn on linux command line. I use…
fab
  • 151
  • 1
  • 9
3
votes
1 answer

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 Gateway Flags Refs Use Netif…
igo
  • 393
  • 4
  • 9
3
votes
1 answer

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 added previously no longer works. So each time I…
3
votes
4 answers

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 changed the DomU config vif…
user280054
  • 31
  • 1
  • 3
3
votes
2 answers

Using IP alias and route to visit a site through assigned IP address

I want to visit a site through assigned IP address. I run the following commands: ifconfig eth0:1 [ip address] route add -host [the target host ip] dev eth0:1 gw [gateway] This works fine on Ubuntu. But when I want to do the same on a Redhat AS4…
gleery
3
votes
1 answer

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 shows when I go to www.whatismyip.com, and so I…
Timbo
  • 31
  • 1
  • 1
  • 3
3
votes
1 answer

How to use a Linux OpenVPN client host as gateyway for a Windows OpenVPN client host?

I have an environment where I have a OpenVPN server (Linux) and a few OpenVPN clients (both Windows and Linux). All those hosts (server & clients) are connected to the Internet, they are not connected to each other in LAN. The idea is to have the…
nwguy
  • 31
  • 1
  • 2
3
votes
0 answers

How can I test an ICMP Re-direct message?

I want to test whether my linux machine is actually accepting ICMP re-direct message and updating the entry in routing table.This is what i have done so far to achieve the same. Simulated a ICMP redirect message with 0,1,2,3 code from ostinato…
Renold Singh
  • 336
  • 2
  • 3
  • 13