How to enable TCP with OpenVPN [closed] - tcp

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 5 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I am installing OpenVPN(version 2.3.6) in Windows 7,the server IP address is:192.168.1.222(firewall closed),the client IP is:192.168.1.240(firewall closed).The client conect to server directly success(Local Area Network).When connect to server through public network,the log is:
Wed Feb 17 10:40:58 2016 MANAGEMENT: >STATE:1455676858,WAIT,,,
Wed Feb 17 10:41:59 2016 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Wed Feb 17 10:41:59 2016 TLS Error: TLS handshake failed
Wed Feb 17 10:41:59 2016 SIGUSR1[soft,tls-error] received, process restarting
Wed Feb 17 10:41:59 2016 MANAGEMENT: >STATE:1455676919,RECONNECTING,tls-error
when I using NMAP to scan public IP,the OpenVPN port(1194) is closed.And I use command to find port status:
C:\Users\Administrator>netstat -an |find /i "1194"
UDP 0.0.0.0:1194 *:*
Just only UDP.So my question is:How to enable OpenVPN's TCP port? So I could connect to OpenVPN through public network(Wide Area Network).

Open your server.conf file and there should be entries to control this setting. If you're running on Windows, it should be in C:\Program Files\OpenVPN\config\ or something similar.
Look for something similar to this:
/# Which TCP/UDP port should OpenVPN listen on?
/# If you want to run multiple OpenVPN instances
/# on the same machine, use a different port
/# number for each one. You will need to
/# open up this port on your firewall.
port 1194
/# TCP or UDP server?
;proto tcp
proto udp
I'd recommend bookmarking this link and let it be your OpenVPN bible.
https://openvpn.net/index.php/open-source/documentation/howto.html
Good luck!

Related

Are TCP/IP and UDP the only protocols supported by the Internet? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Are TCP and UDP the only protocols supported by the Internet? If they are, do other networking protocols that are not meant to be used with common hardware exist?
No, not at all. The Internet is routed at the network layer, which is IP.
The problem is that NAPT that is used for IPv4 because we have run out of those addresses only supports TCP, UDP, and ICMP. IPv6 restores the IP end-to-end paradigm and you can use any transport protocol because the Internet only cares about IP, not any protocols above that.

NMAP? - Determine whether host is on WiFi vs Ethernet [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
Is there a method to determine whether a host (on your LAN) is on WiFi vs Ethernet using nmap or any other tool? I am OK with fuzzy guesses as well.
tl;dr No, there is none
Long answer:
There is no way to find out what kind of connection other PC on your network is using(without physically accessing it ofc).
Those things are abstracted on network. You can sniff traffic on transport layer by Wireshark and see there is no data on interfaces being transported.
An option:
You can learn a physical network interface vendor by sniffing traffic.
Wireshark can guess those, because vendors have their own MAC address prefixes. And if it's some company which is making wireless interfaces only, you can hit a jackpot. It's not even close to being a bulletproof method though.
Nmap may be used to look for open ports. There might be a chance that you can deduce which software server is running by getting info on ports, but I can hardly imagine you will find anything wlan/eth specific.

does an ip address have multiple ports? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have read somewhere that "if you are the remote user connecting to a web server, then your web browser would pick a random TCP port from a certain range of port numbers, and attempt to connect to port 80 on the IP address of the web server". Does that mean that a particular ip address at client side have multiple ports?
Every system which implements TCP/IP has multiple "ports". The IP address refers to the entire system, if that's all we had it would be pretty boring. One program on a system could talk to one program on another system.
Hence the idea of "ports". Ports are just a 16-bit number which "completes" the address. So, your program on system 1.2.3.4 wants to talk to the webserver running on 2.3.4.5. The webserver "binds" itself to port 80. This is an example of a "well known port". But, how is the webserver to get data back to you? Your program needs a "port" of its own. But, it can be any old number, it doesn't need to be well known, so it just tells the OS I need a port and the OS finds one not in use and your program is "bound" to that port. Say it is port 3456.
So now we have all we need: 1.2.3.4:3456 can talk to 2.3.4.5:80
and when the packets of data for port 80 arrive at 2.3.4.5, the OS delivers them to the webserver. And when the packets of data for port 3456 arrive back at your computer (1.2.3.4), your OS delivers them to your web browser.
Whereever you read that, it's wrong. The TCP implementation picks a random local port. Not the browser. There are 65535 TCP ports per IP address, and another 65535 UDP ports.

Open port 22 in home router, but three computers have the same port open [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
If I open the port 22 in my home router so I can connect from the outside and I have three computers behind that router with the port 22 open where would my connection end up? In which of the three computers?
It depends on the router (configuration/software). In most cases it wont go anywhere. To have control over it you will need to redirect the traffic from port 22 to a specific IP address from the router settings.

how to connect multiple virtual machines in LAN [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am having three virtual machines with different linux distros installed on it(oracle virtualbox).I just wanted to know if there is any way to connect these three machins in LAN.if so how to do it in vmware and virtualbox?
In Vmware you have the option to create another network for your viritual machine (seperate from your local network). This is called Network Address Translation, in short NAT. What it does in simple terms is that it directs traffic from the internet to the correct pc in the local network. Your computer then becomes the router for your viritual machines. It also can act as a DCHP server that gives out IP addresses to your VMs only.
Here is an example:
As you can see here your viritual machines (VM) get internet access from your computer. Your computer acts similary to your normal router. Keep in mind if you want to connect from one of the computers on the local network, you have to do some port forwarding on your computer.
To do this look under network adapter settings in Vmware.
Hope this helped
-Kad

Resources