LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-07-2008, 08:13 PM   #1
redir
Member
 
Registered: May 2004
Location: Virginia USA
Distribution: Debian_Ubuntu_FreeBSD
Posts: 110

Rep: Reputation: 15
Ubunto VPN to MS network successful but now what? Need to use Terminal Server Client


I'm a vpn linux newb so here goes.

I am running Ubuntu 7.10 on my lap top here in San Fransisco and would like to VPN into my work network back in Virginia. I have VMware running Win XP just for such occasions but want to see if I can get this running on Ubuntu.

Inside my network I can run the Terminal Server Client(TSC) and connect to any computer I want. Out side the network I can connect with Windows remote desktop.

So here I am outside my network with my Ubuntu lap top and have the VPN connection set up which works. I can make a VPN connection but I cannot browse my network or resolve names using the TSC.

I'm guessing it has to do with some authentication settings and or routing properties. If anyone has solved this (and I am sure some of you have ) then please let me know.

Thanks in advance to all my LQ friends.

Regards.

redir
 
Old 08-08-2008, 02:15 PM   #2
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Quote:
So here I am outside my network with my Ubuntu lap top and have the VPN connection set up which works. I can make a VPN connection but I cannot browse my network or resolve names using the TSC.
I think you are not able to get the DNS pushed out from the openvpn server. Try putting the the TSC DNS server entry in your resolv.conf and then see whether it works or not.

Regards,

--
Prasanta
 
Old 08-08-2008, 02:38 PM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
did you try using the rdesktop client in Ubuntu to connect to your remote windows machines after you'e established your VPN connection ?
I use rdesktop on my Linux box at work to connect to my Windows servers all the time.

I would love to be able to use rdesktop from home, but alas Checkpoint doesn't have a VPN client that runs on Linux..


I'm not sure from your post if you are establishing the VPN connection from the Linux box or from the Windows VMware client back to your office network. if it's from the Linux box give rdesktop a shot.

Last edited by farslayer; 08-08-2008 at 02:40 PM.
 
Old 08-08-2008, 08:35 PM   #4
redir
Member
 
Registered: May 2004
Location: Virginia USA
Distribution: Debian_Ubuntu_FreeBSD
Posts: 110

Original Poster
Rep: Reputation: 15
thanks for your replies. Funny thing is when I dig for my computer by name, I got the IP of one of the computers on the network which I used TSC to get to (I do not admin this network so I can only guess this computer is a firewall or dmz, since I have super user log in I was able to connect). Then I ping my computer for the IP, write it down, and disconnect. Then I used my IP in the TSC nd I was able to get on. resolve.conf has the IP's of my Windows DNS.

To be clear. I am using a Ubuntu lap top outside my Windows network trying to connect to the Win network.

jmckenna@jmckenna-laptop:~$ cat /etc/resolv.conf
# generated by NetworkManager, do not edit!



nameserver 172.16.4.20
nameserver 172.16.4.32


jmckenna@jmckenna-laptop:~$
jmckenna@jmckenna-laptop:~$ dig jmckenna-vm-xp

; <<>> DiG 9.4.1-P1 <<>> jmckenna-vm-xp
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 51541
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;jmckenna-vm-xp. IN A

;; Query time: 86 msec
;; SERVER: 172.16.4.20#53(172.16.4.20)
;; WHEN: Fri Aug 8 21:30:20 2008
;; MSG SIZE rcvd: 32

jmckenna@jmckenna-laptop:~$

thanks all...
 
Old 08-08-2008, 10:51 PM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by redir View Post
Funny thing is when I dig for my computer by name, I got the IP of one of the computers on the network which I used TSC to get to .
.
.
.
IP's of my Windows DNS.

To be clear. I am using a Ubuntu lap top outside my Windows network trying to connect to the Win network.

jmckenna@jmckenna-laptop:~$ cat /etc/resolv.conf
# generated by NetworkManager, do not edit!



nameserver 172.16.4.20
nameserver 172.16.4.32


jmckenna@jmckenna-laptop:~$
jmckenna@jmckenna-laptop:~$ dig jmckenna-vm-xp

; <<>> DiG 9.4.1-P1 <<>> jmckenna-vm-xp
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 51541
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;jmckenna-vm-xp. IN A

;; Query time: 86 msec
;; SERVER: 172.16.4.20#53(172.16.4.20)
;; WHEN: Fri Aug 8 21:30:20 2008
;; MSG SIZE rcvd: 32

jmckenna@jmckenna-laptop:~$

thanks all...
actually when you dug, you got NO answer, the query failed..

When you use dig, you should try the fqdn of the PC, not just it's host name..

dig jmckenna-vm-xp.mycompany.com

Last edited by farslayer; 08-08-2008 at 10:57 PM.
 
Old 08-09-2008, 02:08 AM   #6
redir
Member
 
Registered: May 2004
Location: Virginia USA
Distribution: Debian_Ubuntu_FreeBSD
Posts: 110

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by farslayer View Post
actually when you dug, you got NO answer, the query failed..

When you use dig, you should try the fqdn of the PC, not just it's host name..

dig jmckenna-vm-xp.mycompany.com
yeah I did notice that but note the IP that was given in the dig query. That IP (172.16.4.20) I used with the TSC and I was able to connect to the computer 172.16.4.20.

I do not admin this net work so I don't know what that computer is? I assumed it was a DMZ. Since I have the admin username/password I was able to log on to that computer, then ping mine to get the IP. Once I had my IP I was then able to use the TSC to access my desktop.

So basically in a nut shell I am able to make a VPN connection but cannot resolve host names.

I'll have to try the FQDN.

Thanks so much for your time.
 
Old 08-09-2008, 08:57 AM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
That computer is the primary DNS server on your network... look at your resolv.conf file.

Quote:
;; SERVER: 172.16.4.20#53(172.16.4.20)
it's telling you what server it queried for the DNS result, and which port it used to ask the question. port 53 is DNS.
 
Old 08-09-2008, 10:00 AM   #8
redir
Member
 
Registered: May 2004
Location: Virginia USA
Distribution: Debian_Ubuntu_FreeBSD
Posts: 110

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by farslayer View Post
That computer is the primary DNS server on your network... look at your resolv.conf file.


it's telling you what server it queried for the DNS result, and which port it used to ask the question. port 53 is DNS.
Oh ok thanks farslayer...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN client to windows VPN server fj8283888 Linux - Networking 6 04-10-2007 04:17 AM
Configure Linux VPN Server for a Windows VPN Client xbaez Linux - Networking 4 04-28-2006 03:29 PM
VPN client to connect to my school's network lowpro2k3 Linux - Networking 2 09-01-2005 09:10 PM
Client connecting to network via VPN mbourne Linux - Security 1 10-13-2004 09:52 AM
How do i connect Ciscos VPN client to Checkpoint VPN server Klas Linux - Networking 1 11-29-2003 08:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration