LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-15-2005, 03:06 PM   #1
servnov
Member
 
Registered: Sep 2004
Distribution: Slackware 10.2
Posts: 276

Rep: Reputation: 30
How to encrypt URLs?


How does one encrypt or otherwise scramble URLs so something like an ISP or IT staff can't read them?
 
Old 08-15-2005, 03:40 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
You generally can't - If the ISP or IT staff can't read them, neither can the destination server. One thing that you can do is encrypt the communications by using an intermediate machine.

For example, if you are at the office you can ssh into your home machine and tunnel X. Then open the web browser on your home machine, with the display on your office machine. You can then browse the web, while communications to-from your office remain (strongly) encrypted.

Doing this would require having or installing X on your office machine and setting up an ssh server on your home machine, all of which is freely available. There are many threads on both issues, so if this is a viable solution for you, search the forum.
 
Old 08-15-2005, 04:21 PM   #3
theToke
Newbie
 
Registered: Aug 2005
Location: Austin, TX
Distribution: Mandrake 9.1
Posts: 8

Rep: Reputation: 0
I definetly do not think any ISPs allow this
 
Old 08-15-2005, 07:14 PM   #4
servnov
Member
 
Registered: Sep 2004
Distribution: Slackware 10.2
Posts: 276

Original Poster
Rep: Reputation: 30
Ok, awesome. So I would basically have a 'shell' or 'capsule' with ssh over any communications?
 
Old 08-15-2005, 08:00 PM   #5
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Quote:
Originally posted by servnov
Ok, awesome. So I would basically have a 'shell' or 'capsule' with ssh over any communications?
Yes, ssh will provide an encrypted tunnel through which X applications can be run remotely.
 
Old 08-15-2005, 09:13 PM   #6
servnov
Member
 
Registered: Sep 2004
Distribution: Slackware 10.2
Posts: 276

Original Poster
Rep: Reputation: 30
An even trickier method could be running ssh as a client and server. Could one not ssh to localhost and run the apps through there to the same effect as logging into another machine?
 
Old 08-15-2005, 09:26 PM   #7
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Quote:
Originally posted by servnov
An even trickier method could be running ssh as a client and server. Could one not ssh to localhost and run the apps through there to the same effect as logging into another machine?
No, the encyption is then only over the local tcp connection (on machine1). The http requests that leave the machine are not encrypted in that case.
 
Old 08-15-2005, 09:27 PM   #8
Kdr Kane
Member
 
Registered: Jan 2005
Distribution: SUSE, LFS
Posts: 357

Rep: Reputation: 30
Or you could google for "anonymizer".
 
Old 08-15-2005, 09:29 PM   #9
servnov
Member
 
Registered: Sep 2004
Distribution: Slackware 10.2
Posts: 276

Original Poster
Rep: Reputation: 30
ok, would it work if connecting to the external IP instead of localhost? by the way, thanks for help
 
Old 08-15-2005, 10:19 PM   #10
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Quote:
Originally posted by servnov
ok, would it work if connecting to the external IP instead of localhost? by the way, thanks for help
No, if by external IP you mean the IP address of machine1 outside the NAT.

Think about the path of the data. From the web browser to the web server, the data is not encrypted (assuming that you're not using an SSL transaction). From the SSH client to the SSH server, the data is encrypted. If the encrypted portion of the data path ends on machine1, then the browser running on machine1 will be sending unencrypted data from machine1.

The scenario I described in my original post will work because the encryption ends on machine2. The data from machine2 to the web server is then unencrypted. Assuming machine2 is at your home (or any remote location outside the domain of machine1), then those monitoring machine1 have no visibility to the data from machine2 to the web server. They can only see the encrypted stream leaving machine1. To further obscure this, you can put the SSH server running on machine2 on port 443 (the web server SSL port). The ssh session will then look like a (very long) SSL transaction with a web server to any monitoring equipment watching machine1. In that case, you need to specify the port with SSH:

ssh -p443 -Y userid@machine2

Last edited by macemoneta; 08-15-2005 at 10:20 PM.
 
  


Reply



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
encrypt and decrypt using encrypt(char block[64], int edflag) rockwell_001 Linux - Security 3 08-30-2009 09:16 AM
How do I encrypt a drive? tmckee Linux - Security 3 07-24-2005 03:18 PM
how to check urls and stop internet urls in network gface Linux - Networking 5 03-24-2005 09:48 PM
crypt vs encrypt liguorir Linux - Software 3 05-20-2004 10:38 PM
Encrypt vivekind Linux - General 1 01-16-2002 03:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:23 PM.

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
Open Source Consulting | Domain Registration