iptables and X11 forwarding

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Is something missing?  I've tried to enable X11 forwarding thru
iptables with the following
set of rules.  If I run "ggv &"  a "can't open display" message is
displayed.  I have sshed with the -X option.

iptables -A INPUT -s -d -i lo -j ACCEPT
iptables -A OUTPUT -s -d -o lo -j ACCEPT


Re: iptables and X11 forwarding

p_a wrote:
Quoted text here. Click to load it

1. You don't need to specify addresses for the lo rules.
    BTW, it's good to put these rules first in INPUT and OUTPUT.

2. Is the DISPLAY variable set?

3. Is xauth installed?  (rpm -q xorg-x11-xauth)

4. Are you running ssh over IPv4 or IPv6?
    Typically localhost has to be defined for both.

Site Timeline