Questions tagged [route]

Command line tool for manipulating and listing the routing table.

620 questions
2
votes
1 answer

iptables prerouting to redirect source ip address on ethernet

I have 2 ip adresses on the Internet who redirect on the same machine. On this machine, one Debian runs on OpenVZ. I can set iptables rules to redirect all http request to the Debian. iptables prerouting -d ip_address_2 DNAT --to…
Kevin Campion
  • 437
  • 2
  • 7
  • 15
2
votes
1 answer

Cisco ASA 5505 site to site IPSEC VPN won't route from multiple LANs

I've set up a standard site to site VPN between 2 ASA 5505s (using the wizard in ASDM) and have the VPN working fine for traffic between Site A and Site B on the directly connected LANs. But this VPN is actually to be used for data originating on…
user41904
  • 21
  • 1
  • 1
  • 2
2
votes
1 answer

BSD route(8) MAN page bug

http://www.freebsd.org/cgi/man.cgi?query=route Route is a utility used to manually manipulate the network routing tables. It normally is not needed, as a system routing table management daemon such as routed(8), should tend to this …
Mark Henderson
  • 68,823
  • 31
  • 180
  • 259
2
votes
2 answers

netplan does not implement the route to gateway, in Ubuntu 22.04

sorry if this is trivial ... but I do not seem to be able to get netplan to set the proper route to the default gateway. I have to manually set it using 'sudo route add default gw [...]' to enable the server to reach the internet. This is my current…
CvM_curious
  • 21
  • 1
  • 2
2
votes
3 answers

OpenVPN client on Windows 7 - cannot add route from config script

I am connecting from my Windows 7 laptop to an openvpn server and I am unable to automatically add a route. In my script I have the line: route-up "route add 192.168.33.0 mask 255.255.255.0 10.0.33.1" but after the connection is set-up there is an…
twk
  • 171
  • 1
  • 1
  • 10
2
votes
1 answer

Ping host with dual IPs on 1 IP, echo returns from other IP

I'm running Fedora 33 on a host (i5 cpu, 8Gb RAM, SSD and hdd) which is set up as a router; it has 5 NICs. I've managed to get dual internet gateways and dual LANs working reasonably well using nftables. One gateway is DSL with pppoe, the other a…
Nibs Niven
  • 23
  • 4
2
votes
3 answers

How to retrieve the routing tables in JSON format (linux)?

The ip command is able to return some of its results in JSON format, but it seems to be unable to format the routing table(s). Here are some examples of what I mean. List of all addresses: ip --json address show [{ ... },{ "ifindex": 2, …
Alessio Periloso
  • 198
  • 2
  • 10
2
votes
1 answer

routing table with multiple same destination

I'm learning the "route" command for LPIC-1 exam. I cannot figure out how routing works based on the following example: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1…
mpalmier73
  • 23
  • 3
1
vote
0 answers

How to change Public Address of VPS with another IP Address

For a project, I need to make HTTP requests to an external service from a IP address geo-located on "NATION_2". Having an available VPS located in NATION_1, I proceeded to purchase a public IP address geo-located in the correct country. How can I…
Fede91
  • 11
  • 1
1
vote
1 answer

“ip route get” gives “No route to host” on linux centos 7.7

I have been investigating root cause of a hairy routing issue on a centos7 cluster... Behavior: TCP packets from Docker Container reach targets outside of the cluster, but response packets do not reach container that is waiting for that…
user554738
  • 21
  • 3
1
vote
1 answer

Forward from one Distribution Group to another DG inbox?

Our Research Department needs to have a group email (Distribution Group); the email will consist of Staff 1, Staff 2, and Staff 3. We would like the email to copy the old.dg@123.org, where the email goes into the “inbox” not a separate email. Please…
1
vote
1 answer

Use two different network interface simultaneously

I have a Ubuntu device connected to two different networks: enp3s0 (10.131.140.0/22), wired and connected to a local network (no access to internet) wlp4s0 (172.29.0.0/16), wireless and connected to internet. I would like every packets with…
iAmoric
  • 121
  • 1
  • 4
1
vote
0 answers

route l2tp server to openvpn client

i configured l2tp/ipsec server on ubuntu also i installed openvpn client on this server i need when l2tp client connect to this server traffic forward to openvpn and client get openvpn server ip address: ( for example if l2tp server public ip is…
1
vote
0 answers

Bridge 2 LAN networks via SLIP on RS232

I have a stupid problem (I hope) that is driving me crazy I've created a network, drawn below. -------------+ ROUTER 1 ROUTER 2 | +-----------------+ +------------------+ | …
Pirox
  • 21
  • 1
  • 3
1
vote
0 answers

Share a VPN connection via a node in a LAN

I would like to share a VPN connection via a node in the same LAN. The scheme below shows my network system. LAN A: 10.44.247.0/24 |-* Router Aa: 10.44.247.1, ext XXX.XXX.XXX.XXX |-* Node Ab: 10.44.247.2 (en0), ppp 192.168.100.36 (ppp0) -| VPN…