Re: Want to setup either tunnel or vpn server on my machine
Originally Posted by
jasonto
I want to utilize my ubuntu machine to route my traffic through my home IP when I'm away from home. I've looked into this and it seems I can either just set up a tunnel or a VPN (pptp probably).
Question 1:
What is your opinion on tunnel vs a full VPN?
If I setup a VPN I would want to restrict access to only routing traffic through the machine. I would not want the user to have any kind of permissions to my internal network nor even the ubuntu machine (aside from what's necessary).
Question 2:
Are there any guides available for accomplishing that?
I would reccomend using OpenVPN over PPTP - has higher performance
1.
When creating a VPN, you technically create a gateway server on the host computer. As a result, with some configurations, your network is accessable when using the VPN.
You can probably create a Iptables rule like
Code:
iptables -A OUTPUT -p tcp -i [name of VPN Tunnel, i.e. tun0] -d [home router ip] -j ALLOW
iptables -A OUTPUT -p tcp -i [name of VPN Tunnel, i.e. tun0] -d [your home subnet]/24 -j DROP
To block it.
2. I don't have time to search on the net right now, but most of the ones that you will find that use TUN, and not TAP will work well. Make sure it uses push "redirect-gateway def1" in the guide.
Note: You can also use SSH Tunneling, which would be much less complicated methinks
Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.
Bookmarks