LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-25-2018, 02:17 PM   #1
nix84
Member
 
Registered: Apr 2014
Posts: 276

Rep: Reputation: Disabled
Ad HOC ENCRYPTION


Built ad hoc network startup scripts (works) but as much as I have read cannot determine how the encryption key functions nor how a transmitting node can determine which port a receiving port has implemented without prior verbal agreement. I intend to add VOIP so would like to "dial up" with a one ringy dingy at least.
I just learned from one site that this is done by using identical means of encrypting and decrypting but this is not making sense to me if it is as claimed to be "somewhat" secure (wep vs wpa). Brief explanation is OK or a http.
 
Old 09-25-2018, 10:32 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
You mention ports and encryption. What protocol are you talking about?

How the encryption key functions? To set up a connection, you use a key pair - you keep your private key, the other side gets your public key. And vice-versa. Data is encrypted with the public key and decrypted with the private key. Since this is CPU-intensive, the parties then exchange symmetric keys over the secure channel they created with the key pair. A new channel is set up, and the same key is used for encryption and decryption.

How does a transmitting node know the port that the other side uses? By convention, and/or it's hard-coded. Some protocols feature something like a port discovery, but for the first contact to the other party, you always need to know what port they use.

Can you share that site that you mention?

I don't understand the references to WEP and WPA, which are methods for making wireless connections secure, and I don't know what you mean by Brief explanation is OK or a http.
 
Old 09-26-2018, 04:11 PM   #3
nix84
Member
 
Registered: Apr 2014
Posts: 276

Original Poster
Rep: Reputation: Disabled
@berndbausch: you are describing WPA password for an Access Point. I am using ad Hoc which has a single encryption key and is WEP which I accept is poor security. From what I gather it is either 5 alpha numerics, 13 hex or (recall poor on this) of 26 hex characters exactly. That I am certain of. What I do not understand is IF it is for data encryption I would presume that both parties know the key, ah priori. How else would the receiver unencrypt data??? What I am after is EXACTLY what is the "KEY", password or encrypter??? If the latter how can the receiver know how to decrypt info, unless the decryption uses real magic to do multiple decryptions until it discovers the "KEY" that works (ah! howto hack).

Currently planning on setting up a KNOWN port in which to leave port numbers of the receiver for the sender to use else will use dual ports one to send the other to receive.

Don't have sights anymore and there were in excess of 20.
 
  


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
How to have luks encryption with keyfile OR passphrase (efi full disk encryption including boot)? byroncollege Linux - Security 2 03-30-2017 07:45 AM
[SOLVED] Non-system partition encryption versus container-file encryption of equal size Ulysses_ Linux - Security 13 07-17-2015 07:38 PM
Linux password encryption and data encryption Tux-Slack Programming 4 06-20-2007 06:46 AM
Ad-hoc novis Linux - Wireless Networking 1 05-23-2006 01:07 PM
Mandrake 9.0 Wireless Works without encryption.. does not with encryption topcat Linux - Wireless Networking 3 05-04-2003 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:28 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