<div dir="ltr">Sure Richard<div><br></div><div>Heres the link <a href="http://www.hardkernel.com/main/main.php" target="_blank">http://www.hardkernel.com/main/main.php</a></div><div><br></div><div>Thanks for your help too :)</div>
<div><br>
</div><div>Cheers</div><div><br></div><div>Andrew</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 20 December 2013 20:21, Richard Mortimer <span dir="ltr"><<a href="mailto:richm@oldelvet.org.uk" target="_blank">richm@oldelvet.org.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 20/12/2013 19:26, Andrew Glass wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Good evening peeps :)<br>
<br>
Merry Christmas! :D<br>
<br>
Ok so Ive just this moment decided to do myself a little project<br>
involving my little odroid-U2 quad I bought (cracking little bit of kit<br>
basically a samsung galaxy s3 quad with 2 gb ram on a board smaller than<br>
a raspberry pi with eth, 2 x usb 2 ports, 3.5mm audi, mini hdmi, eMMC<br>
and microsd slots)<br>
</blockquote></div>
Sounds nice. Do you have a link? (I'm too lazy to type it into Google!)<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
What I basically want is a permanent vpn connection for all my outgoing<br>
traffic routing via the odroid which will run openvpn to my openvpn<br>
server in Amsterdam (digitalocean droplet) then depending on the website<br>
I want, I would like it to split off in one of two directions.<br>
</blockquote></div>
Ok.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
If the address is netflix (so much more choice on the USA netflix<br>
compared to UK) I want it to route from Amsterdam to my openvpn server<br>
in New York so I can watch USA Netflix.  If its any other type of<br>
traffic  its to jump off the vpn at amsterdam and go surfing on the<br>
normal internet.  Does that make sense?<br>
</blockquote></div>
Yes.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I have a basic range of netflix addresses which are also served via<br>
Amazon EC2.<br>
</blockquote></div>
Good.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Im just trying to figure out the routing commands to add to my server/<br>
openvpn configuration in Amsterdam to allow this to happen.<br>
</blockquote></div>
Ok. So assuming that you have a suitable (presumably openvpn) link between Amsterdam and New York. Then you should just be able to tell the box to route the netflix range of addresses via New York.<br>
<br>
Note that you will need to encapsulate the packets in some protocol between Ams and NY because if you try to use real addresses the internet will just grab the packets and send them in the wrong direction.<br>
<br>
So in (old money) route command syntax that would be<br>
<br>
route add -net aa.bb.cc.dd/nn gw ny.open.vpn.ip<br>
<br>
you might need to add a   'dev xxxx' to the end of that to force it to use the local end of your Amsterdam-NewYork openvpn link network interface (xxxx)<br>
<br>
In new money (ip route) command that is something like<br>
<br>
ip route add to unicast aa.bb.cc.dd/nn via ny.open.vpn.ip dev xxxx<br>
<br>
but beware I'm more used to the old style commands for simple things so the latter might need tweaking.<br>
<br>
Now there might need to be some magic to ensure that packets get routed back from your NY VPN via Amsterdam.<br>
<br>
Another option to consider would be to just do the routing on your odroid and connect to both VPNs from there.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
This is the first time I have done anything this complicated.  Can it be<br>
done?  Examples of any useful routing commands to achieve this would be<br>
most gratefully received.<br>
</blockquote></div>
Have fun.<br>
<br>
My main suggestion would be to get things working in steps. OpenVPN from odroid to Amsterdam, then OpenVPN Ams to NY. Then ping NY (via openvpn) from odroid. Then finally start thinking about getting to Netflix. I'm sure there will be a few layers of NAT translation in that lot so plenty of scope for packets to go missing!<br>

<br>
Regards<br>
<br>
Richard<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
Hope you are all well :)<br>
<br>
Cheers<br>
<br>
Andy<br>
<br>
<br>
<br>
<br></div>
______________________________<u></u>_________________<br>
Durham mailing list   -   <a href="mailto:Durham@mailman.lug.org.uk" target="_blank">Durham@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/durham" target="_blank">https://mailman.lug.org.uk/<u></u>mailman/listinfo/durham</a><br>
<a href="http://www.nelug.org.uk/" target="_blank">http://www.nelug.org.uk/</a><br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Durham mailing list   -   <a href="mailto:Durham@mailman.lug.org.uk" target="_blank">Durham@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/durham" target="_blank">https://mailman.lug.org.uk/<u></u>mailman/listinfo/durham</a><br>
<a href="http://www.nelug.org.uk/" target="_blank">http://www.nelug.org.uk/</a><br>
</blockquote></div><br></div>