-   Linux - Security (
-   -   Allowing Remote Xsession (

sporks 07-05-2005 10:02 AM

Allowing Remote Xsession (Solved)
I've got my firewall set up on my Slackware box using Guarddog.

I'm using a remote Solaris host to run SAS on my laptop.

If I disable the firewall I can use SAS. Otherwise my firewall does it's job and the Solaris server can't find my computer.

What do I need to enable to pass through in order for this to work so I don't have to shut down the firewall to use SAS every time I need it?

Capt_Caveman 07-05-2005 10:37 AM

I'm not familiar with it, but find out which ports SAS uses. For most remote Xsessions this will be port 6000 but SAS may use something else so check its technical documentation. Then just punch the required ports through your firewall using a rule like this:

iptables -A INPUT -s -p tcp --dport XX -j ACCEPT

...where XX is the port that SAS uses and is the IP address of the remote system. Your firewall script should be available in /etc/rc.firewall.

sporks 07-05-2005 11:43 AM

I'll see what I can find.

I allowed remote X Sessions, that didn't do it. Perhaps it is a different port.


sporks 07-06-2005 11:22 AM


RTFM my friend. It's all in there.

Guarddog Manual
X Window System
In X Window System the notion of client and server is a bit backwards. The server is considered to be the machine running the X server program and displaying the screen and accepting user input. While the client is considered to be the remote program whose user interface is being displayed on the X server.
What this means is that you need to make sure that X is permitted to be served from the zone containing the machine showing the X display (the X server), to the zone containing the machines that actually run your programs (the clients).
Worked like a charm when I enabled X on the Client side not Internet side. :study:

Capt_Caveman 07-06-2005 03:25 PM

when all else fails, read the instructions. :)

sporks 07-06-2005 05:01 PM


Originally posted by Capt_Caveman
when all else fails, read the instructions. :)
Trick is knowing which manual. I read more stuff on SAS this AM on a Unix machine.... ;)

Capt_Caveman 07-06-2005 07:07 PM

Btw, is that SAS as in the Statistical Analysis Software or it something else?

Krugger 07-06-2005 07:35 PM

I had to use SAS once and it is a nightmare. I used it in windows and it was pretty bad. I ended up using excel as it was easier to use and you can just fake the OLAP cubes in it. ;)

sporks 07-07-2005 08:14 AM

Yup. It's SAS as in Statistical Analysis Software. That's why I provided a link in my first post. ;)

SAS for Windows isn't bad with Version 8 and beyond in my experience. I remember earlier versions of SAS for Windows that sucked.

This way though I can use the server's power not my own PCs for large data sets. Plus we don't have SAS for Linux available on campus.

All times are GMT -5. The time now is 05:58 PM.