Command line tool for manipulating and listing the routing table.

learn more… | top users | synonyms

18
votes
5answers
12k views

How to set up a VPN Incoming connection with Windows to tunnel Internet traffic?

I want to set up a VPN on a remote server to route all my Internet traffic for privacy reasons. I can set up an incoming connection and connect to it successfully. The problem is, I can just see the ...
17
votes
5answers
5k views

Use IPtables or null route for blacklisting about 1 million IP addresses?

I've come across a situation where a client needs to blacklist a set of just under 1 million individual IP addresses (no subnets), and network performance is a concern. While I would conjecture that ...
8
votes
2answers
15k views

Where route to 169.254.0.0 comes from?

Running CentOS 5.4 Why do I have route to 169.254.0.0 although it does not appear in Network > Ethernet Device > Route configuration dialog? Destination Gateway Genmask Flags ...
7
votes
3answers
29k views

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 ...
6
votes
2answers
4k views

How many custom route tables can I have on Linux?

I've been working with custom route tables on Linux, and I'm a bit confused by some of the documentation and behavior of the "ip route" command. It seems that the only valid values should be 0-255 ...
5
votes
3answers
7k views

Pick the default network interface

I have a server with 2 interfaces. eth0 is 100 times faster than eth1. Though for some reason, every reboot, the default interface is picked at random. To make things more annoying, they both use the ...
5
votes
1answer
468 views

CCNA Case Study - Static Routes

I'm currently doing the CCNA (Cisco Certified Network Associate) course at school and am a bit stuck on my case study, so I was wondering if anyone could help. I have the following topology: I ...
5
votes
0answers
308 views

Freebsd change default Internet channel route

I have two Internet channel and Gateway on freebsd. When I switch channel with the command route change default chan2, the command netstat -nr shows changed default route. But traceroute shows that ...
4
votes
1answer
672 views

Listing the routing table takes long time to complete

When I print routes defined on my computer using route, it takes about 5 to 20 seconds to complete. Why does it take so much time? With VPN enabled: $ time sudo route Kernel IP routing table (...) ...
4
votes
1answer
680 views

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 ...
4
votes
3answers
797 views

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

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 ...
4
votes
4answers
3k views

How to duplicate TCP traffic to one or multiple remote servers for benchmarking purposes?

Infrastructure: Servers in Datacenter, OS - Debian Squeeze, Webserver - Apache 2.2.16 Situation: The live server is in use by our cusotmers every day, which makes it impossible to test ...
4
votes
4answers
5k views

How can I force all internet traffic over a PPTP VPN but still allow local lan access?

I have a server running Linux Mint 12 that I want to keep connected to a PPTP VPN all the time. The VPN server is pretty reliable, but it drops on occasion so I just want to make it so all internet ...
4
votes
2answers
302 views

Sharing a VPN connection among several servers with certain IP ranges

I have an OpenL2TP VPN instance running to a company providing me with connections to cellphone modems in the 10.4.2.0/24 private IP range. This server is on the same private network as three other ...
4
votes
4answers
2k views

How to delete a route on a specific interface?

When I start a VPN connection, a new default route is added on the utun0 interface: Destination Gateway Flags Refs Use Netif Expire default utun0 ...
3
votes
3answers
18k views

howto only tunnel specific hosts route through openvpn client on tomato [closed]

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 ...
3
votes
4answers
4k views

how can 192.168.2.10 talk to 172.18.156.65?

from what i understand, all computers need to be in the same subnet /24 so how would i get a computer to be able to connect to another computer that is set as 172 ? one computer is behind a firewall, ...
3
votes
1answer
179 views

ip command vs route command, what's the difference?

I see both ip and route commands used for configuring the kernel routing tables. What's the difference? It seems to me that the ip command is preferred more. Is it so, and why?
3
votes
1answer
88 views

Routing selection: specificity vs metric

I understand that Linux chooses the most specific route to the destination when it does routing selection. But what about a route's metric? Does it have a higher priority than route's specificity? A ...
3
votes
1answer
3k views

Why Openvpn use network 0.0.0.0 netmask 128.0.0.0 as default route?

If you use "redirect-gateway def1" option in openvpn config file,the server will add a default gateway on your route table, what i want to konw is Why openvpn did not use network 0.0.0.0 netmask ...
3
votes
3answers
2k views

CentOS Wrong Outgoing IP Address

I have a Centos 5 box with a sub interface: ifconfig eth0 10.1.1.1 255.255.255.255 ifconfig eth0:1 10.1.1.2 255.255.255.255 The netmasks need to be 32bit in the environment this server is in. So ...
3
votes
1answer
1k views

Setting up linux routing

The system I'm trying to set up has an IP address 172.31.2.1. Its default gateway is 172.31.254.1. This works fine, and I can reach anything the gateway allows me to go to (172.31.0.0/16 + ...
3
votes
2answers
782 views

Linux adds the wrong default route

For some reason my Centos 5.9 Linux 2.6.18 x86_64 wants me to have two default routes. Whenever I reboot the server, my routing table looks like this: [root@server1 ~]# route -n Kernel IP routing ...
3
votes
2answers
3k views

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 ...
3
votes
2answers
661 views

Help analyzing traceroute

my name is Abdulla and I'm from Kuwait. Sorry for my question as I know its not technically challenging. I'm facing some problems with my internet connection. My company has a DSL 2mb connection. My ...
3
votes
2answers
157 views

How to add vpn subnet to a private local subnet (both in different subnet address)?

I set up a xl2tpd vpn server on a router, and assigned the ip range from 192.168.191.2 to 192.168.191.244, and there's local network behind the router's lan side with a 192.168.1.0/24 ip range, so I ...
3
votes
1answer
721 views

Wget works, Ping doesn't

There are some anomalies on a Virtuozzo virtualized Debian 4 (I know, I'm gonna upgrade this one asap, but there dependences). We run some Websites on this one. And a view Days ago exmi4 wasnt able to ...
3
votes
3answers
590 views

Force transmission of TCP/IP data from one NIC to another on same PC

We are preparing a product for EMC testing. The product runs Windows Embedded Standard 2009 (compare it with Windows XP) and has 2 NICs, say NIC1 and NIC2. For the emission test, we need to send data ...
3
votes
2answers
897 views

how to add iptables rules for two NICs on CentOS(act as a gateway)

I have a machine C with two NICs, namely eth0 and eth1, with CentOS 4.9 installed on it. Also I have a machine A connecting to C through eth0 and a machine B connecting to C through eth1. Now I want ...
3
votes
2answers
251 views

Prefix Delegation and route creation

I'm using the ISC dhcp server version 4.1 for DHCPv6 prefix delegation on a network. When the server allocates a prefix to a client, the server does not create a route for that prefix to the client ...
3
votes
1answer
2k views

OPENVPN route all traffic - Synology

I have a synology NAS that is my OPENVPN server. I am always on the road and I want to route all of my traffic through my house. Here is my config and my log. config file dev tun tls-client ...
3
votes
1answer
491 views

NAT with multiple gateways

I have the following setup: My Lan is 10.56.8.0/23 I have a gateway with internet access(INETIP-A) and the LAN IP 10.56.9.1 I have another gateway with internet access(INETIP-B) and the LAN IP ...
3
votes
1answer
885 views

Set source address to use tun device does not work (Debian Squeeze)

There have been similar questions on StackExchange but none of the answers helped me, so I'll try a question of my own. I have a VPN connection via OpenVPN. By default, all traffic is redirected ...
3
votes
2answers
250 views

Is it just me or is my node down?

I find the www.doj.me very useful. I am looking for something like that but specifically for BGP Nodes. I want to write a script that tells the users if our Internet backbone is down, if if yes which ...
3
votes
3answers
4k views

Getting openvpn client to forward all traffic through server

I am trying to set up an openvpn server and client, with all client traffic being routed through the server. I am currently able to access the server through the client, but when I enable 'push ...
3
votes
0answers
2k views

How to tunnel all Internet traffic via SoftEther?

My intention is to route all Internet traffic via a remote machine behind multiple NATs. The ISP's NAT servers are not under my control. I do control my own NAT server, which is a local router. Both ...
3
votes
0answers
470 views

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 ...
2
votes
2answers
11k views

How can I configure openvpn server without push default gateway?

I need configure my openvpn server to provide some LAN resources, but I don't want route all traffic for my clients. Here is my sample network description: My LAN is 192.168.1.0/24. Openvpn network ...
2
votes
2answers
611 views

Iptables string

I have an iptables rule like this: iptables -t nat -I PREROUTING -p tcp --dport 80 -s 192.168.1.2 -j DNAT --to-destination 192.168.1.1:80 it works perfectly.. but I want to redirect only for one ...
2
votes
2answers
6k views

What does this linux command mean “route add -net 224.0.0.0 netmask 240.0.0.0 eth0”

Could somebody explain what exactly this command means in relation to transmitting and receiving multicast traffic route add -net 224.0.0.0 netmask 240.0.0.0 eth0
2
votes
1answer
4k views

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 ...
2
votes
1answer
372 views

Windows 7 routing traffic through the gateway for local addresses

Windows is adding a route for a local address (10.0.0.90 - my fileserver) with a gateway of (10.0.0.138 - this is my gateway), the gateway only has a 100Mbs link so all of my fileserver bound traffic ...
2
votes
3answers
161 views

What does this route map modification mean?

I've inherited administration duties for a firewall/gateway server, and I'm trying to understand what a particular static route setup in rc.local means: ... route add 123.123.123.123/30 10.10.3.14 ...
2
votes
3answers
10k views

OpenVPN working - but how to route all traffic down it?

I've setup a static one-to-one OpenVPN connection fine. However I can't seem to get the client to route all traffic via the VPN device. Here's my configs: Client config: remote 89.21.xx.xx dev tun ...
2
votes
1answer
139 views

How to View the IP routing table

How can I see ip routes I've added with ip route add default via x.x.x.55 table test1 for example I added 199 test1 and 198 test2 and 197 test3 to /etc/iproute2/rt_tables then I run: ip route add ...
2
votes
3answers
633 views

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 ...
2
votes
2answers
809 views

What is the difference between “route” and “ip route”?

I tried to understand the networking tools on linux. I am confused now about what should I use to manipulate the static routing: "route" or "ip route"?: route - show / manipulate the IP routing table ...
2
votes
1answer
4k views

How to set the preferred network interface in linux

I have my network set up like this. http://docs.google.com/Doc?docid=0AZ1YxuLE4djaZGhqN2s1NmRfMjhjNjc0Ym1meg&hl=en In words: I have a machine (Calcium, running Arch Linux) that has two network ...
2
votes
1answer
239 views

AWS VPC internet gateway and AWS services

Am I doing something wrong or is the AWS VPC ec2 instances not able to reach any of the AWS managed services (s3/sns/sqs) without a public route to the Internet Gateway in the routetable? I was told ...
2
votes
1answer
1k views

IP Bridge for KVM with multiple subnets

I have a machine set up running KVM and a bridge on eth0 with the ip address for the machine. The machine has an IP address in a range with no more ip adresses free. I am trying to make a second ...