{"id":567,"date":"2010-10-08T08:26:04","date_gmt":"2010-10-08T00:26:04","guid":{"rendered":"http:\/\/kenshinjeff.jp\/?p=567"},"modified":"2010-10-08T08:26:04","modified_gmt":"2010-10-08T00:26:04","slug":"setting-up-a-vpn-with-a-vps","status":"publish","type":"post","link":"https:\/\/kenshinjeff.jp\/2010\/10\/08\/setting-up-a-vpn-with-a-vps\/","title":{"rendered":"Setting up a vpn with a vps"},"content":{"rendered":"

Basically if you happen to have a vps lying around you can install openvpn on it, and create your own vpn. There are some useful things you can do with this kind of vpn setup but most people use it for the following reasons:<\/p>\n

– Secure remote\/mobile access to confidential work files
\n– Anonymity (ie, hide porn\/torrent traffic from your isp)
\n– Creating a VPN LAN to play games
\n– Cost savings as compared to leased lines<\/p>\n

It’s a cool way to access your shared files at home via your mobile device too you know.<\/p>\n

Anyhows it’s available for most platforms, and here’s the page to set it up.
\nhttp:\/\/openvpn.net\/index.php\/open-source\/documentation\/howto.html#quick<\/p>\n

What’s different about setting it up on a vps is that you need the following to be configured by your service provider first before you use it.<\/p>\n

TUN\/TAP device enabled on your VPS
\niptables NAT support<\/p>\n

And here are the additional commands:<\/p>\n

echo 1 > \/proc\/sys\/net\/ipv4\/ip_forward
\niptables -t nat -A POSTROUTING -s 10.8.0.0\/24 -o venet0 -j MASQUERADE<\/p><\/blockquote>\n

or<\/p>\n

iptables -t nat -A POSTROUTING -s ASSIGNED.VPN.IP.ADDRESS -j SNAT –to VPN.IP.ADDRESS.HERE<\/p><\/blockquote>\n

REF: http:\/\/www.specialvps.com\/setup-vpn-server-centos-vps-instantly\/
\nREF: http:\/\/www.specialvps.com\/install-openvpn-debianubuntu-vps-instantly\/<\/p>\n","protected":false},"excerpt":{"rendered":"

Basically if you happen to have a vps lying around you can install openvpn on it, and create your own vpn. There are some useful things you can do with this kind of vpn setup but most people use it for the following reasons: – Secure remote\/mobile access to confidential work files – Anonymity (ie, […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[],"_links":{"self":[{"href":"https:\/\/kenshinjeff.jp\/wp-json\/wp\/v2\/posts\/567"}],"collection":[{"href":"https:\/\/kenshinjeff.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenshinjeff.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenshinjeff.jp\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kenshinjeff.jp\/wp-json\/wp\/v2\/comments?post=567"}],"version-history":[{"count":0,"href":"https:\/\/kenshinjeff.jp\/wp-json\/wp\/v2\/posts\/567\/revisions"}],"wp:attachment":[{"href":"https:\/\/kenshinjeff.jp\/wp-json\/wp\/v2\/media?parent=567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenshinjeff.jp\/wp-json\/wp\/v2\/categories?post=567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenshinjeff.jp\/wp-json\/wp\/v2\/tags?post=567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}