nat

nat+端口转发,使得宿主机secureCRT可以访问vbox里linux虚拟机

吃可爱长大的小学妹 提交于 2019-12-10 09:09:36
环境 :vbox或者叫vitrualbox连接虚拟机,由于公司内网不能分配IP(不知道是不是这个原因),虚拟机用桥接得不到IP,没法实现虚拟机和宿主互相访问,于是用NAT。 遗憾 :NAT是能连接网络,也能访问宿主机器;无奈宿主机无法访问虚拟机。可是呢,又想用secureCRT在宿主机访问linux(毕竟linux命令行不方便)。默认情况下NAT给定的IP是10.0.2.15且不能修改。 搜遍千山万水,实践出如下 方案 : (1).cmd进入到vbox安装目录,执行如下命令:(或如图中设置1) d:/vbox>VBoxManage modifyvm "h1" --natpf1 "guestssh,tcp,,2222,,22" “h1″是我的虚拟机名 后面的不用改,大意就是,把本机的端口2222映射到虚拟机的22,访问本机2222,就连接到虚拟机22端口了;【图中1】 然后在 secureCRT 里设置连接 主机为127.0.0.1 而不是虚拟机IP; 端口是2222而不是22 就可以了【图中2】。 来源: oschina 链接: https://my.oschina.net/u/57222/blog/518233

NAT traversal with Java

偶尔善良 提交于 2019-12-08 23:34:26
问题 I want to connect to computers, each one of them behind a NAT router. I read that STUN only works with one computer behind a NAT router. Is that true? If so, how can I solve that double-NAT problem? Thanks, Thomas 回答1: UDP hole punching and TCP hole punching 回答2: TURN is a set of extensions to STUN that help to solve the double-NAT problem. You still need a server in the cloud, and the clients need to register. Source for some free servers is available. From the TURN internet draft: As

Access IPV6 with IPV4 [closed]

℡╲_俬逩灬. 提交于 2019-12-08 05:55:36
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Sorry for my poor title. Here is my situation: Our lab has a centos server which has an local ipv4 addr 10.x.x.x and an public ipv6 addr. I also have a ramnode server which has a public ipv4 addr and a public ipv6 addr. And I only get an ipv4 addr at home, the question is how can I access the centos server using

apache on windows network - can't connect to external ip from in network

与世无争的帅哥 提交于 2019-12-08 04:55:31
问题 I created an AMP web application that was originally going to be served from a traditional 3rd party host. As we finished up, the client decided to host it internally, on a server in their office network. The application is only meant to be available to staff members, but those staff members will often be off-site. I had no involvement in setting up their network, which uses at least one server running windows server 2003. The client machines I saw were XP. I set up Apache, MySQL and PHP on

how to Redirect two URL's on same port to two diff IP's internally

对着背影说爱祢 提交于 2019-12-07 20:56:04
问题 These two machines A and B are NAT behind 1 IP address. Url.xyz.com goes to machine A on port 80 served by apache 2.2 and url2.xyz.com is supposed to go to machine B on port 80 served by apache 2.2 on that machine i have machine A taking all inbound port 80 packets from my gateway...fyi at one point i had apache on machine A setup to do this, but now i am struggling to regain the good config. I am using a diff OS on a diff Machine B for good reasons.... i recall setting up virtual server url2

NAT Traversal using only free STUN and TURN servers in C#

前提是你 提交于 2019-12-07 20:54:23
问题 I am trying to make an online game application, which communicates with another pc peer-to-peer over the Internet. Since both pc's are likely to be under NAT, and since I cannot afford an external server, I thought the only way is to use free STUN and TURN server, such as Numb. However, after some research, I couldn't figure out how to use those servers to make a connection. Is it really possible to use only those servers to do it? If it is, how would you do that? Or is there an easier way of

How do BitTorrents connect with eachother?

回眸只為那壹抹淺笑 提交于 2019-12-07 09:30:41
问题 I was just downloading a new distro of linux using uTorrent, and started to wonder how uTorrent (and other bittorrents) send files to eachother through NAT routers? They obviously use the trackers to get introduced, but how do they pass info to eachother? Is there a whitepaper on this? I couldn't find one :/ Thanks 回答1: Most of the time, they don't. I have a restricted network, and every time I run my torrent program it warns me that some of the ports/functionality required is not available

Hole punching using STUN

懵懂的女人 提交于 2019-12-07 08:38:54
问题 I'm currently trying to send UDP messages over the internet and have to set up the firewalls for both endpoints A and B (which are both behind a NAT). To do this, I want to use hole punching using a STUN server. When A creates a request to the STUN server (say, private: 85.1.1.12:6000 and public: 173.194.78.127:19302) I get 85.1.1.12:6000 as a response. If I were to send a packet from the same origin configuration (same origin ip and port that were used for the STUN-request) to any other

NAT Traversal and IPv6

旧街凉风 提交于 2019-12-07 05:46:43
问题 I am curious about the usefulness of NAT and NAT traversal mechanisms once the deployment and usage of IPv6 increases. We have so many NAT traversal mechanisms (including proprietary) which are intended for mainly IPv4 devices/clients which are behind some kind of residential or enterprise NAT's. Given that NAT came about because of the lack of available addresses in IPv4, is it likely to become redundant once IPv6 is adopted widely in the coming years since IPv6 has enough addresses? Of

How is source port for HTTP determined? Is there ever collision in NAT?

匆匆过客 提交于 2019-12-06 17:29:14
问题 I know that when a HTTP request is made, packets are sent from a seemingly-random high-numbered port (e.g. 4575) on the client to port 80 on the server. Then the server sends the reply to the same high-numbered port, the router knows to route that to the client computer, and all is complete. My question is: How is the return port (4575 in this example) determined? Is it random? If so, within what range? Are there any constraints on it? What happens, for example, if two computers in a LAN send