• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 256
  • Last Modified:

How to configure firewall for X11

I have a system with a 192.168.. ip going through a
liunx firewall to a remote unix system. When I telnet
to this remote system, I would like to run X programs
but do not know how to configure the 'DISPLAY' settings.
How can I get my NAT'ed machine to receive X11?
0
shippy012000
Asked:
shippy012000
  • 3
  • 2
1 Solution
 
biardCommented:
Listening.  (I have interest in this ? as well)
0
 
j2Commented:
you can't. Unless you can forward the port (6000 + display number) directly to the station behind the NAT it wont work. The X11 protocol puts the source IP in the data-part of the packages, aswell as in the normal IP-headers.

Using SSH to tunnel should work for single port forwarding tho.
0
 
shippy012000Author Commented:
so..... can you tell me what I would have
to do in ipchains to get this port to forward?

If gateway machine ls 128.1.1.1 and
NAT machine is 192.168.1.1 and is using
display 0.0, what would a chain look like?

TIA

Ron
0
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
j2Commented:
ipchains will not work. Ipchains cannot rewrite the packages properly. Ipchains only reqrites the adress part of the datagram, not the data part, which is needed.
0
 
shippy012000Author Commented:
Rats.

I thought that I would be able to forward
any packet to 128.1.1.1:6000 to 192.168.1.1:6000 and it would work.

What do you recommend then to do this
forwarding?
0
 
j2Commented:
Friend says that "ipmasqadm" would do the trick. Personally i stick to SSH tunnels :)
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now