Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Firewall: Accesing remoteserver's X Windows

Status
Not open for further replies.

cadbilbao

Programmer
Apr 9, 2001
233
ES
Hello.

I am trying to connect a remote server and get its X Windows.
These are the steps I followed:

100.100.100.100 = the Internet IP of my Firewall (fw1) (Linux)
192.168.1.1 = the LAN IP of my machine (Linux)

200.200.200.200 = the Internet IP of the remoteserver's firewall (fw2) (Linux)
192.168.1.33 = the LAN IP of the remoteserver (Linux)

mymachine--fw1--Internet--fw2--remoteserver

1) I opened my 6000 port (in my Firewall-1):
/sbin/iptables -A FORWARD --dport 6000 -j ACCEPT

2) I told fw2 administrator to forward the packets with 6000 protocol (I hope it's performed):
/sbin/iptables -A FORWARD -p tcp -d 192.168.1.33 --dport 6000 -j ACCEPT
/sbin/iptables -A PREROUTING -t nat -p tcp -d 200.200.200.200 --dport 6000 -j DNAT --to 192.168.1.33:6000

3) From my machine (inside my LAN):
mymachine> xhost +200.200.200.200
mymachine> telnet 200.200.200.200

3) Within remoteserver:
remoteserver> export DISPLAY=100.100.100.100:0.0
remoteserver> any_X_program

..... I do not obtain anything.

What am I doing wrong? Or what is fw2's administrator doing wrong?

Thank you very much and best wishes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top