View Full Version : [ubuntu] Tunnel Traffic
July 1st, 2009, 03:59 PM
I have a Ubuntu Box sitting out on the internet and I want to tunnel all my traffic, all ports, coming in to a computer on my local network computer (Win2k8) and the same going the opposite direction.
Here's the setup:
ETH0: 10.10.10.79 (External)
What would be the best way to accomplish this? SSH, VPN, IPTable Port forwarding? The internal computer runs some web and mail services that I want to be able to access from the External's IP. There is no router or anything infront of my ubuntu box it's wide open.
Thanks in advance.
July 1st, 2009, 05:27 PM
Maybe you could take a look at opevpn daemon on the server and setup an open VPN client on your other side.
I have not done this myself.
Openvpn is available if you go to synaptic, and configuring it can be done using the gui client and gui server.
The openvpn website has a documentation HERE (http://openvpn.net/index.php/open-source/documentation.html)
July 1st, 2009, 10:30 PM
It sounds like you want your Ubuntu box to be an internet gateway/router for your internal network (or, at least for one of the machines on your internal network). The most straightforward way to do this would be to configure port-forwarding, NAT, and filtering rules with iptables. You can find documentation about how to do everything you need to do here (http://www.netfilter.org/).
July 3rd, 2009, 05:33 AM
Definitely check out OpenVPN. It will give you full access from your remote client to your internal LAN (ie the internal host as well as any others). Everything will also be encrypted over the connection keeping your interal LAN more secure. You will only need to have a single port open on your external host.
I have just been setting it up myself and have just (5mins ago) completed a guide to setting up on Jaunty.
I have not tested this setup with a windows client but cannot see any major problems by using one.
July 3rd, 2009, 05:59 PM
are oyu trying to share an internet connection?
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.