Re: open port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> ...
>
> > Now you have it running, so the next step is to figure out how to ask
> > firewalld to allow connections to that port.
>
> I would first verify that Xvnc is not only listening on localhost.
>
> Two ways, From euripide (the "remote", ie: the server)
>
>   1. nmap
>
>        nmap -v -n -Pn -p5900-5906 euripide
>
Starting Nmap 7.70 ( https://nmap.org ) at 2020-02-16 11:46 CET
Initiating Connect Scan at 11:46
Scanning euripide (193.52.235.60) [7 ports]
Discovered open port 5901/tcp on 193.52.235.60
Completed Connect Scan at 11:46, 0.00s elapsed (7 total ports)
Nmap scan report for euripide (193.52.235.60)
Host is up (0.00037s latency).
Other addresses for euripide (not scanned): fe80::de89:7b2c:9cf1:d1c9

PORT     STATE  SERVICE
5900/tcp closed vnc
5901/tcp open   vnc-1
5902/tcp closed vnc-2
5903/tcp closed vnc-3
5904/tcp closed unknown
5905/tcp closed unknown
5906/tcp closed unknown

Read data files from: /usr/bin/../share/nmap
Nmap done: 1 IP address (1 host up) scanned in 0.03 seconds


>   2. or lsof
>
>        lsof -p $(pidof Xvnc) | grep LISTEN


Xvnc    5308 pdupre    6u     IPv4             145831       0t0      TCP *:5901 (LISTEN)
Xvnc    5308 pdupre    7u     IPv6             145832       0t0      TCP *:5901 (LISTEN)


>      Should give something like
>
>         Xvnc <snip> TCP *:5901 (LISTEN)
>
>      and not:
>
>         Xvnc <snip> TCP localhost:5901 (LISTEN)
>
> You can also check the arguments given to Xvnc by vncserver:
>
>     ps -wp $(pidof Xvnc)

 PID TTY          TIME CMD
 5308 ?        00:00:00 Xvnc

>
> PS: If you have SSH access, I suggest to restrict Xvnc to localhost
>     and use:
>
>         vncviewer -via euripide :1
vncviewer -via euripide :1 vncviewer -via euripide :0

donne le meme resultat:
ssh: Could not resolve hostname euripide.u-bourgogne.fr:1: Name or service not known
ssh: Could not resolve hostname euripide.u-bourgogne.fr:0: Name or service not known


>     See the comments in vncserver@.service

 Comment ?
>
> --
> francis
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
>
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux