Re: [CentOS] port mapping

2008-01-20 Thread Barry Brimer
Dear All, If I want to do a port mapping in Centos, what tools should I look for? Where can I get the information about how to set it up (how to, manuals)? Could you be more specific with your question? What kind of port mapping are you talking about?

[CentOS] port mapping

2008-01-20 Thread Sobari Tanuwijaya
Dear All, If I want to do a port mapping in Centos, what tools should I look for? Where can I get the information about how to set it up (how to, manuals)? Thanks. -- Tanu -- ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] port mapping

2008-01-20 Thread Sobari Tanuwijaya
Here is what I want to do: I installed a database server on centos, it has a private IP, the database server run on a certain port (for e.g. port ) From other place connected to the internet I try to do some kind of sync to the database server, so I think I have to set the port mapper in the

Re: [CentOS] port mapping

2008-01-20 Thread Barry Brimer
On Sun, 20 Jan 2008, Sobari Tanuwijaya wrote: Here is what I want to do: I installed a database server on centos, it has a private IP, the database server run on a certain port (for e.g. port ) From other place connected to the internet I try to do some kind of sync to the database

Re: [CentOS] port mapping

2008-01-20 Thread Sobari Tanuwijaya
Yes. I plan to use centos as the OS on the gateway server. Barry Brimer wrote: On Sun, 20 Jan 2008, Sobari Tanuwijaya wrote: Here is what I want to do: I installed a database server on centos, it has a private IP, the database server run on a certain port (for e.g. port ) From other

Re: [CentOS] port mapping

2008-01-20 Thread Barry Brimer
On Mon, 21 Jan 2008, Sobari Tanuwijaya wrote: Yes. I plan to use centos as the OS on the gateway server. Barry Brimer wrote: On Sun, 20 Jan 2008, Sobari Tanuwijaya wrote: Here is what I want to do: I installed a database server on centos, it has a private IP, the database server run

Re: [CentOS] port mapping

2008-01-20 Thread John R Pierce
Barry Brimer wrote: iptables -t nat -I PREROUTING -d public ip address of server -p tcp --dport -j DNAT --to private IP address of database server as most firewall rule sets have a default FORWARD rule of 'drop', this is also typically necessary... $IPTABLES -I FORWARD -i

Re: [CentOS] port mapping

2008-01-20 Thread Clint Dilks
Barry Brimer wrote: Dear All, If I want to do a port mapping in Centos, what tools should I look for? Where can I get the information about how to set it up (how to, manuals)? Could you be more specific with your question? What kind of port mapping are you talking about?

Re: [CentOS] port mapping

2008-01-20 Thread Sobari Tanuwijaya
Thanks for your help. I will try to do it in the server. Is there any document that should read about this? Barry Brimer wrote: Yes. I plan to use centos as the OS on the gateway server. Barry Brimer wrote: So you're trying to determine what you need to do to forward connections from your

Re: [CentOS] port mapping

2008-01-20 Thread Sobari Tanuwijaya
What is NM AP? (SOL) Clint Dilks wrote: Barry Brimer wrote: Dear All, If I want to do a port mapping in Centos, what tools should I look for? Where can I get the information about how to set it up (how to, manuals)? Assuming you actually mean port scanning NM AP may be a good choice

Re: [CentOS] port mapping

2008-01-20 Thread Sobari Tanuwijaya
Where should I put this? After the command Barry said for before? John R Pierce wrote: Barry Brimer wrote: iptables -t nat -I PREROUTING -d public ip address of server -p tcp --dport -j DNAT --to private IP address of database server as most firewall rule sets have a default FORWARD

Re: [CentOS] port mapping

2008-01-20 Thread John R Pierce
Sobari Tanuwijaya wrote: Where should I put this? After the command Barry said for before? it doesn't matter, its a rule in a different chain I recommend you read up on iptables and firewall rules to understand how it all works before attempting to apply any rule. good stuff here

Re: [CentOS] port mapping

2008-01-20 Thread Sobari Tanuwijaya
OK, thank you very much for your help. John R Pierce wrote: Sobari Tanuwijaya wrote: Where should I put this? After the command Barry said for before? it doesn't matter, its a rule in a different chain I recommend you read up on iptables and firewall rules to understand how it all works