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: 192.168.0.5
Server IP: 192.168.0.1
Port: NNN

SpriAsked:
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.

smileCommented:
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.

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


hope that helps...
0
alcockbaCommented:
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.
0
jamesgCommented:
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.

ipmasqadsm
-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 192.168.1.1 1521 -L 192.168.1.5 1521

Hope that helps, if not ask again.
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
SpriAuthor Commented:
Thanx.
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.