LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-12-2020, 10:27 AM   #1
Scribtor
Member
 
Registered: Sep 2019
Distribution: Slackware64 - current
Posts: 65

Rep: Reputation: Disabled
Question VPN inside VirtualBox


Problem:

I have two VPN networks I should be connected to at all times, but I can only get one of them to work at one time


I recently setup a Win7 VM inside VirtualBox to run VMWare on occasion.
I now need that Win7 VM to run a VPN that is independent of the host VPN


One VPN network is a connection to my company file servers, mail,git etc and the other is to the client for testing environment of the software we develop.

Company file servers are configured through PPTP(VPN) while the client requires Cisco Mobility Client. To my amazement, the thing actually ran after I downloaded a shell script and ran it, but it blocks out all other Internet traffic and I can't have that.



My hardware specified in the attached image

RAM is 20GB, so that shouldn't be a problem for a VM inside Slack.
I'm not sure my Wi-Fi and LAN adapter are one physical device or not, but I do know that to use LAN, I have to use the USB-to-LAN adapter since I have no LAN port on the laptop.

Network router supports a lot of different options, and I'm able to edit those settings as well, if need be.


Desired goal:


I need to be able to have either both VPN running at the same time, or at least not to have my Internet blocked by the client VPN, albeit giving up at least temporarily the company file servers.
Suppose the Internet-blocking VPN can run better wihtin Windows, but it doesn't have to be a requirement.


Not posting to general Linux since I learned by now that Slackware is specific since it doesn't have the "modern", "apt-get lemme get that for you" attitude which I appreciate more and more with every day (Just to be clear, I appreciate the lack of the quoted attitude )

Not required: I can reinstall with a Win10 too, it's not an issue if it will help in resolving this problem. Win7 is just my less-hated-than-win10 M$ O$. Also open to XP.

Attached Thumbnails
Click image for larger version

Name:	lspci_output.png
Views:	39
Size:	152.1 KB
ID:	34299  
 
Old 10-12-2020, 03:26 PM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,452
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
VPN inside VirtualBox

My tip would be to use "Bridge mode" networking for your VM, so that it gets its own IP address from the router. This will enable it to function as a completely independent machine.

Do you control the servers at the company? If so, it might be worth setting up an OpenVPN server.
 
2 members found this post helpful.
Old 10-12-2020, 04:20 PM   #3
Scribtor
Member
 
Registered: Sep 2019
Distribution: Slackware64 - current
Posts: 65

Original Poster
Rep: Reputation: Disabled
Tried that and it works like a charm.


I might have some influence over the PPTP VPN and admin running those servers, but as far as the other one goes, I have 0 access/influence to servers.

Sub-question while I'm at it: Would two VM be impossible to run separately from each other, one for each VPN, leaving out my slack free to use the web as I normally would?
(Since win7 is happy to run at 25-30GB per system partition, I can spare the memory off my linux partition for this purpose, and also provide more-than-sufficient 6GB RAM for either VM, and still have my main slack running pretty without any chop with the remaining 8GB)
 
Old 10-12-2020, 04:26 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
In a strict sense a VPN shouldn't allow any other connection.

In most cases a VM is to be treated like a physical machine that is connected to (in this case) a virtual router.
 
1 members found this post helpful.
Old 10-12-2020, 04:35 PM   #5
Scribtor
Member
 
Registered: Sep 2019
Distribution: Slackware64 - current
Posts: 65

Original Poster
Rep: Reputation: Disabled
Thank you both!

Marking the thread as solved;


Will report how and if, two VMs function to circumvent two mutually exclusive VPNs. I would love not to have to dual-boot to windows but still have the benefits, the best of both worlds.
 
Old 10-12-2020, 06:02 PM   #6
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,452
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by Scribtor View Post
Will report how and if, two VMs function to circumvent two mutually exclusive VPNs.
You can run as many VMs as you like. You're only limited by the resources of your machine. I'll be very surprised if this doesn't work for you.

With Bridge mode, they'll all get their own IP addresses and behave like independent machines on your local network. None of them should affect the host in any way.

If you start them in 'headless' mode, you can leave them running and log in via RDP using krdc, you just need to ensure that your user has remote access. This will only work if you have Pro or higher versions of Windows. It doesn't work on the Home editions.

Last edited by rkelsen; 10-12-2020 at 06:08 PM.
 
Old 10-13-2020, 06:37 AM   #7
Scribtor
Member
 
Registered: Sep 2019
Distribution: Slackware64 - current
Posts: 65

Original Poster
Rep: Reputation: Disabled
Like clockwork!


I still don't like running windows, even in VM, to run my business, but that still beats having to give up either company file servers or my WWW from time to time.
( And it wouldn't be remotely possible were it not for light-weight distro I run and love to continue to run )

Thanks again
 
1 members found this post helpful.
  


Reply

Tags
cisco, slackware -current, virtualbox, vpn+wifi



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
[SOLVED] virtualbox is installed along with virtualbox-dkms and virtualbox-ext-pack and linux-headers-generic, but error for no /dev/vboxdrv Astral Axiom Linux - Software 2 03-04-2019 08:09 PM
Sleep inside for loop inside while loop causing issues. TheOnlyQ Programming 13 12-19-2012 12:59 PM
LXer: The Devil Inside: Creative Threat Detection Inside the Firewall LXer Syndicated Linux News 0 05-24-2012 07:30 PM
Possible to have a VM inside a VM, inside a VM? Into eternity? linus72 Linux - Newbie 8 05-15-2009 07:20 AM
iptables inside client to inside host with outside DNS or IP - Help! linuxhelp2 Linux - Networking 1 10-15-2005 06:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:53 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