[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 250
  • Last Modified:

TCP Mapping

Because I wanted to learn Linux, I switch from a Windows NT Proxy/Firewall to a Linux based.  Among other things, with WinGate I could do tcp mapping.
From my client I would specify my proxy server with port 2000.  On the proxy it would forward it to my external SQL server on port 1500.  How could I do that on Linux.  I think I need to use portmap, but I don't understand it. I read the docs and didn't understand it.  Could someone tell me step by step what I need to do?  I'm running squid as my proxy on a RedHat 6.1.
0
ivanh
Asked:
ivanh
  • 3
  • 2
1 Solution
 
j2Commented:
portmap is not related to this.

You need ipchains, and ipmasqadm (aswell as ipportfw and ipautofw)

Squid is only a http / ftp proxy, and not a Socks Proxy.

For basic redirection, redir (available on http://sammy.net/~sammy/hacks/) is pretty slim and "impossible" to configure wrong.

http://www.redhat.com/mirrors/LDP/HOWTO/IP-Masquerade-HOWTO-6.html also have some good pointers.
0
 
ivanhAuthor Commented:
Good.  Last related question.  After reading the descriptions and some of the docs (keep in mind I have not completely read it yet) does this mean I do not need squid anymore?  
Almost sounds like IP Masquerading should be able to handle what the proxy did, except for caching.  If this is true, then I won't use squid and I'll just switch to this.  YES/NO?
0
 
j2Commented:
If you do not need caching you can loose squid.

(of cource, squid has better access control, if you need to block access to certain sites etc etc etc etc)
0
 
ivanhAuthor Commented:
Thanks.  Coming from an NT world, Linux/Unix definitely requires someone to understand more about what they are doing rather than using a GUI that does it for you.  It's forcing me to understand, which is good.
0
 
j2Commented:
I still prefer WinNT over linux when it comes to desktops / high end servers, but for the mid-range serving stuff (and networking, linux is a great platform)
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now