Xmanager FAQ
- Category
- Network and Firewall Show all answers Hide all answers
-
I'm in the local network inside a NAT system. How can I connect to the remote host?
To run a remote X program, your IP address should be a public one that can be reached from the remote host because a remote program tries to connect to your local PC.
If your PC is located inside the firewall or NAT and the Unix host is located outside, X applications cannot connect to the Xmanager running on your PC.
There are two solutions on this situation:SSH connection
In case of using SSH connection, you do not have to configure other options. It establishes a secure tunnel between PC and Unix, so we recommend that you use SSH protocol if the Unix server supports it.
Secure XDMCP is a new feature that will change how people access their remote hosts. Learn how to obtain CDE or GNOME/KDE environment under the NAT environment using Secure XDMCP.
To start an X application through SSH protocol, please go through the following steps:- Run Xstart in the Xmanager folder.
- Select SSH for Protocol.
- Enter username, password, hostname, etc.
- Fill the Execution Commnad box as following:
/usr/bin/X11/xterm -ls*Note that -display option is absent. SSH server will assign a proper value.
- Click Save and Run button.
- The Xstart will automatically run Xmanager and then execute the remote command.
- In the command prompt of xterm window, execute startkde for KDE, gnome-session for Gnome or Xsession for CDE.
* Please refer to the following link to find out more commands for starting each UNIX/Linux desktop environment:
Port forwarding rules on the NAT System
To use port forwarding, you should forward the port 6000 of NAT system to the port 6000 of your PC. In case of multiple local users, you can do the following steps: (NAT, 6001) -> (PC1, 6000)
(NAT, 6002) -> (PC2, 6000)
. . .
(NAT, 6009) -> (PC9, 6000) To make XDMCP connection, you need to setup proxy options in the session properties. (*The following instruction is for the PC1.)- Create a new XDMCP session in Xbrowser.
- Open the session properties and select 'Use following connection address' in the Proxy area of the General tab.
- In the Host text box, type the IP addreass of the NAT server.
- In the Port Number text box, type the port number you have assigned in the NAT system for your PC. (6001 for the PC1)
- Clear 'Allocate display number automatically' in the Display Number area of the X Server tab.
- Type the remaining number when subtracting 6000 from the port number in the step 4 above. (1 for the PC1)
PC2: /usr/bin/X11/xterm -ls -display $NATsystem:2
. . .
PC9: /usr/bin/X11/xterm -ls -display $NATsystem:9
If I'm inside a firewall using IP Masquerading, how can I connect to external Linux/Unix hosts? (ex. kernel 2.2)Run the following command as a root on your firewall server.
# ipmasqadm portfw -a -P tcp -L FIREWALL_ADDRESS 6001 -R PC_ADDRESS 6000
Run Xstart program and enter the following command at Command field.
/usr/bin/X11/xterm -ls -display FIREWALL_ADDRESS:1.0
Be sure that, firewall_address and PC_address have been changed to the corresponding IP addresses on your own network. If you do not have ipmasqadm tool, please download from the following site:
http://www.e-infomax.com/ipmasq/juanjox/ - Run Xstart in the Xmanager folder.
-
How can I configure firewall settings in Windows XP/2003/Vista/7?
Windows XP/2003/Vista/7 may block all incoming TCP/IP connections. So, Xmanager cannot be used without allowing its listening port. Please do the following steps to enable Xmanager connection:- Open Control Panel, Network and Internet Connection, and then Network Connections.
- Right-click on your Internet connection, and then click Properties.
- Click Settings. RESULT: Advanced Settings dialog box will open.
- Allow TCP 6000 ~ 6010 and *TCP 16001 port.
* For Gnome only
- Open Control Panel, and then Windows Firewall.
- From the General tab, select On (recommended) option.
- Click the Exception tab.
- Click the Add Program button.
- From the Programs list, select Xmanager - Passive.
- Click OK.
-
I have a firewall running on my Linux host. How should I configure it to use Xmanager?
Nowadays most Linux distributions run a firewall by default and it results in blocking of the TCP/UDP ports required to be used for Xmanager. Because the firewall programs used in Linux are various through out all distributions and versions, you might need to refer to user manuals or technical support service for your the Linux distribution you use. The following instruction is for ipchains and iptables, which are the most common firewall tools for Linux.- ipchains Configurations
Open /etc/sysconfig/ipchains file and add the following lines.
(*The lines in gray color are comments for the firewall rules and not necessary to be added into the file.)# If you want to use GNOME/KDE, add the following line.To apply the new rules, restart ipchains by the following command.
-A input -p udp -s 0/0 -d 0/0 177 -j ACCEPT
# If you have set font server on Xconfig, add the following line.
-A input -p tcp -s 0/0 -d 0/0 7100 -j ACCEPT
# If you are to connect via xstart, add the following line(s).
-A input -p tcp -s 0/0 -d 0/0 telnet -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 ssh -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 login -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 exec -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 shell -j ACCEPT#/etc/init.d/ipchains restartTo check if all added rules are running in the system, use the following command#ipchains -L- iptables Configuration
Open /etc/sysconfig/iptables file and add the following lines.
<Make sure to type INPUT and ACCEPT in capitals.>
(*The lines in gray color are comments for the firewall rules and not necessary to be added into the file.)# If you want to use GNOME/KDE, add the following line.To apply the new rules, restart iptables by the following command.
-A INPUT -p udp --dport 177 -j ACCEPT
# If you have set font server on Xconfig, add the following line.
-A INPUT -p tcp --dport 7100 -j ACCEPT
# If you are to connect via xstart, add the following line(s).
-A INPUT -p tcp --dport telnet -j ACCEPT
-A INPUT -p tcp --dport ssh -j ACCEPT
-A INPUT -p tcp --dport login -j ACCEPT
-A INPUT -p tcp --dport exec -j ACCEPT
-A INPUT -p tcp --dport shell -j ACCEPT
#/etc/init.d/iptables restartTo check if all added rules are running in the system, use the following command.
#iptables -L- lokkit Configuration for RedHat 8, 9
In RedHat 8 or 9, you can configure the firewall using lokkit program. When you run lokkit, /etc/sysconfig/iptables ile is created.
Add the following lines in the beginning of the file.-A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 177 -j ACCEPTTo apply the new rules, restart iptables by the following command.
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 7100 --syn -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 22 --syn -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 23 --syn -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 512 --syn -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 513 --syn -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 514 --syn -j ACCEPT# /etc/init.d/iptables restart - ipchains Configurations