Questions tagged [route]

Command line tool for manipulating and listing the routing table.

620 questions
0
votes
1 answer

Redirect port to openvpnas client

I've been trying really hard to allow a distant pc to access to my web server hosted on a vpn client (openvpn access server). I'd like to make this setup possible: The VPS's os is debian 8 btw I have ip forward enabled echo 1 >…
Furest
  • 11
  • 3
0
votes
1 answer

Allow only subnet routes for a given network interface (Windows)

I use a laptop, which has two physical network interfaces: wireless (IF 11 as printed by route) & Ethernet (IF 12). I have two routers R1 & R2, but only the first one does have an internet connection. My goal is to route all traffic via R1, but…
Eralde
  • 3
  • 1
0
votes
1 answer

Openswan server not routing traffic to LAN instances

I created an openswan instance which connected with AWS VPN and tunnel is up. I can ping from Openswan server to EC2 instance in VPC and EC2 instance can also ping Openswan private interface. But servers behind Openswan server cant reach EC2…
xs2rashid
  • 204
  • 1
  • 7
0
votes
2 answers

reroute traffic from A going to B to instead go to C

I have TCP traffic from 192.168.3.51 going to 192.168.3.10 but instead I would like to have it sent to 192.168.3.50 Is there a way to set this up in iptables such that only tcp traffic coming from A and going to B is instead sent to C? Thank you.
0
votes
1 answer

Why first hop of traceroute is not the default router?

default route is: ip route show: 10.0.0.0/23 dev eth1 proto kernel scope link src 10.0.0.150 default via 10.1.1.1 dev eth0 metric 100 And traceroute www.google.com traceroute to www.google.com (172.217.25.68), 30 hops max, 60 byte packets 1 …
Sato
  • 449
  • 2
  • 9
  • 17
0
votes
2 answers

BGP advertising routes accross connected virtual networks

I have 2 vnets (same subscription), one in AU (10.2.0.0/18) and one in UK (10.2.64.0/18). The vnets are connected together and virtual PCs connected to each vnet can ping each other. Click here for topology My AU vnet is also connected to my…
0
votes
3 answers

How to find out the interface inbound traffic is using?

For a outgoing packet, by route I can know which interface is using, but for a incoming packet, how to find out which interface is using?
Sato
  • 449
  • 2
  • 9
  • 17
0
votes
1 answer

Iptable Prerouting chain

I am setting up honeypot network to trap attackers. I have some routing issues. I have configured static routes in all machines so that I can connect any machine to any machine in the network. I want mechanism such that if traffic comes from…
Naveen H
  • 1
  • 4
0
votes
1 answer

Ping is working but curl not working on a specific interface

I would like to be able to make a curl through 2 different interfaces: ppp0 (data connection) and enp3s0 (ethernet connection). ppp0 connection is mounted by pppd. This gives the following route table: $ route -n Table de routage IP du…
Julio
  • 155
  • 2
  • 7
0
votes
2 answers

Define route which is being created on the client when connecting to Windows VPN server

I have the following situation: VPN with Server 1: - Server IP: 10.8.4.1 - Client IP Range: 10.8.4.1 to 10.8.4.254 - Netmask: 255.255.255.0 VPN with Server 2: - Server IP: 10.8.5.1 - Client IP Range: 10.8.5.1 to 10.8.5.254 - Netmask: 255.255.255.0 I…
TOG
  • 1
  • 2
0
votes
1 answer

Extra routes being created when assigning virtual network interfaces

I'm running a Ubuntu VPS that I'm using as a squid proxy server. From my provider I've got a load of IP addresses which I'm assigning as virtual interfaces within /etc/network/interfaces.d/eth0.cfg like the following: #Endpoint_48 auto…
DrShamoon
  • 103
  • 1
0
votes
2 answers

How can I route SYN and RELATED TCP 80,443 out a different interface than my default GW?

I have a server with two nics (eth0 = 10.10.10.1/24, eth1 = 192.168.1.2/24). eth0 is the default route for both local and internet traffic. I'd like to route anything which is not 10.10.10.x traffic (eg: apt traffic to security.ubuntu.com,…
Server Fault
  • 3,714
  • 12
  • 54
  • 89
0
votes
0 answers

Hyper-V ping VM from different physical host

Here is the setup, I'd appreciate if someone can tell me why this doesn't work. This illustration should make it easy to understand. From 192.168.1.3 how can I get to 10.0.0.5 ? Wouldn't a route such as the following be enough? route -p add…
Exocomp
  • 163
  • 10
0
votes
1 answer

How to route all traffic from a specific port to a specific network interface?

I have the following setup: A computer with two network cards connected to two different routers. The first router redirects all outside traffic coming on port 5122 to port 22. So that I can connect to the machine using ssh. I wish to use the first…
user4338027
  • 13
  • 1
  • 4
0
votes
1 answer

Accessing Tunnelled Local Server via Cloud Server's Public IP

I have tunneled my local server to cloud server with VPN tunnel (Tinc). Both servers can talk each other on tun0 interfaces. My cloud server can be accessible through Internet with public IP address assigned to its eth0 interface. I want my local…
Kerem atam
  • 101
  • 4