|
Buy a raspberry pi, add a USB stick, install NAS-software.
How to build a Raspberry Pi NAS: the full guide[^]
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Maybe one of you have encountered this and fixed it or perhaps some sage advice is out there.
My laptop is Windows 10 Pro, and I have full admin rights. I travel between my home office and my customer location. At the customer location, I have a networked drive mapped to our development server file storage area:
N drive mapped to \\SwServer\Development
This server also hosts our SVN repositories, which will come into this story in a bit.
My laptop is mine, and as a consultant, I am not allowed to be a member of the domain (nor do I want to be). My credentials are entered, saved, and I can access this drive as you would expect.
Now I go home to my corporate office and I'm attempting to access the network drive using the customer supplied VPN software (global protect if it matters). Once connected (no error messages in the log), I cannot see the network drives. If I ping the server, I get timeouts. Okay, the network is screwed up somehow.
But here comes the weird part - our svn server is hosted on SwServer behind an Apache web server (standard SVN setup). I can access my svn repositories just fine. So, somehow the path from my laptop to the SwServer exists somewhere.
Something is screwed up. Any suggestions as to what to look for?
The odd thing is that I can go a week and things will work flawlessly, then it all comes off the rails....
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
charlieg wrote: Now I go home to my corporate office and I'm attempting to access the network drive using the customer supplied VPN software (global protect if it matters). Once connected (no error messages in the log), I cannot see the network drives. If I ping the server, I get timeouts. Okay, the network is screwed up somehow.
What is the /24 network at home and at work?
charlieg wrote: But here comes the weird part - our svn server is hosted on SwServer behind an Apache web server (standard SVN setup). I can access my svn repositories just fine. So, somehow the path from my laptop to the SwServer exists somewhere.
I have no idea about SVN, does it use direct IP or some other magic like HTTP that may take the IP out of the equation?
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
My understanding is that svn leverages the html / web api. I don't think there is anything "special" it does....
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
There's a firewall on the VPN entry point that allows HTTP but is blocking the SMB/CIFs protocol; that might be part of the organizational DMZ internal access point. You'll need to coordinate with the organization's NOC to figure out how to get that drive mapping to work through the VPN, or use a cloud service accessible from both networks.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
I sort of understood that. However, I wonder why it would work some of the time? The wildcard in this equation is that 99.99% of the users of this VPN are employees and members of the domain. No problems reported by them.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
Ah, it sounds like it entirely depends on how your credentials are handled, your description doesn't mean much on that light unfortunately.
Regardless, there is definitely a firewall between you and the internal network that you don't have to contend with while on site. I suspect it will boil down to how authentication is handled. If possible, I've found the easiest solution is to use a jump box or terminal server to work from on premises.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
Hmmm,
I'd begin debugging by doing:
route print
(This is probably your problem)
On both networks and making sure you have a route to the SwServer. You are probably on a different IP address range while connected to the VPN and have a different route or no route at all.
You might be able to add a route to SwServer by doing:
route ADD [network] MASK [mask] [gateway]
Keep in mind it could also be a firewall rule on the company network so you may want to get the Systems Administrator involved.
Some additional thoughts:
Make sure the NETBIOS name 'SwServer' resolves to an IP by doing:
nslookup SwServer
If SwServer resolves to an IP address... try manually mapping the drive:
net use N: \\SwServer\Development
charlieg wrote: The odd thing is that I can go a week and things will work flawlessly, then it all comes off the rails....
Many Systems Admins sit in their office and poke buttons and change network security/patch things every day while consuming large amounts of coffee. It's a repeating pattern of fixing 90% of everything and breaking the other 10% of users. Rise and repeat.
Best Wishes,
-David Delaune
|
|
|
|
|
Guys, I really appreciate the suggestions. Since some times I can connect instantly and other times (like right now) it takes 10s of minutes, I don't think it's a firewall. A firewall issue would just say, "no, hell no" and never let me in... ever. That's according to my logic, so I'm ready to be corrected.
For a credential issue, I would think that would play in the same manner as a firewall. I don't think it would be hit or miss?
The routing issue passes the sniff test, and I'll have to dig in to that. I have seen some weird stuff in that area, and just because my client is a $5B company doesn't mean the net admins know what they are doing. Admittedly, I'm not high on their radar.
I have another client that uses different VPN software, and in a BFO I wondered if the two vpn packages were interfering with each other. Sadly, no.
And after 5 min of typing... I can access the network drive...
I'll keep plugging. This is interesting.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
Still debugging this issue. This morning, the VPN was completely non-functional. Doing a tracert to the server as well as the route print, I just saw lots of junk - things that made me go hmm...
So, I re-installed the VPN software - no joy. Step 2 was remote the USB connection I have to a hub full of devices (I do embedded development and use some additional usb to ethernet to talk to local hardware). Still nothing. Final step was to power down the laptop, reboot my cable modem start the connection process all over again.
Instant success. The tracert output to the server shows 8 hops- it have been 50+, leading me to believe that perhaps the routing table had been hosed. Or my cablemodem was just in the weeds.
Will monitor
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
Just to close this out - it's my gateway.
I have AT&T internet service that looks like this:
street -> cable -> gateway -> Amplifi router -> users
the gateway includes a wireless router and a 4 port gigabit hub. I normally plug directly into the gateway so I don't share bandwidth with the kids in the house. When I cannot connect, I re-boot the gateway and it works for a while, but sooner or later it goes insane.
But, if I connect to the amplifi router, it works 100%.
Enough time lost...
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
We'll be needing to change the ownership and permissions on a few hundred thousand folders & files.
Can it be done in PS (or other) in such a way that any errors encountered are ignored (and logged?) so the process doesn't come to a screeching halt? I fully expect for it to find folders that the creator locked down so tightly that they will require special attention on an individual basis.
I've websearched, but either I'm asking in the wrong way, or no one has ever needed to do this. (Doubtful)
For obvious reasons, I refuse to use the GUI to do it.
|
|
|
|
|
It should be possible using PS but I have not done so far.
You probably want to call Set-Acl[^] for each single file and directory within a try a catch block (about_Try_Catch_Finally | Microsoft Docs[^]). So errors will not let your script terminate and can be logged.
|
|
|
|
|
|
Thank you for the update. It is always good to find a ready-to-use solution which might be also helpful for others.
|
|
|
|
|
Good day all;
I have a Mac Mini Late 2012 with 4GB Ram and i5. The machine is upgraded to 16GB, and might change drive to SSD. I am targeting this machine to be a host machine running Virtual Box on which I will run a Win 10 machine and an Ubuntu Server 16.04. Both these VM’s will be hosting web applications and connecting to the Internet. On Win 10 I will be running IIS and hosting ASP.NET sites. On Ubuntu I have some two PHP/MySQL applications and two other web applications running on own ports (8500 & 8501).
The thinking is that I will route relevant ports to the relevant VM/Port using Virtual Box. My questions:
1. Is this doable with Mac?
2. Do I need to install MacOS Server since the machine will be connected directly to the web?
3. Will I be able to remote into the VM’s directly (eg: ssh into the Ubuntu box)?
4. Will I be able to remote into the Mac to, for example, restart the physical machine or restart Virtual Box?
Thanks
|
|
|
|
|
how to display the graphics in c language?
|
|
|
|
|
|
Simple; you don't.
Graphics aren't code, and code that is currently being executed is not directly translatable to "c language".
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
I've been polite and technical. I don't understand why someone or some bot thinks I'm spamming. I'll avoid being flagged if I know what I'm doing wrong.
|
|
|
|
|
1) You've posted this in the "System Admin" forum, which is about administering systems. You should have posted it in the Bugs & Suggestions forum, or The Lounge.
2) There is an automated system which uses Bayesian probabilities to decide whether it thinks a post is spam or not. Sometimes, it will flag messages as potential spam for no obvious reason. It's nothing personal; you just have to wait for a human being to review the message and allow it to be posted.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
1. OK Bugs and Suggestions
2. TY
|
|
|
|
|
"Sometimes"?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
From what I saw of the aftermath of yesterday's Korean spam attack, "not nearly frequently enough".
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|