How to Determine Internal Static IP on Hyper-V VM
I have a networking question that has me a bit stumped. I have a Windows 10 host running an Ubuntu guest in Hyper-V as a VM. I have an external virtual switch bridged to my computers wifi adapter so the guest VM is connected to the internet when my host machine is. Now, at my home network and my work network I am able to connect to SSH into the dynamically configured IP of the guest machine. When I am out at some place, like a local coffee shop, I am not able too. A little investigation makes me think this has something to do with the ISP configuration of my coffee shop.
Now, to get around this I figure I can set up an internal virtual switch, add that to my guest VM and then use that to SSH into my VM.
I know I need to set up a static IP for this to work, but I don't know enough about IP addresses to know which one I can use. Any advice on how I can determine this? Bonus points if you tell me how I can set up an internally resolved domain name so I can simple ssh into user@domainname instead of the IP address.
See also questions close to this topic
Network ACL program, please answer as fast as possible. i dont know what is the error
Write a (simple) program c or c++ or java to simulate processing of a packet at a router interface with anACL
bound to that interface. Given an ACL (standard ) bound to a router interface, your
program should accept as input a packet with a source IP address, destination IP address, source, checkthe ACL permit and deny statements in sequence and determine if the packet gets discarded or forwarded.
In order to do this, your program should read two text files:
File no. 1 contains the ACL (for example):
access-list 1 deny 172.16.4.13 0.0.0.0
access-list 1 deny 172.16.5.0 0.0.0.255
access-list 1 permit 172.16.3.0 0.0.0.255
File no.2 contains a list of packets (just source and destination addresses)
Your output should be something like this:
172.16.4.13 172.16.3.2 denied
172.16.5.2 172.16.3.4 denied
etc. etc. permitted
I try to write the program in c++ but it does not work correctly please help me:
unsigned int S1,S2,S3,S4,D1,D2,D3,D4,SIP1,SIP2,SIP3,SIP4,Smask1,Smask2,Smask3,Smask4;
while(fscanf(fin,"%u.%u.%u.%u %u.%u.%u.%u\n", &S1, &S2, &S3, &S4, &D1, &D2, &D3, &D4)!=EOF)
while(fscanf(fin1, "%s %s %s %d.%d.%d.%d %d.%d.%d.%d %s\n", Listname, Commond, &SIP1, &SIP2, &SIP3, &SIP4, &Smask1, &Smask2, &Smask3, &Smask4,Interface)!=EOF)
if(S1==SIP1 && S2==SIP2 && S3==SIP3 && S4==SIP4)
} } } return 0;}
Access-list1 deny 172.16.20.163 0.0.0.0 E0
Access-list1 permit 172.16.0.0 0.0.255.255 E0
Access-list2 deny 172.16.80.0 0.0.0.255 E1
Access-list2 permit 172.16.0.0 0.0.255.255 E1
Access-list3 deny 172.16.50.75 0.0.0.0 E0
Access-list3 deny 172.16.50.7 0.0.0.0 E0
Access-list3 permit 172.16.0.0 0.0.255.255 E0
Is it possible to create a new wifi network from an existing wifi network that has a login page?
I apologize that I lack the vocabulary for solving this problem, but here we go...
The only internet connection available to me is a paid wifi service (like you might find at a coffee shop). To connect to this network, I have to log in via the paid service's login web page. This is a problem because I have devices (google home and nintendo switch) that are unable to connect to any network that requires logging in via a web page.
So my proposed solution is to connect to the network with the wifi adapter in my windows pc, then hopefully route that to my wifi router to create a new personal network - that way I can connect all my devices to my personal network.
Is this even possible? Would I need to build my own tool to accomplish this? I'm a developer, but I don't have much networking experience, so apologies if this doesn't make sense.
CIS(Center for Internet Security) guidelines Kubernetes similar to TCP
I have found CIS guidelines for the Kubernetes from the CIS-Benchmark. How can i compare it for the similar protocols as TCP. As i could see the K8's- CIS guidelines to secure the K8's but i'm little confused on comparing and coming up with CIS guidelines similar to TCP.
Link to CIS guidelines for K8's: https://www.cisecurity.org/benchmark/kubernetes/
Connect to android via ssh
i try to connect to my phone via ssh app from my ubuntu desktop, I looked in google and funded some tutorial, where guy use apps for android, like (SSHDroid and QuickSSHd), the second one is not allowed in my country, not in Israel, not in Ukraine, and i try to use buy first (SSHDroid), it not very helpful enough, i cant connect to my phone, it after some time write me connection is timeout.
i use simple command in terminal
ssh email@example.com -p 2222
like it write in tutorial, and it not help, it not ask password, and do not do nothing, i do not know how to do it
in program dashboard look like this
WIFI Connection: "MYHUB" Address: firstname.lastname@example.org:2222 Status: ready Help:
and it not very help for me, If u know better solution, it mean better apps, or u know how to use it app, please help me.
Using git with powershell and ssh key with passphrase
Whenever I enter a
gitcommand in powershell, I'm asked:
Enter passphrase for key '/c/Users/***/.ssh/id_rsa'
This key is created with a passphrase:
ssh-keygen -t rsa -b 4096 -C "email@example.com"
ssh-agentto load on startup of my powershell, and the environment variables
SSH_AGENT_PIDare setup. The connection to github is successful:
ssh -T firstname.lastname@example.org with:
Hi tkvw! You've successfully authenticated, but GitHub does not provide shell access.
This shows the git urls are used instead of
git remote -v origin email@example.com:tkvw/pshazz.git (fetch) origin firstname.lastname@example.org:tkvw/pshazz.git (push)
This shows the agent is active and the key is loaded:
ssh-add -l 4096 b1:73:2a:11:....63:e8:2a:34 /c/Users/***/.ssh/id_rsa (RSA)
But calling a git operation:
git fetch Enter passphrase for key '/c/Users/***/.ssh/id_rsa':
I have no ideas left. I don't want to use
git bashor something, I like this to work from powershell.
Windows ssh - How to keep proccess running after Disconnect
I want to start a java Process(Minecraft Server) over SSH(PHP Script). And on disconnect it should not be closed.
I am using Bitvise SSH Server for Windows and 64 Bit Java. I can start the server but if I disconnect from the ssh server then the java Process(Minecraft server) stops. I tried with PUTTY but same Problem.
Is there a command for cmd, like screen for Linux, which puts a process in the background?
Cannot convert disk to dynamic; cannot create striped volume
I'm working through the MCSA 70-410 Cert Guide. I'm using Hyper-V and have created a 2012R2 server. I also created two VHDxs, both 2 GB. I want to make them into striped volumes. In Disk Management, when I right click on the disks, all those choices are grayed out (see image). Why? Doesn't matter where I right click.
Unable to launch Minikube Dashboard when virtual switch is set to Internal
I'm trying to do a POC where I can use kubernetes with virtual switch connection type as Internal only. I managed to start minikube and cluster.
PS C:\WINDOWS\system32> minikube status minikube: Running cluster: Running kubectl: Correctly Configured: pointing to minikube-vm at <**Any random Ip**>
but when I run
Minikube Dashboardcommand I'm getting following error.
PS C:\WINDOWS\system32> minikube dashboard Could not find finalized endpoint being pointed to by kubernetes-dashboard: Error validating service: Error getting serv ice kubernetes-dashboard: Get https://<**Same Ip as above**>:8443/api/v1/namespaces/kube-system/services/kubernetes-dashboard: Service Unavailable
Following are the details:
Driver : HyperV OS : Windows 10 Dynamic Memory allocation : Disabled Dynamic MAC allocation : Disabled NATSwitch connection type : Internal Only Minikube version : minikube-v0.25.1 Kubectl version : 1.9.0
(With external its work perfectly fine I need help with internal please refer the screenshot)