Archive for the ‘TCP Gateway’ Category

TCPGate SOCKS

Posted: February 5, 2013 in TCP Gateway

Introduction

The TCPGate SOCKS (tgSOCKS) is a SOCKS4 and SOCKS5 server, it is built using the core modules of TCPGate.  It supports the following features:

  • SOCKS4, SOCKS4a CONNECT and BIND commands
  • SOCKS5 CONNECT, BIND and UDP ASSOCIATE commands
  • Authentication by SOCKS5 Username/Password
  • Authentication by TCPGate white list and black list filtering

64 bit Windows System 

  • For 64 bit Windows system, please follow the steps below
    •  Download and install the Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package MFC Security Update, http://www.microsoft.com/en-us/download/details.aspx?id=26347
    • Configure ODBC System DSN using
      C:\Windows\SysWOW64\odbcad32.exe
    • Stop the Windows firewall because it enables by default and I don’t have time to figure out what ports are required to open, you need to find it out yourself.

Installation of tgSOCKS 

  • Download the tgSOCKS zip file here.
  • Follow the steps below to install the software.
    • Extract all the files into directory c:\program files\tgSOCKS
    • Open Windows Command Prompt, enter the following commands to register the program as Windows Service
      • cd c:\program files\tgSOCKS
      • tgSOCKS -i
    • Open ODBC Setting, create a System DSN called TGSOCKSCFG for Microsoft Access Driver and point to tgSOCKS.mdb which is located in the directory c:\program files\tgSOCKS
    • TGSOCKSCFG
    • Start the Windows Service tgSOCKS
    • Telnet to localhost and port number 14007, enter username tcpgate and password tcpgate01 to access the program console
    • Enter the following command if you want to enable socks4
      • update parameter ss_v4_enabled true
      • Hint: you may experience a lot of traffic from unauthorized machines if you turn on this feature
    • Enter the following command if you want to enable no authentication in socks 5
      • update parameter ss_v5_no_auth_enabled true
      • Hint: you may experience a lot of traffic from unauthorized machines if you turn on this feature
    • Enter the following command to reload the configuration once you have made the change
      • reload
    • Enter the following command in the program console, you will receive debug information.
      • trace on asc
    • Enter the following command to add user
      • add socksuser 
      • Hint: the program will prompt you username, password and full name of the user.
    • Enter the following command to display user information
      • disp socksuser all
    • Enter the following command in the program console, you will get the help message.
      • help

Uninstallation

  • Stop the Window Service tgSOCKS
  • Open Windows Command Prompt, enter the following commands to uninstall the program from Windows Service
    • cd c:\program files\tgSOCKS
    • tgSOCKS -u

 

Advertisements

TcpGate

Posted: July 30, 2012 in TCP Gateway

Introduction

TcpGate is a proxy server that proxies client request to backend server. It plays as a port forwarding server between client and server. It has the following features:

  • Proxies TCP and UDP requests to backend server
  • Act as a simple HTTP proxy server
  • Maintains a whitelist and a blacklist for IP address pass through or blocking
  • Offers a telnet console for user, port mapping, whitelist and blacklist administration
  • Trace message contents between the clients and server
  • Log message contents in a file

Installation  (Win32)

  • Download the TcpGate zip file Win32 version here and Unix version here.
  • Follow the steps below to install the software.
    • Extract all the files into directory c:\program files\tcpgate
    • Open Windows Command Prompt, enter the following commands to register the program as Windows Service
      • cd c:\program files\tcpgate
      • tcpgate -i
    • Open ODBC Setting, create System DSN called TCPGATECFG for Microsoft Access Driver and point to tcpgate.mdb which is located in the directory c:\program files\tcpgate
    • Start the Windows Service tcpgate
    • Telnet to localhost and port number 14001, enter username tcpgate and password tcpgate01 to access the program console
    • Enter the following command in the program console, you will receive debug information
      • trace on asc
    • Enter the following command in the program console, you will get the help message
      • help

Usage

  • Proxies TCP request to backend server, type the command in the telnet console
    • add tcp 8000 10.10.10.10 8001
    • Hint: Listen port 8000, when traffics via 8000 will finally redirect to IP address 10.10.10.1o port 8001
  • Proxies TCP request to backup server when first server failed
    • add tcp 8000 10.10.10.10 8001 bkup 10.10.10.11 8001 10.10.10.12 8001
    • Hint: Two backup servers defined, they are 10.10.10.11 and 10.10.10.12
  • Act as a simple HTTP proxy server
    • add tcp 8080 * * http
  • Allows white listed IP address connect to the server
    • add whitelist 10.10.11.11 ClientMachine11
    • Hint: IP address 10.10.11.11 CAN connect to the server ports that defined by the server
  • Blocks black listed IP address
    • add blacklist 10.10.11.12 BadMachine12
    • Hint: IP address 10.10.11.12 CANNOT connect to the server ports that defined by the server
  • Log client and server messages to a file
    • log on c:\debug.txt
    • Hint: The file will be using by the program until the following command is entered
    • log off

Uninstallation

  • Stop the Window Service tcpgate
  • Open Windows Command Prompt, enter the following commands to uninstall the program from Windows Service
    • cd c:\program files\tcpgate
    • tcpgate -u