Command line tool for manipulating and listing the routing table.
Questions tagged [route]
620 questions
0
votes
1 answer
How to set a public LB route to a proxy on AWS?
I built this traffic route in a VPC.
Route53->ACM(SSL)->Public ALB->EC2(Nginx proxy)->Private ALB->ECS(Internal App)
The EC2's security group is allowing tcp 80 and 443. The ECS' security group is allowing 80 from EC2's security group.
When I…

uotn
- 17
- 1
- 4
0
votes
1 answer
Add to route table destnation using this syntax *.mycompany.net
The reason that I am asking this question is that i a using VPN-slice (VPNC) with openconnect
While running this command
ip route add *.mycompany.net via 0.0.0.0 dev tun0
Error: any valid prefix is expected rather than "*.mycompany.net".
What I…
0
votes
0 answers
How to configure Fedora 34 with three NICs and three subnets to route traffic?
I have a Fedora 34 linux and it has a physical ethernet interface (NIC3), a physical wifi interface (NIC2) and an USB/Ethernet interface (NIC1) (USB LTE Dongle).
I would like to use the NIC3 to route all traffic to NIC1. And I would like to keep the…

supi007
- 76
- 1
- 9
0
votes
0 answers
route two interfaces that has ip of two different subnet
Yes I know it's a duplicate of many questions but I can't find my solution to them.
I have a host virtual machine (ubuntu 16.04) that has two network adapters. one of them is connected to the gateway(so it has internet). but another one is just…
0
votes
1 answer
Auditing specific route table operations
Does Linux have a way to audit operations run against a specific route table?
I have the following config in my custom route table:
default dev tun0 scope link
192.168.100.0/28 dev eth0 scope link
for an unknown reason some processes remove the…

Mazzy
- 227
- 3
- 11
0
votes
3 answers
why MASQUERADE SNAT can block localhost connection?
I observed a weird behaviour on linux:
First, I clean all routes and iptables rules:
ip route flush table main
ip route flush table default
ip route flush table local
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT…
0
votes
2 answers
use ppp for Internet for netns
Use of
ip r add 0.0.0.0 via 172.20.10.10 src 10.0.100.10
GOT:
Error: Invalid prefsrc address
How to fix this?
Goal:
netns (host) => ppp0 => Internet via ppp0
My config:
/home# ip netns
ns2
ns1 (id: 0) <<<<<<<<<<<<<<<<<<
/home# ip netns exec ns1…

Master
- 1
- 2
0
votes
0 answers
Second interface not redirecting traffic
I am trying to setup a redirector to nat https traffic destined to (eth0)172.31.14.66 -> 1.1.1.1 and http traffic destined to (eth1)172.31.14.48 -> 2.2.2.2.
Here are my iptables rules:
iptables -i eth0 -I INPUT -p tcp -m tcp --dport 443 -j…

rooter
- 1
- 1
0
votes
2 answers
OpenVPN server : connexion OK but no access to remote lan
I've got a running OpenVPN server with following configuration
VPN network is 10.7.0.0/16
LAN network is 192.168.100.0/24
Client is able to connect, but I can not reach LAN hosts located behind VPN connection (192.168.100.*).
no answer
push…

Damien C
- 162
- 1
- 2
- 13
0
votes
1 answer
Debian Static route does not work (/etc/network/interfaces)
This is the content of /etc/network/interfaces:
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug ens18
iface ens18 inet static
address 10.0.5.108
netmask 255.255.252.0
gateway 10.0.4.1
…

peterge
- 3
- 3
0
votes
1 answer
mikrotik route appear and removes every second automatically
Mikrotik OS v6.48.2 has routes
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADS 0.0.0.0/0 193.168.1.1 1 <<<<<<<<<<<<<<<<<<<<<
1 S ;;; dyno
0.0.0.0/0 …

Master
- 1
- 2
0
votes
1 answer
Routing loop issue
We have a application having certain ip, let say myapplication.com
The traceroute to the application give result something like below.
The Ip and the time is just for illustration purpose.
If you see 10.10.28.100, it appears 4 times and seems to be…

HITENC
- 5
- 2
0
votes
1 answer
redirecting udp traffic from one network interface to another on the same host
My host has two network interfaces:
eth0:172.16.125.5
eth1:172.165.8.55
I want to redirect all UDP traffic to eth1 port 1234 to eth0 port 1234, ie:
172.165.8.55:1234 -> 172.16.125.5:1234
After reading reading related posts here, I enable…

BillA
- 1
- 2
0
votes
1 answer
Can (and do) I use iptables to expose a host directly online (not using NAT)?
I'm using a DSL-5300 VDSL modem/router which is set up with NAT for my house, and works great. Its web interface hasn't been written to support a mix of NAT and no-NAT traffic.
I've been assigned 8 public IP addresses. I've set up a linux box on…

cnd
- 169
- 4
0
votes
1 answer
Windows Route Add when Gateway is text instead of IP
I have the following in my route table if I connect to my Company VPN.
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface …

Gerrie Pretorius
- 103
- 4