LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-25-2018, 02:08 PM   #1
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 Live
Posts: 300

Rep: Reputation: 51
Connect to a remote computer that's using a "VPN"


I have a computer that is running Slackware64 14.2. I want to use sshuttle to connect it to another computer to tunnel it's data through another machine. I can do that successfully. When I do, I lose my connection to it from my own local machine because all data is now routed through another machine because of sshuttle.

How can I connected to a box that has all it's data tunneling to another machine?

James

Last edited by JamesGT; 10-25-2018 at 02:11 PM.
 
Old 10-25-2018, 08:27 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Let me see if I understand this. You are connecting from Computer A to Computer B. Once you are inside Computer B, you are tunneling data Computer C to Computer B, but your connection from Computer A to Computer B is dropping.

Is that correct? If not, please straighten me out.
 
Old 10-26-2018, 02:40 PM   #3
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 Live
Posts: 300

Original Poster
Rep: Reputation: 51
I am sitting at Computer A. I use SSH and VNC to get to Computer B. Computer B is using a VPN (sshuttle) to get to Computer C. When Computer B connects to Computer C through the VPN(sshutte), Computer A loses SSH and VNC connection to to Computer B, but I still want A connected to B.

James
 
Old 10-26-2018, 03:25 PM   #4
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
This may or may not apply, but some VPN software prevents "split tunneling", which is essentially connections outside of the VPN. Not sure if this is the case, I have no familiarity with your VPN software.
 
Old 10-27-2018, 09:36 AM   #5
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 Live
Posts: 300

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by sevendogsbsd View Post
This may or may not apply, but some VPN software prevents "split tunneling", which is essentially connections outside of the VPN. Not sure if this is the case, I have no familiarity with your VPN software.
I am using "sshuttle". It's kind of a "poor mans" VPN basically using SSH.

I am reading as much as I can about it to see if I can make exceptions for specific IPs to connect outside of the VPN/tunnel.

James
 
Old 10-27-2018, 10:11 AM   #6
RickDeckard
Member
 
Registered: Jan 2014
Location: Canton, Georgia, USA
Distribution: Debian 12
Posts: 205

Rep: Reputation: Disabled
Posting your configuration files might help. Just sayin.
 
Old 10-27-2018, 10:19 AM   #7
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
From the documentation

Code:
-x, --exclude=subnet

    Explicitly exclude this subnet from forwarding. The format of this option is the same as the <subnets> option. To exclude more than one subnet, specify the -x option more than once. You can say something like 0/0 -x 1.2.3.0/24 to forward everything except the local subnet over the VPN, for example.

-X, --exclude-from=file

    Exclude the subnets specified in a file, one subnet per line. Useful when you have lots of subnets to exclude.
 
1 members found this post helpful.
Old 10-31-2018, 09:34 AM   #8
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 Live
Posts: 300

Original Poster
Rep: Reputation: 51
That worked...awesome, thank you!
 
  


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
How could a computer technician use the "top" command with "ps" and "kill" to investigate how a system is misbehaving? geckono1 Linux - Newbie 13 07-03-2016 07:51 AM
How to copy files via "rdesktop" to remote computer? hack3rcon Linux - Networking 3 08-18-2015 01:49 AM
[SOLVED] "net rpc" "failed to connect to ipc$ share on" or "unable to find a suitable server" larieu Linux - General 0 11-09-2014 12:45 AM
"URGENT" i have an issue to connect VPN form client node gokulakrishnan Linux - Networking 1 06-09-2009 09:31 PM
I get a "relaying denied" message when I try to send mail from a remote computer robmainella Linux - Software 4 09-09-2003 10:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:45 AM.

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