I'm trying to open a pair of ports (TCP 6000 and UDP 177) so that I can open an xterm window on my local machine from a remote headless server. I got these port numbers from here: http://www.softpanorama.org/Xwindows/Troubleshooting/can_not_open_display.shtml
I have the ufw firewall enabled with added rules like so:
$ sudo ufw status
Status: active
To Action From
-- ------ ----
6000/tcp ALLOW Anywhere
177/udp ALLOW Anywhere
6000/tcp ALLOW Anywhere (v6)
177/udp ALLOW Anywhere (v6)
However, scanning the ports of this local machine from a different machine (using nmap) shows only one port and it's closed:
Interesting ports on <local machine>:
Not shown: 1679 filtered ports
PORT STATE SERVICE
6000/tcp closed X11
Why don't these rules seem to be working? And even disabling ufw completely seems to do nothing - telnetting to either of these ports ends up with a connection refused message.




