How to forward ports for X11 on Proxmox to a MV

z3nth10n

New Member
Mar 26, 2019
15
0
1
27
Well, I read that I needed to open ports 6000-6063 and also 117 (UDP).

I tried it without luck:

Code:
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 6000:6063 -j DNAT --to 192.168.x.xxx:6000-6063
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 6000:6063 -j DNAT --to 192.168.x.xxx:6000-6063
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p udp --dport 117 -j DNAT --to 192.168.x.xxx:117
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p udp --dport 117 -j DNAT --to 192.168.x.xxx:117

Under my client, I execute:

Code:
ssh -Y -p xxxx root@my.ip.com

But I get this when I try to execute gedit:

1605594315647.png

I suppose the problem is related to port forwarding issues. But I can't figure it out.

I already check iptables-save but everything is OK, so Idk what's going on.

Thanks!
 
Hi,

Is the X11Forwarding enabled on your ssh config?
what the output of: cat /etc/ssh/sshd_config| grep X11Forwarding
 
Hi,

thanks for your response!

I have it enabled, I also tired using

Code:
export DISPLAY=:0
export DISPLAY=0

But none worked...
 
Great!

Please mark the thread as [SOLVED] to help other people who have the same issue Thanks!

have a nice day