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.
LVL 1
ivanhAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.