[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Packet Forwarding

Posted on 2000-01-09
5
Medium Priority
?
207 Views
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: 192.168.0.5
Server IP: 192.168.0.1
Port: NNN

0
Comment
Question by:Spri
5 Comments
 
LVL 1

Expert Comment

by:smile
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.

0
 

Author Comment

by:Spri
ID: 2338570
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
 
LVL 1

Expert Comment

by:alcockba
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.
0
 

Accepted Solution

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

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
 

Author Comment

by:Spri
ID: 2342753
Thanx.
0

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