LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-24-2001, 05:19 PM   #1
ChaosX2
Member
 
Registered: Aug 2001
Location: Sacramento, CA
Distribution: Gentoo 1.4+
Posts: 195

Rep: Reputation: 30
Question Port mapping problem


Here is a rough idea of how my home network is configured.

Code:
	     Internet
                |
                |
                | 
                |
                | 65.xxx.xxx.xxx
              Router
                | 192.168.254.254
                |
        -----------------
        |               |
        |               |
        |               |
        |               |
     WinXp          Red Hat 7.2
192.168.254.35  192.168.254.221
I have port 80 being mapped to my linux machine. The problem I am having is from the internet the port mapping is working just fine. But if I try to connect to 65.xxx.xxx.xxx from my local network it doesn't seem to take me to my linux webserver. Does anyone know a way to fix this? Any ideas or suggestions?
 
Old 11-24-2001, 07:44 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I guess you have something like this...

iptables -t nat -A PREROUTING -p TCP -s 0/0 --dport 80 -j DNAT --to 192.168.254.221
 
Old 11-24-2001, 10:07 PM   #3
ChaosX2
Member
 
Registered: Aug 2001
Location: Sacramento, CA
Distribution: Gentoo 1.4+
Posts: 195

Original Poster
Rep: Reputation: 30
Didn't seem to work

Still when I type http://65.12.101.96 in my web browser it still doesn't seem to work.
 
Old 11-24-2001, 10:12 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
You say it is forwarding from the internet side ok, but not from the internal machines. This sounds like the forwarding is being done on the input of the internet interface.


can you post your rules so someone may be able to help you out.
 
Old 11-25-2001, 12:17 AM   #5
ChaosX2
Member
 
Registered: Aug 2001
Location: Sacramento, CA
Distribution: Gentoo 1.4+
Posts: 195

Original Poster
Rep: Reputation: 30
Well the router is doing the port forwarding so I have no rules setup.

But I want to be able to see the webpage from both the the XP machine and the Linux machine. It seems that the forwarding is working from the internet but not from my internal network.
 
Old 11-25-2001, 02:38 AM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
how about typing the inter address of the web server?
 
Old 11-25-2001, 02:44 AM   #7
ChaosX2
Member
 
Registered: Aug 2001
Location: Sacramento, CA
Distribution: Gentoo 1.4+
Posts: 195

Original Poster
Rep: Reputation: 30
Well the webserver is using 192.168.254.221 locally but 65.12.101.96 is my internet IP address. My router is setup so that when you go to 65.12.101.96 on port 80 it takes you to my internal 192.168.254.221, but for some reason when I go to 65.12.101.96 on my local network it doesn't forward me to 192.168.254.221. For anyone outside my network it works fine. Any solution?
 
  


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
port mapping shoaib Linux - Networking 4 10-09-2004 01:51 PM
ADSL port mapping 25 110 madunix Linux - Networking 0 03-10-2004 02:58 AM
Port Forwarding/Mapping jmosher Linux - General 0 07-15-2003 09:52 AM
IPTables - again (port mapping) davebarnes Linux - Security 2 09-23-2002 07:48 AM
Port Routing/mapping Fuigus Linux - Networking 1 09-14-2001 04:29 AM

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

All times are GMT -5. The time now is 11:24 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