Questions tagged [route]

Command line tool for manipulating and listing the routing table.

620 questions
3
votes
2 answers

How to setup router on desktop linux to provide access to vpn subnet to other local machines?

I have a desktop linux (Ubuntu based 12.10, laptop, 1 network card) from which I connect to work vpn via standard pptp, so I can access local network and work network from the machine. On the desktop I have Windows Server 2008 VirtualBox machine…
Juraj Misur
  • 133
  • 3
3
votes
1 answer

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?
Srikanth
  • 189
  • 1
  • 3
  • 8
3
votes
2 answers

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 want the vpn client access the router from its wan…
liunx
  • 147
  • 7
3
votes
1 answer

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 10.56.9.15 I have a PC used as default gateway for…
Savaj
  • 31
  • 2
3
votes
1 answer

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 routing table. I typed route -f to clear the…
James L.
  • 241
  • 3
  • 7
3
votes
3 answers

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 from NIC1 to NIC2. If I assign both NICs an IP…
Housy
  • 143
  • 8
3
votes
2 answers

Linux as a gateway (no NAT)

I'm trying to configure a linux server as a gateway/router, but I can't get it to work, and all information I've managed to find is NAT-related. I have a public IP block for the gateway and devices behind it, so I want the gateway to simply route…
WhyNotHugo
  • 247
  • 3
  • 12
3
votes
2 answers

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 backbone routes we are using. If I know the AS…
Craig
  • 43
  • 2
3
votes
1 answer

Routing OpenVPN tunnel in via public interface and out via NAT'd interface (to internet)

I hope someone can help... I want to Configure OpenVPN-AS (i.e. OpenVPN Access Server, NOT OpenVPN) to work on my VPS. The VPS is a KVM running Ubunto 10.04 LTS, with a very vanilla configuration. OpenVPN-AS is likewise installed with only minimal…
zxdavb
  • 31
  • 1
  • 2
3
votes
3 answers

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 in order to specify the default route, we let the…
Paul
  • 1,288
  • 13
  • 25
3
votes
2 answers

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 machine A to be in a subnet (e.g. 192.168.3.0/24)…
machinarium
  • 203
  • 1
  • 2
  • 6
3
votes
1 answer

Static route in conflict with a route

I have a route configured. 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.1 I'd like to add a static route to pass traffic destined for 192.168.1.51 via a load balancer's redundant virtual interface at 192.168.1.2. ip route add…
Athanasios
  • 355
  • 1
  • 2
  • 7
3
votes
2 answers

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 main problem is latency, in the morning its good…
Abdulla
  • 31
  • 1
3
votes
2 answers

Route specific HTTP requests through pfSense OpenVPN

to start, I have very little knowledge on routes, iptables, etc. That said, here's what I'm trying to accomplish and where I think I'm stumped: Problem: We have an external website which we recently firewalled so it only accepts traffic from our…
DennisQ
  • 61
  • 1
  • 4
3
votes
1 answer

What can cause 'Network is unreachable' when the link is up, the route is there, and the netmask is correct?

What could cause this? $ sudo ip route show 192.168.100.0/24 dev usb0 scope link …
Adam Bliss
  • 131
  • 5