Packet Forwarding

I am having a problem setting up part of firewall ocnfiguration.

Everything is working fine but now i need to forward all packets on a certain port to another IP on the internal network...
Internal IP:
Server IP:
Port: NNN

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.

Hi Spri,

sound more to be a routing question than a firewall problem.

I think, some words about the used system & software and the logical structure of your net will be needed to provide a sufficient answer.

SpriAuthor Commented:
Well the main server is my RH6.1 box(internal IP:, external IP: DHCP) and I have another server on the internal network that has internal ip of and I am routing my port 1521 traffic to that computer, it is running Oracle.

hope that helps...
You'll need to take a look at ipmasqadm with the portfw module. Also there's a few options that need to be compiled into the kernel.
Here's what you do:

ipmasqasdm -A portfw -p TCP/UDP -R x.x.x.x (port) -L x.x.x.x (port)

Let me break it down.

-A --adds a rule to the module
portfw --module which does port forwarding from one machine to another
-p --selects your protocol whether it be TCP or UDP
-R --remote address and port to forward from
-L --local address & port to forward packets from remote address to

so you would do:

ipmasqadm -A portfw -p TCP(? i dont know if oracle works on TCP or not) -R 1521 -L 1521

Hope that helps, if not ask again.

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
SpriAuthor Commented:
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.