LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-01-2008, 07:14 AM   #1
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Rep: Reputation: 78
Forwarding ports to my server


Hello to all.
I get into troubles.
I need to put my "ready to run" server into a private local network in a school, for mail, http... etc.
I asked the Internet Service Provider to forward the needed ports:
22,25,53,80,110,143,465,993,995 to this server.

The server is on the LAN 10.4.46.x with IP adress 10.4.46.2.

I requested the ISP to forward this ports from public static IP 87.147.20.12 to my Local. (server)

They answered something what I don't really understand:

These forwards are active right now on the ISPs cisco router.

ip nat translation tcp-timeout 600
ip nat pool Dynamic 87.147.20.12 87.147.20.12 netmask 255.255.255.248
ip nat pool NATPOOL 87.147.20.12 87.147.20.12 netmask 255.255.255.248
ip nat inside source list 105 pool Dynamic overload
ip nat inside source list NAT pool NATPOOL overload
ip nat inside source static 10.4.46.10 87.147.20.12 extendable
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer0


They asked me if I want to remove all of this and make a port redirection from the Public IP to my private IP (server).

I believe that there is some range of Public IPs which can be used. But I didn't really understand this printout.

I know it is difficult to help without knowing the exact network structure but any suggestion may help.

Thank you very much!

Last edited by hua; 04-01-2008 at 07:15 AM.
 
Old 04-01-2008, 04:23 PM   #2
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
Here is an example howto forward a port on a cisco router.

http://www.laplink.com/support/kb/article.asp?id=45
 
Old 04-02-2008, 04:05 AM   #3
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Original Poster
Rep: Reputation: 78
It seems that this connection has two public IPs.

I make mistake in line:
ip nat inside source static 10.4.46.10 87.147.20.12 extendable
It should be:
ip nat inside source static 10.4.46.10 87.147.20.13 extendable

It seems that the router is configured for another Public ip which is directed to 10.4.46.10.

I have no access to this cisco router, it manages the ISP who makes free internet connection for schools. And the cooperation with this ISP is realy hard.

Last edited by hua; 04-02-2008 at 06:36 AM.
 
Old 04-02-2008, 06:03 AM   #4
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
Quote:
Originally Posted by hua View Post
ip nat inside source static 10.4.46.10 87.147.20.12 extendable
this method will redirect a single public IP into a single LAN IP host - means all port 1 to 65335 from your 87.147.20.12 public IP will be redirect to your 10.4.46.10 server.

Quote:
They asked me if I want to remove all of this and make a port redirection from the Public IP to my private IP (server).
this example will redirect certain port from your public IP to port on your server , and let other ports stay closed :

ip nat inside source static 10.4.46.10 25 87.147.20.2 25 extend --> smtp
ip nat inside source static 10.4.46.10 110 87.147.20.2 110 extend --> pop
ip nat inside source static 10.4.46.10 995 87.147.20.2 995 extend --> pop3s
ip nat inside source static 10.4.46.10 80 87.147.20.2 80 extend --> www
ip nat inside source static 10.4.46.10 443 87.147.20.2 443 extend --> https

Quote:
Thank you very much!
you are very welcome.

HTH.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Forwarding Ports cicca82 Linux - Networking 11 12-06-2007 10:16 AM
Forwarding Ports on DSL modem to IPCOP box, then Internal Web Server benmay05 Linux - Networking 2 05-07-2007 03:34 AM
forwarding ports fc5 for server pula0r Linux - Networking 5 09-12-2006 01:21 PM
Ports not forwarding with pf linuxpyro *BSD 1 02-16-2006 06:09 PM
Forwarding ports Xenocide Linux - Networking 0 12-29-2003 05:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration