linux - static route w/ next hop to VPN gets "Network is unreachable' -


ubuntu 14.04, linux kernel 3.13.0-77-generic

i have 3 servers a, b, , c. servers , b in same network (rackspace) , server c in network (aws). have vpn connection goes server b vpc server c located in. vpn connection works, can send traffic across server b server c , vice versa. have not been able figure out how route traffic server server c. believe solution add static route on server a, so:

$> route add -net 10.0.0.0 netmask 255.252.0.0 gw xxx.xxx.xxx.xxx 

where xxx.xxx.xxx.xxx private ip address of server b. however, output of command

siocaddrt: network unreachable 

i can ping , route traffic server b server a, assume unreachable network 1 across vpn tunnel.

#/ect/sysctl.conf on server b ----------------------------- net.ipv4.ip_forward=1 net.ipv4.conf.all.accept_redirects = 0 net.ipv4.conf.all.send_redirects = 1  net.ipv4.conf.eth0.arp_notify = 1 vm.swappiness = 0 net.ipv4.tcp_rmem = 4096 87380 33554432 net.ipv4.tcp_wmem = 4096 65536 33554432 net.core.rmem_max = 33554432 net.core.wmem_max = 33554432 net.ipv4.tcp_window_scaling = 1 net.ipv4.tcp_timestamps = 1 net.ipv4.tcp_sack = 1 net.ipv4.ip_forward = 1 net.ipv4.conf.all.accept_redirects = 0 net.ipv4.conf.all.send_redirects = 0 net.ipv4.conf.default.rp_filter = 0 net.ipv4.conf.default.accept_source_route = 0 net.ipv4.conf.default.send_redirects = 0 net.ipv4.icmp_ignore_bogus_error_responses = 1 

not sure if i'm using route command incorrectly, or if right way route traffic server through vpn server c.

i have tried specifying single host -- private ip of server c (instead of cidr of whole vpc) -- in route add command same output.

servers , b must in link local range. check addresses , masks. tray use ip route, like: ip route add 10.0.0.0/14 via xxx.xxx.xxx.xxx


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -