[Webinar] Streamline your web hosting managementRegister Today


Packet Forwarding

Posted on 2000-01-09
Medium Priority
Last Modified: 2012-05-04
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

Question by:Spri

Expert Comment

ID: 2338054
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.


Author Comment

ID: 2338570
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...

Expert Comment

ID: 2340269
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.

Accepted Solution

jamesg earned 200 total points
ID: 2340350
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.

Author Comment

ID: 2342753

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Get the source code for a fully functional Access application shell with several popular security features that Access VBA application developers desire, but find difficult or impossible to figure out how to code. You get the source code for managi…
Suggested Courses

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question