Jump to content

Simple client & server packet forwarding (Tunneling)


Pejman
 Share

Recommended Posts

Hello,

 

I have a proxy program like below

User <-> Client <-> Server <-> Internet

but it's unsecure, and firewalls detects it and drop connection. I want to encrypt connection with below way.

User <-> Client <-> Tunnel client <-encrypted-> Tunnel Server <-decrypted->  Server <-> Internet

Is there any sample script that could handle this job? it must be reliable and really optimized and fast

Link to comment
Share on other sites

You can script in the addition of the firewall exceptions...that would be required...google that, but you can do it via command line (would need to run as admin and use exec()).  Be safe, and only allow the proper route and port depending on if you are listening or sending.

Then, you can use TCPIP functions...one as an example:

TCPConnect

You can use the the crypt udf to encrypt/decrypt

_Crypt_Startup
_Crypt_DeriveKey
_Crypt_EncryptData
_Crypt_Shutdown

Of course, the key you make to use for encryption will never truly be safe from prying eyes that decompile your script.

Edited by jdelaney
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Link to comment
Share on other sites

From your scheme, I fail to see how using encryption after client and before server would make a difference.

Also and again according to your scheme, you seem to consider the LAN part of your organization as insecure and the Internet as secure, which is something that I don't fully understand.

Finally, where do you think the blocking firewall resides?

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...