| Linode Forum https://forum.linode.com/ |
|
| Private network additional routing https://forum.linode.com/viewtopic.php?f=19&t=12142 |
Page 1 of 1 |
| Author: | diego [ Wed Aug 12, 2015 1:22 pm ] |
| Post subject: | Private network additional routing |
Hi all, I'm trying to setup a VPN + local network (that stands behind the VPN) using two Linode machines in the same datacenter. I've been able to setup VPN using OpenVPN, without major issues. Now I'm trying to setup routing, but I'm seemingly stuck at what seems to be a simple routing problem. This is my setup: Code: Machine A: I'm trying to ping 10.8.0.1 from Machine B. Of course I'm able to ping 192.168.145.3 from machine B: Code: $ ping -c 2 192.168.145.3 But if I add the following routing rule: Code: route add -net 10.8.0.0 netmask 255.255.255.0 gw 192.168.145.3 dev eth0:1 then I'm not able to reach 10.8.0.1 anyhow. Machine B: Code: # route Code: $ ping -c 2 10.8.0.1 Code: # tcpdump -n -i eth0:1 net 192.168.128.0/17 Machine A: Code: # tcpdump -n -i eth0 net 10.8.0.0/24 So the packet is sent from machine B, but is never received at machine A. This same approach works for me and is tested on other machines with same or different Linux distros; might there be some filtering in Linode infrastructure that I'm not considering? Thanks for any help you might give. Diego EDIT: both machines are Ubuntu 14.04 |
|
| Author: | dwfreed [ Wed Aug 12, 2015 1:37 pm ] |
| Post subject: | Re: Private network additional routing |
There are filtering rules on the hosts that only allow Linodes to see traffic that is destined for them, and send traffic using IP addresses assigned to them. The host your machine A is on is dropping the traffic destined for 10.8.0.1, because it's not an IP address assigned to your Linode. You would need to include Machine B in your VPN, or use some other sort of tunnel (GRE, ipip, etc.) in order for this to work. |
|
| Author: | diego [ Thu Aug 13, 2015 3:41 am ] |
| Post subject: | Re: Private network additional routing |
dwfreed wrote: There are filtering rules on the hosts that only allow Linodes to see traffic that is destined for them, and send traffic using IP addresses assigned to them. The host your machine A is on is dropping the traffic destined for 10.8.0.1, because it's not an IP address assigned to your Linode. You would need to include Machine B in your VPN, or use some other sort of tunnel (GRE, ipip, etc.) in order for this to work. Hi dwfreed, thank you very much for your kind reply. Would a bridged VPN rather than a routed VPN work in your opinion, as it would operate at layer 2 rather than layer 3? https://community.openvpn.net/openvpn/w ... AndRouting Thanks, Diego |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|