ok. thanks.
I have the iptables list as follows:
root:# /sbin/iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
DROP tcp -- anywhere anywhere tcp dpt:x11
DROP udp -- anywhere anywhere udp dpt:x11
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
scanning the host still shows the port is up:
PORT STATE SERVICE
631/tcp open ipp
6000/tcp open X11
Nmap finished: 1 IP address (1 host up) scanned in 0.133 seconds
testing the port from
https://www.grc.com/port_6000.htm also said the port was open
maybe i miss some other settings ere ...