Help!

iptables and X11 forwarding

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Security RSS
Next:  Bug#539995: approx: download loop---stops before ..  
Author Message
p_a
External


Since: Aug 04, 2009
Posts: 1



PostPosted: Tue Aug 04, 2009 6:16 pm    Post subject: iptables and X11 forwarding
Archived from groups: comp>os>linux>security (more info?)

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 127.0.0.0/8 -d 127.0.0.0/8 -i lo -j ACCEPT
iptables -A OUTPUT -s 127.0.0.0/8 -d 127.0.0.0/8 -o lo -j ACCEPT

thx.,
pete.
Back to top
Allen Kistler
External


Since: Jun 26, 2004
Posts: 367



PostPosted: Tue Aug 04, 2009 8:38 pm    Post subject: Re: iptables and X11 forwarding [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

p_a wrote:
> 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 127.0.0.0/8 -d 127.0.0.0/8 -i lo -j ACCEPT
> iptables -A OUTPUT -s 127.0.0.0/8 -d 127.0.0.0/8 -o lo -j ACCEPT

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.
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Security All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum