Command line tool for manipulating and listing the routing table.

learn more… | top users | synonyms

1
vote
3answers
176 views

How to configure second non-consecutive subnet on same interface?

I have some servers on the public network of my isp, say 192.168.2.0/24. Now my provider gives me additional ip addresses, but unfortunately not in a subsequent range of my first network, say ...
1
vote
2answers
659 views

no route to default gateway

I just lost about all my hair on this one: I got an ubuntu 12.04 machine on ip address 192.168.0.100, gateway 192.168.0.1 A router on 192.168.0.1, running a forwarding dns ping 192.168.0.1 - or ...
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 ...
0
votes
1answer
2k views

openvpn: after changing to server mode, client does not create TUN device

i had a previously working configuration with the config files used in a previous question However, i've changed this now to the following configuration using server mode, everything on the logs seem ...
1
vote
2answers
3k views

Stop local emails being sent to relay host with postfix

I've recently signed up to SMTP2GO (smtpcorp). I've setup postfix on one of EC2 servers and have pointed it to my smtp2go account: relayhost = [smtpcorp.com]:2525 Now all my mail is being routed ...
0
votes
1answer
2k views

.bat file to automatically connect to VPN and add a route in Windows 7

I can establish VPN connection using RASDIAL command. But how do I add a route to 192.168.254.0/24 automatically after VPN is connected? Each time after VPN connection is established, Windows could ...
1
vote
1answer
288 views

Iptables -gw parameter

I want to copy tcp traffic. i want to use these commands " iptables -A PREROUTING -t mangle -p tcp --dport 7 -j ROUTE --gw 1.2.3.4 --tee iptables -A POSTROUTING -t mangle -p tcp --sport 7 -j ROUTE ...
1
vote
1answer
262 views

IPTables Reroute SSH based on Connection string?

We are using a cloud server (Debian Squeeze) where public ports on a public IP route traffic to internal servers. We are looking for a way to use IPTables and ssh where based on some part of the ssh ...
1
vote
2answers
328 views

how're routing tables populated?

i've been reading "tcp/ip illustrated" and i started reading about ip forwarding. all about how you can receive a datagram and work out where to send it next based on the desination ip and your ...
1
vote
0answers
100 views

Routes with PPTP

I have a server A that is running OpenVPN server, and a server B connected to it. Then on B I have eth0, the physical interface, and tap0, created by OpenVPN. I want some ip to go with eth0 while ...
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 ...
-4
votes
2answers
1k views

Manually add route to VPN

Hello server enthusiasts, I have a VPN (pptpd running on Ubuntu 10.04) that I am trying to connect to with a client (Win7). I can successfully connect to the VPN. Once connected to the VPN, I can ...
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 ...
2
votes
3answers
2k views

Route all wlan0 traffic over tun0

I'm looking for a way to route all wlan0 traffic (tcp and udp) over tun0 (openvpn). However, all other traffic originating from the device itself should not be routed through tun0. I'm guessing this ...
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 ...
1
vote
0answers
76 views

WAN Woes Between Satellite Offices

Having a baffling time trying to troubleshoot an issue between 3 sites on a WAN set up via site-to-site VPN. The sites are: NY: 10.30.1.0 (HQ) OH: 10.30.6.0 CT: 10.30.7.0 When I first ...
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 ...
1
vote
2answers
4k views

static route: why does a destination address needs a subnetmask [closed]

When I define a static route, why I have to define a subnet mask for the destination network? What would happen, when I have more than one gateway an the subnet masks of all destination networks are ...
1
vote
1answer
276 views

Ubuntu 12.04 as router with 2 nic

I have been trying this setup for weeks and still can not make this to work... ubuntu 12.04 64 bit with 2 nic nic1: eth0:192.168.2.33 -static ip with internet access (connected to modem) nic2: ...
3
votes
1answer
722 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 ...
0
votes
2answers
3k views

choose the outgoing interface for a default route

I have a FreeBSD 8.0 virtual box with two ethernet interfaces, em0 and em1. em0 is 192.168.1.99 and em1 is 192.168.1.100. Both are "Attached to: Bridged Adapter". When both are up, if I say # route ...
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 ...
2
votes
2answers
596 views

Routing through subnets, static routes

Topology: C1 --192.168.111.0/24 -- R1 -- 172.30.0.0/24 -- Switch -- C6 |-- R2 -- 172.30.10.0/23 -- C5 I am a newbie in networking and I have a ...
1
vote
1answer
378 views

Static route works on one computer, not the other

I have been struggling with this for a couple days now, maybe I just need some people with a fresh perspective to figure out what the issue is. Basically I have a bunch of computers that are being ...
0
votes
1answer
279 views

Weird routing issue

I am working on getting networking working correctly on a cluster of 14 virtual servers at a customer site. 11 of them work fine for routing and 3 don't work correctly for their administrative ...
2
votes
1answer
1k views

Recover from running “route -f”

I was trying to capture localhost traffic with Ethereal, which doesn't work without re-routing localhost traffic to your router gateway. I didn't get the route command quite right, and messed up my ...
1
vote
4answers
467 views

Is there a tool like 'route' in Linux to configure the forwarding entry (dst mac address --> interface)

I have a problem in configuring the forwarding table in Linux. We call IP tables for routing table in layer 3, MAC tables for forwarding table in layer 2. Now I want to add an entry in forwarding ...
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 ...
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 ...
0
votes
1answer
87 views

Routing via Linux

I have an individual network with a single machine having IP Address 10.10.10.4. Another machine (Gateway Machine) has two NICs: eth0 and eth1. eth1 (10.10.10.10) is connected to the internal network ...
0
votes
1answer
50 views

Does the following route change include undesired machine?

I want to utilize both the wired lan from the company and the wireless from my phone( achieved by PdaNet ). I need to seperate the connections in the route table because the wireless connection have ...
1
vote
1answer
339 views

Sonicwall firewalls and redundancy of route based vpns

I am attempting to configure a route based vpn on a Sonicwall TZ device. The datacenter has two public IPs on different subnets (A and B). The remote office has 1 public ip (C). When I configure ...
0
votes
1answer
31 views

How to serve clients when provider's channel is down?

GPRS-devices can connect to server only by ip. They are permanently connected to the server. How to prevent Denial of Service, when internet-provider's channel is down? Is there any standart ...
0
votes
1answer
219 views

Route-map changing from permit to deny retains the match tag values

I have a route-map configured on my cisco router with name say s1 and sequence number 10(default) which contains a match tag 10. If i again try to configure the same route-map name with same sequence ...
0
votes
1answer
1k views

route traffic to different interface, from port

I got three gateways: 192.168.10.1 on eth0 (default), 192.168.100.1 on eth0:0 192.168.101.1 on eth0:1 I'm trying to make my computer decide on which to use, from the request port. (request comes ...
1
vote
2answers
705 views

Ubuntu server acting as a two interface router

I'm trying to set up a squid proxy server using Ubuntu server 12.04 I'm very new to Ubuntu but I have managed to get some simple things done. I bought a second PCI interface and have managed to ...
0
votes
1answer
164 views

Route local traffic to ip1:port to extern ip2:port

I have a service setup that redirects after a succesfull login (Couchbase), but the IP it transfers to is an local one, where the client that is connecting to cannot reach. How can I setup iptables ...
0
votes
2answers
3k views

How to route UDP traffic from one public IP (linux) to another public IP(Windows)

I want to prevent direct access of my Windows Machine and want to expose some programs running on it via my Linux Machine (which again is accessible by a Public IP). Is there a way where-in I can ...
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 ...
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 ...
0
votes
1answer
904 views

Windows route add error

Windows Server 2003 Standard Edition C:\Documents and Settings\Administrator>route print IPv4 Route Table Interface List 0x1 ........................... MS TCP Loopback interface 0x10003 ...00 14 ...
1
vote
2answers
338 views

Can't route specific subnet thru VPN in ubuntu

I'm having issues routing traffic thru VPN. Here's my setup I have 3 hosts, let's call them A, B and Z B and Z have a VPN connection in the 10.10.10.x SUBNET A and B have a direct connection in the ...
0
votes
2answers
381 views

connecting to a network using route command

I have a computer with an external IP(192.168.223.220) and also an internal address (10.1.1.20) in order to connect to some servers that don't have external addresses only 10.1.1.xx . in order to ...
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 ...
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 (...) ...
0
votes
2answers
61 views

4 nodes to the internet, everything works except 3rd node

I have 4 nodes to the internet: Internet <--> Node A <--> Node B <--> Node C <--> Node D Node A: main gateway, manage internet Node B: gateway/tunnel to node C Node C: ...
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 ...
2
votes
2answers
6k views

Connecting two subnets using an Ubuntu 10.04 LTS as a router

This has been bothering me for a couple of days, I have two subnets: 192.168.1.0/24 : This is the subnet used by my ISP/router. The gateway to the WAN is 192.168.1.1 192.168.2.0/24 : This is a ...
1
vote
0answers
343 views

Route VPN gateway traffic via tun0

On my Linux box, I got a tun0 dev by ipip like: tun0 Link encap:IPIP Tunnel HWaddr inet addr:10.10.10.2 P-t-P:10.10.10.1 Mask:255.255.255.255 and I running a ipsec vpn ...
1
vote
2answers
95 views

LAN to LAN VPN connectivity issues

I have a route-based VPN with limited functionality. My computers on site-A can ping one workstation on site-B, it happens to be the only workstation that is not part of the domain that has been ...