Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Aug 28, 2011 5:24 am 
Offline
Junior Member

Joined: Tue Jan 01, 2008 11:31 am
Posts: 38
Hello!
If I set up iptables to NAT my Vpn traffic throug the linode, how do i manage to point my browser to send traffic through the vpn? - I know, I could use "redirect-gateway" in Openvpn, but that would redirect all my traffic and I only want traffic from i.e. Firefox to be nat-ed. I imagine setting up a local proxy (Windows-machine) would be a possibility, but I have no concrete idea?
Could someone point me to to some tutorial or else about that?
Thanks!


Top
   
 Post subject:
PostPosted: Sun Aug 28, 2011 6:37 am 
Offline
Senior Member
User avatar

Joined: Tue Aug 17, 2004 11:37 pm
Posts: 262
Website: http://www.our-lan.com
WLM: nf@our-lan.com
Location: Brisbane, Australia
if all you want to do is subject your firefox traffic through your linode, you dont need to worry about a vpn.

A simple proxy server will do your needs.

_________________
ServerAdmin - www.our-lan.com
"Diplomacy is the art of saying nice doggy whilst looking for a really big stick"
"In my experiece, any attempt to make any system idiot proof will only challenge God to make a better idiot"


Top
   
 Post subject:
PostPosted: Sun Aug 28, 2011 6:38 am 
Offline
Senior Member

Joined: Tue Feb 19, 2008 10:55 am
Posts: 164
you could use ssh socks proxy, or a tiny non caching proxy on your linode, it doesn't have to be squid.

I would use the socks proxy with firefox configured to use socks to proxy the dns, too.


Top
   
 Post subject:
PostPosted: Sun Aug 28, 2011 6:43 am 
Offline
Junior Member

Joined: Tue Jan 01, 2008 11:31 am
Posts: 38
@chesty: ssh-socks is a good idea. which proxy servers do you mean, i only know squid, thx!


Top
   
 Post subject:
PostPosted: Sun Aug 28, 2011 8:08 pm 
Offline
Senior Member

Joined: Sun Oct 30, 2005 7:52 pm
Posts: 97
Take a look at tinyproxy.

--
Travis


Top
   
 Post subject:
PostPosted: Mon Aug 29, 2011 11:01 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
If your OpenVPN server is set to forward traffic, then simply connecting with the OpenVPN client should automatically forward all traffic through the VPN.

If you'd like a trivial-to-set-up VPN solution, the OpenVPN guys make "OpenVPN Access Server". It's semi-commercial, but does come with 2 free simultaneous logins (extra logins cost $5 each, one-time fee). Deploying it is pretty simple (no configuration on your end), so you basically just need to install it and create some user accounts and you're golden. I'd recommend switching from the default TCP+UDP mode to UDP-only, though.


Top
   
 Post subject:
PostPosted: Mon Aug 29, 2011 11:27 am 
Offline
Senior Member

Joined: Tue Feb 19, 2008 10:55 am
Posts: 164
cattani wrote:
@chesty: ssh-socks is a good idea. which proxy servers do you mean, i only know squid, thx!


If you use ssh socks proxy, you don't need any other proxy. You don't really need the vpn, but either way works. On windows putty is the go for ssh socks proxy, if you google putty socks proxy you should get tutorials.


Top
   
 Post subject:
PostPosted: Mon Aug 29, 2011 12:30 pm 
Offline
Junior Member

Joined: Tue Jan 01, 2008 11:31 am
Posts: 38
ok, thanks, I tested ssh-proxy and vpn+squid - both have dismal speed, maybe its because i am over the ocean, cant get over 150kb/sek, but thats another story
gtz


Top
   
 Post subject:
PostPosted: Mon Aug 29, 2011 3:17 pm 
Offline
Senior Member

Joined: Fri Dec 10, 2010 6:45 pm
Posts: 63
Squid proxy is for caching stuff, so just connect to the VPN server. I doubt that has anything to do with your bandwidth, however.


Top
   
 Post subject:
PostPosted: Mon Aug 29, 2011 4:33 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Encrypting your traffic and tunneling it to another server usually does not improve performance. It can make it much worse, especially when the server is far away.

(That said, a hotel I stayed at in California only rate-limited TCP traffic on the "free 512 kb/sec wireless." OpenVPN uses UDP by default. Pretty sure the hotel had a T1, and I'm pretty sure I was saturating it accidentally.)

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Tue Aug 30, 2011 2:46 am 
Offline
Junior Member

Joined: Tue Jan 01, 2008 11:31 am
Posts: 38
thx all, maybe its the long distance+tunneling which slows down everything, scp gives me ca 300kb/sek, half for http over ssh proxy or vpn+squid.


Top
   
 Post subject:
PostPosted: Tue Aug 30, 2011 10:28 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
SSH tunneling is TCP-over-TCP, so unless I'm mistaken, even the smallest packetloss or jitter is going to cause two layers of TCP to fight eachother. Congestion control on top of congestion control...


Top
   
 Post subject:
PostPosted: Sat Oct 01, 2011 4:57 am 
Offline
Junior Member

Joined: Tue Jan 01, 2008 11:31 am
Posts: 38
@guspaz: Thanks for your input, that is the solution! I changed openvpn to UDP and voila: near line speed of my internet connection - amazing!


Top
   
PostPosted: Sun Nov 30, 2014 8:23 am 
Offline
Junior Member

Joined: Tue Jan 01, 2008 11:31 am
Posts: 38
Hy,
I have an update: this worked amazingly fast until my ISP changed something, now I got max 8mbit/sec and tons of udp-packet replays. Tunnel over tcp works slightly more steadily, but is overall slower. i cant figure out any fix, seems my isp is shuffling udp packets. Do you have any ideas what I could try?
thx


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group