LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-07-2012, 12:19 PM   #1
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676
Blog Entries: 7

Rep: Reputation: 32
VPN trough SOCKS link


Hi
I have a WAN link between two linux servers, to connect to it users change their browser SOCKS settings to connect to the client server of the WAN link.
As you now not all clients have SOCKS settings "mobile phones/smart phones/tablets..etc" so I want users to connect through pptp to the linux server, so far so good. Then I want the VPN server to pipe the traffic of those clients to the SOCKS connection on the same server.

Any ideas ?

Thanks
 
Old 01-17-2012, 05:05 AM   #2
ambrop7
Member
 
Registered: May 2011
Distribution: Gentoo
Posts: 98

Rep: Reputation: 16
This software of mine should do the job: http://code.google.com/p/badvpn/wiki/tun2socks

What you'd have to do is tell tun2socks to use your socks server, then adjust your routes to route your clients' traffic into tun2socks's TUN device; and tun2socks will forward it through SOCKS. However, be careful to make sure that the address of the socks server is routed directly, not via the tun device (as that would make a loop).
If you want different routing for local connections, you may need to use policy routing (ip rule, iptables marks).

Last edited by ambrop7; 01-17-2012 at 05:08 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a SOCKS 5 proxy server to talk to VPN disposable5819 Linux - Networking 1 05-04-2010 03:17 AM
OpenVPN Tunnel all Traffic trough VPN bdegier Linux - Networking 1 02-25-2009 04:55 PM
Newbie confused - socks & vpn clarification needed Chris594 Linux - Networking 1 05-17-2008 01:03 PM
how can I use the VPN to link the internet ReiserFS Slackware 0 11-05-2004 04:40 AM
Internet access trough D-Link router 504T not working (kernel 2.6?) darkangel12613 Linux - Networking 0 07-20-2004 08:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration