LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 07-19-2007, 11:44 PM   #1
natv
Member
 
Registered: Mar 2006
Posts: 59

Rep: Reputation: 15
Question Proxy server or VPN?


Hi guys,

Ok here's what I'm trying to achieve... I'm in IT (tech support), and my job lets me work remote from my home.

They have to input my home IP addresses on their servers, so that I can access certain internal web sites, and access their main SSH server where I then have access to other servers.

I have 2 ISP connections. The cable connection keeps it's IP for a long enough time that it's not a hassle to have my work add my new IP when it changes, as it doesn't happen that often (every month or so)

My other connection (Verizon broadband PC card, for my laptop) picks it up a new IP every time it disconnects, which can be several times per day! So here is what I'm trying to do:

I have a centos linux VPS server at a collocation center that has a dedicated IP. I've already given that IP to my work so they have granted it access.

I'm trying now to set up (not sure which will work best), either a PROXY server or VPN, so that when I am on my laptop, both Firefox and Putty will tunnel through my VPS server, so that I am accessing my work's internal web site and SSH service via my VPS IP address.

(by the way, I told my work I'm trying to set up a proxy server to tunnel through to solve the changing IP address issue, they are OK with this)


I did something but I think either I misunderstood that it would work or I didn't do it right. I set up squid on my VPS, and I set up Putty to use my SSH connection as a tunnel. I then set up Firefox to use my proxy server.

But I think it's only doing caching. The /var/log/squid/store.log on the server starts logging when I start using firefox with the proxy set. BUT - when I check my IP using www.whatismyip.com, it's not showing my VPS server IP, it's showing my Verizon IP.


So, I'm not sure if I'm 95% of the way there and I can achieve what I'm trying to with Squid, or if should be doing something else, perhaps some kind of VPN connection to my VPS server?

Can I tunnel through squid so that my IP will be my VPS server?

If so, what solution and software do you recommend?


Thanks
Nat
 
Old 07-22-2007, 08:51 PM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
It's been almost 3 days, so . . .

I would think VPN is the right choice.

AFAIK, Squid is for proxying between a LAN & the Web. Lots of features for controlling access & protecting users, as well as caching. But I don't think that's what you need here.

BTW, why all the to-do about IP's? As I understand VPN, it's no more secure going through your VPS than directly to work. Maybe less secure. Why won't they let you just VPN in w/ the laptop? There ought to be enough authentication in the VPN sign in to make the IP address irrelevant.
 
Old 07-22-2007, 10:03 PM   #3
natv
Member
 
Registered: Mar 2006
Posts: 59

Original Poster
Rep: Reputation: 15
Hi

Thanks for the reply. My work blocks out everything at the firewall on our internal sites, and only allows certain IPs (employees)

So would a VPN between my laptop and my virtual server, allow me to to connect to my work via my server so that it's as if I'm connectiong from my server IP? (from my laptop)

As far as my understanding of VPNs, it would basically feel like I'm directly networked to my virtual server, but I'm not clear on what the next step would then be to connect through that server via my Laptop (HTTP and SSH protocols), or at least HTTP.


Or, is there some kind of proxy solution (not squid then if it can't do what I need) that would enable my laptop to connect via my virtual server as the proxy?



Thanks
Nat
 
Old 07-23-2007, 02:05 PM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
accessing my work's internal web site and SSH service via my VPS IP address
I assume that the above represents 2 needs & is the core of your problem.

ssh is easy: it "chains" -- i.e. you can ssh (or PuTTY) into your VPS & then ssh from there to work. If lynx (or links) is good enough, you could then browse the internal web site from the shell.

I don't know if VPN can "chain" the way ssh can, never tried it. I'd like to think so, but . . .
 
Old 07-24-2007, 07:26 AM   #5
natv
Member
 
Registered: Mar 2006
Posts: 59

Original Poster
Rep: Reputation: 15
Hi

Yes, I can SSH from my vps server to my work's ssh server, that works fine so I don't necessarily need a proxy server for SSH.

For httpd however I do, as I need to use Firefox or MSIE locally and have "my ip address" show as the IP of my vps server.


So, if I simplify things and only proxy httpd, what do you guys recommend? My vps server is a web server, so I can't do anything to it that will prevent it from serving web pages. As I mentioned before I did install and configure squid on it, but when I configure firefox to use the squid proxy whatismyip.com still shows my local IP and not the server IP.


Nat
 
  


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
Configure Linux VPN Server for a Windows VPN Client xbaez Linux - Networking 4 04-28-2006 04:29 PM
VPN: linux VPN server behind Linksys router hamish Linux - Networking 14 08-25-2005 09:42 PM
VPN Proxy HDD Linux - Networking 2 08-16-2004 06:30 PM
VPN Question Win98->internet->Router->Linux VPN Server->Win2k Server patrickrea Linux - Networking 1 08-10-2004 03:09 AM
How do i connect Ciscos VPN client to Checkpoint VPN server Klas Linux - Networking 1 11-29-2003 09:00 AM


All times are GMT -5. The time now is 02:26 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration