Re: Xaccess config when VPN changes local IP

2007-04-29 Thread Holger Krull
Terrence Branscombe schrieb:

> When I establish a VPN connection to my work network from my Windows
> system at home the Windows host IP changes from 192.168.0.X to an IP

Check if
!DisplayManager.requestPort:0
is in your xdm-config. And check if xdm is really listening on Port udp/177.

> %RUN% XWin -ac -indirect %REMOTE_HOST% -from %LOCAL_HOST%
> where REMOTE_HOST is defined as my Debian hostname, and LOCAL_HOST is
> defined as my Windows hostname.

Are you sure you need indirect XDMCP and not just standard? (try -query
instead of -indirect).
Try the numeric ip addresses for REMOTE_HOST and LOCAL_HOST, LOCAL_HOST
needs to be the address send by the VPN gateway.

> I've tried redefining LOCAL_HOST to the
> IP address configured by the VPN gateway, and tried changing DISPLAY
> from localhost to the VPN-configured IP address as well.  The end result
> in all cases is the blank gray screen.

There is no need to set DISPLAY if you use XDMCP.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Xaccess config when VPN changes local IP

2007-04-29 Thread Terrence Branscombe
When I establish a VPN connection to my work network from my Windows 
system at home the Windows host IP changes from 192.168.0.X to an IP 
address sent from the VPN gateway.  I want to have graphical login 
access from this Windows system to my Debian system during these VPN 
connections, but I can't seem to find the magical incantation necessary.


The Debian system (and one other on my home LAN) provide XDM services to 
my Cygwin X server, but only when there is no VPN connection.  My 
/etc/X11/xdm/Xaccess file has only the following two entries activated:


*
*   CHOOSER BROADCAST

and my /etc/hosts.allow file contains these entries at the top of the file:

# Allow general access to LAN hosts
ALL:   127.0.0.1: allow
ALL:   192.168.0.   : allow

# Allow general access to LAN hosts during VPN connections
ALL:   xxx.yyy.zzz.   : allow

The command I start the X server with is this:

%RUN% XWin -ac -indirect %REMOTE_HOST% -from %LOCAL_HOST%
where REMOTE_HOST is defined as my Debian hostname, and LOCAL_HOST is 
defined as my Windows hostname.  I've tried redefining LOCAL_HOST to the 
IP address configured by the VPN gateway, and tried changing DISPLAY 
from localhost to the VPN-configured IP address as well.  The end result 
in all cases is the blank gray screen.


Any suggestions would be welcome!

Thanks,

--

Terry Branscombe
[skype me at 'tbranscombe']


smime.p7s
Description: S/MIME Cryptographic Signature