Group: Member
Post Group: Working Newbie
Posts: 69
Status:
|
Quote From : abhijeetm June 30, 2017, 4:50 am Hi,
If one VPS is using port 22 for TCP then other cannot use it for same public IP.
Public IPs port can be shared only for HTTP/HTTPs protocol i.e only for web services.
For other services TCP protocol needs to be used which do not consider domain name for filtering traffic for non web services.
So for SSH, SMTP, FTP, etc use TCP it will not work under HTTP/HTTPS protocol
For web services (web hosting), different domain names can be used with same source port.
With VPS domain forwarding, you can create VPS which will run on private IP but still be able to host services that can be accessed publicly, through server's public IPs.
Dear Support,
I deployed
VPS Domain Forwarding
ping is working fine 10.0.0.2
gateway 10.0.0.1
I enable port forwarding and port mapping
8 3 (asim.centos6.5.local) localhost TCP 192.168.1.50 50 10.0.0.2 22
Machine with IP 10.0.0.2
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 818/sshd
tcp 0 0 10.0.0.2:22 192.168.1.3:34213 SYN_RECV -
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 894/master
tcp 0 0 10.0.0.2:22 10.0.0.1:37074 ESTABLISHED 995/sshd
tcp 0 0 :::22 :::* LISTEN 818/sshd
tcp 0 0 ::1:25 :::* LISTEN 894/master
I am trying to ssh from other machine IP 192.168.1.3
ssh 192.168.1.50 -p 50
but message is ==> root@ubuntu:~/.ssh# ssh 192.168.1.50 -p 50
ssh_exchange_identification: Connection closed by remote host
Server IP
[root@asim ~]# netstat -antp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 192.168.1.50:5901 0.0.0.0:* LISTEN 1634/qemu-kvm
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd
tcp 0 0 0.0.0.0:4081 0.0.0.0:* LISTEN 3468/python
tcp 0 0 192.168.1.50:50 0.0.0.0:* LISTEN 7042/haproxy
tcp 0 0 0.0.0.0:4082 0.0.0.0:* LISTEN 2990/nginx: master
tcp 0 0 0.0.0.0:4083 0.0.0.0:* LISTEN 2990/nginx: master
tcp 0 0 0.0.0.0:4084 0.0.0.0:* LISTEN 2990/nginx: master
tcp 0 0 0.0.0.0:4085 0.0.0.0:* LISTEN 2990/nginx: master
tcp 0 0 10.0.0.1:53 0.0.0.0:* LISTEN 1591/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1209/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1826/sendmail: acce
tcp 0 0 192.168.1.50:443 0.0.0.0:* LISTEN 7042/haproxy
tcp 0 196 192.168.1.50:22 192.168.1.3:52678 ESTABLISHED 6074/sshd: root@pts
tcp6 0 0 :::111 :::* LISTEN 1/systemd
tcp6 0 0 :::22 :::* LISTEN 1209/sshd
Kindly guide what is the issue?
I am able to ssh from my server 192.168.1.50 to 10.0.0.2
but I am not able to ssh from 192.168.1.3 to 10.0.0.2
==> ssh 192.168.1.50 -p 50
ssh_exchange_identification: Connection closed by remote host
Regards
|