Questions tagged [route]

Command line tool for manipulating and listing the routing table.

620 questions
7
votes
1 answer

forcing network traffic to route via a specific, non-default interface

I've got a bunch of Linux servers with multiple(3) NICs and associated network interfaces. I'm tripping over a bizarre routing problem, where traffic that should use the default route is not, and failing to get routed as a result. Here's what my…
netllama
  • 193
  • 1
  • 1
  • 7
7
votes
4 answers

Why ip route add doesn't work, but ip route add with less details and then change works?

I have a problem with ip route add. Surprisingly, I can add the route then change it, but I cannot directly add it: # ip route add 192.168.0.0/16 via 192.168.255.254 src 192.168.1.101 RTNETLINK answers: No such process but: # ip route add…
7
votes
2 answers

Linux ip route matching the source ip

I would like to know if it's possible to tell a Linux kernel to route all packets destinated to X via interface/ip Y but only in case the source IP address would be a specific one. Any idea if this is possible? Thanks and regards,
7
votes
4 answers

Static route toward a DNS Address, it is possible?

I need to add a static route on a windows server toward a web server with a service; I need to add a static route with this command on a Windows command prompt: ROUTE ADD -p IPADREESS GATEWAYIP Is there a way to do a static route toward a DNS…
aleroot
  • 3,180
  • 6
  • 29
  • 37
6
votes
3 answers

Multiples ip address on interface. I want to specify one of them for output

I ran curl on curlmyip.com, and I got the wrong output ip address. My systemd service file is: [Unit] Description=Wired Networking Wants=network.target dibbler-client.service Before=network.target…
Cubox
  • 118
  • 1
  • 2
  • 12
6
votes
2 answers

IPv6 default gateway route disappear after reboot

I'm using Debian Wheezy on a dedicated server which uses IPv4 and IPv6 at the same time. ifconfig eth0 eth0 Link encap:Ethernet HWaddr 11:11:11:11:11:11 inet adr:90.0.0.1 Bcast:90.0.0.255 Masque:255.255.255.0 adr inet6:…
Fox
  • 992
  • 2
  • 14
  • 23
6
votes
3 answers

In Linux, does using route to blackhole an IP result in better performance than dropping in iptables?

During a DDOS attack, if we are finding IPs we want to block will we see better performance using a null route as opposed to iptables? Null routing we would do something like: ip route add blackhole In iptables: /sbin/iptables -A…
scott
  • 123
  • 2
  • 7
6
votes
3 answers

howto only tunnel specific hosts route through openvpn client on tomato

I am relatively newbie in networking world although I did coding and know some sysadmin background for a long time. and here I'm only one step from my destination. The whole picture is : at home I use one LinkSys E3000 as the gateway(don't know yet…
kcome
  • 171
  • 1
  • 1
  • 4
6
votes
1 answer

How to forward connection from one interface to another under linux

I have linux box which has two network interface, eth0, eth1. from eth1 I can access an internal website, say under port 8080. from outside the box, I can't access that network. my question is, is there a way I set up something so from outside the…
Daniel
5
votes
1 answer

Ubuntu, two NICs but only one with internet connection

I am having issue with my Ubuntu because I am unable to use wget or access any website with my current setup. I have two NICs, enp2s0 and enp2s1. enp2s0 is connected to the internet but connected to a NAT router (IP Address: 192.168.1.2) While for…
weyhei
  • 155
  • 1
  • 1
  • 8
5
votes
0 answers

How to route server_A's internet traffic through server_B using a GRE Tunnel?

I have two Linux servers. I want to use a GRE tunnel to route all internet traffic from ClientBox through a tunnel to GatewayBox, so that, to the rest of the internet, my ClientBox appears to be GatewayBox, and so that I can use GatewayBox's…
socksilly
  • 51
  • 1
5
votes
6 answers

How to route based on domain name?

I can route by IP range by the route command. But is there any domain based route solution?
Cheng
  • 741
  • 2
  • 9
  • 16
5
votes
2 answers

"No route to host" until "ping" or "route"

I have two computers in one WiFi network: A - client B - server Sometimes (once in ten times) after B reboot I am unable to ssh from A to B: $ ssh 192.168.201.128 ssh: connect to host 192.168.201.128 port 22: No route to host When I try to ping…
user2449761
  • 263
  • 1
  • 3
  • 8
5
votes
1 answer

Default route is missing

I upgraded my server from Ubuntu 8.10 to 9.04 and now my default route is missing. So every time I boot I have to manually add it back with the command: sudo route add default gw 192.168.10.1 How do I make that permanent? Thanks.
paul
  • 175
  • 2
  • 7
5
votes
3 answers

How do VPN servers/clients avoid routing their own remote connection packets through themself?

I am trying to conceptualise how networking works under the hood for linux VPNs which use TUN interfaces. My current best guess is as follows (please correct me): Connection established to remote client/server. TUN interface created and brought…
1 2
3
41 42