Fedora Linux Support Community & Resources Center
  #1  
Old 3rd March 2009, 09:35 AM
mirza76 Offline
Registered User
 
Join Date: Mar 2009
Posts: 10
Open port view from outside

Hi all,

How can i access webpage from WAN?

I have two computers which is desktop and other is server (Fedora 10). Fedora webroot is /var/www/html/. company is page for view.

IP Desktop - 192.168.0.174
IP Fedora (server) - 192.168.0.2

So i can access from desktop by type in url http://192.168.0.2/company. I can view succesfully this page via LAN.

I'm using wireless router DI524 and already setting DynDNS.org, so i can access my router from WAN (if local http://192.168.0.1) by type in XXXX.homeftp.org

Other setting on DI524:
192.168.0.2 both UDP/TCP port 21 (ftp)
192.168.0.2 both UDP/TCP port 23 (telnet)
192.168.0.2 both UDP/TCP port 22 (ssh)

all this setting it's working by type in from command prompt telnet XXXX.homeftp.org, ftp XXXX.homeftp.org and putty for ssh.

1. What i need to do in my router?
2. What i need to configure on my server fedora? httpd.conf?
*note httpd.conf just add in Listen 8080 but it not working

i want it work on http://xxxxx.homeftp.org:8080/comapny

Anyone can help me?
Reply With Quote
  #2  
Old 3rd March 2009, 09:42 AM
johno12345's Avatar
johno12345 Offline
Registered User
 
Join Date: Jun 2004
Location: Lancashire, UK
Posts: 332
You need to allow port 8080 on your router to forward to 192.168.0.2

but you will need to turn off remote management from your router (not a good idea anyway)
__________________
Running Fedora since FC1, running Redhat since 5(not EL).
Registered Linux user number 485853
Rossendale and East Lancashire (UK) LUG http://www.rosslug.org.uk
Reply With Quote
  #3  
Old 3rd March 2009, 10:02 AM
mirza76 Offline
Registered User
 
Join Date: Mar 2009
Posts: 10
Open port view from outside

How about i open another port 8081?

In my router DI-524 (this is configuration in my router)

Virtual Server
Virtual Server is used to allow Internet users access to LAN services.

choose Enable option
Name = Fedora Web
Private IP = 192.168.0.2
Protocol type = Both
Private Port = 8081
Public Port = 8081
Schedule = Always

It can be done only in my router not touch on Fedora 10 configuration?
Reply With Quote
  #4  
Old 3rd March 2009, 10:34 AM
johno12345's Avatar
johno12345 Offline
Registered User
 
Join Date: Jun 2004
Location: Lancashire, UK
Posts: 332
yes if you open port 8081 and forward it to 8080 on your 192.168.0.2 host

set public port to 8081 and private port to 8080

then access from outside with http://xxx.homeftp.org:8081

this should work... doesn't matter what you do on your fedora 10 box if you haven't created a route in on your firewall.
__________________
Running Fedora since FC1, running Redhat since 5(not EL).
Registered Linux user number 485853
Rossendale and East Lancashire (UK) LUG http://www.rosslug.org.uk
Reply With Quote
  #5  
Old 3rd March 2009, 12:35 PM
mirza76 Offline
Registered User
 
Join Date: Mar 2009
Posts: 10
Open port view from outside

Still not working... do you have email address becasue i want send some attachment to review
Reply With Quote
  #6  
Old 3rd March 2009, 01:27 PM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
Quote:
Originally Posted by http://forums.fedoraforum.org/showpost.php?p=947644&postcount=2
2.) Setup port forwarding in router:

This step is probably the most important. Basically, it will route all incoming web server requests to the correct computer by forwarding port 80 using both TCP and UDP protocols to the IP address of your computer (web server). I’m not going to explicitly list all instructions in this tutorial, but I will lead you to a great guide for the popular routers:

http://www.portforward.com/english/r...outerindex.htm

*If you choose this link, you’ll have to first select your router model number from the list, and then choose “HTTP” from the list that follows.

3.) Setup firewall to allow HTTP (Port 80) traffic:

In Fedora 8 Linux, this port is blocked by default and needs to be opened. Goto System -> Administration -> Firewall. You will be asked for you password to run as a privileged user (root). Once you’re here, scroll down and find the HTTP entry and put a check mark next to it to allow HTTP traffic through (as show below).



4.) Test to see if port forwarding has worked:

This is an important step as well. Goto the “CanYouSeeMe” port checker by going to http://www.canyouseeme.org and in the “What Port” box, type in “80″, and click “Check”. You should see a message that states
Quote:
“Success: I can see your service on <your ip address> on port (80)”.
If you don’t, go back and check that 1.) you have the HTTP service enabled and running in the background by going to System -> Administration -> Services and look for “httpd”, 2.) the correct ports are forwarded to the correct IP address of your computer and they are enabled, and finally, 3.) make sure your firewall has allowed HTTP traffic.

5.) Test the server (Apache) by visiting your external IP address:

Goto www.whatismyip.org and get your IP address. Then copy/paste it into your browser (Firefox) and see if you get the default Apache test page. If you see something similar to the following screenshot, then you’ve gotten your web server setup properly!
http://forums.fedoraforum.org/showpo...44&postcount=2
__________________
My Hardware
- CPU: AMD Phenom II X6 Hex Core 1055T 95W Edition @3.5Ghz
- Motherboard: Gigabyte GA-880GM-UD2H
- Cooler: Corsair H50 CPU Cooler
- RAM: Corsair Dominator 8GB (4x2GB) DDR3 1600MHz
- Graphics: Gigabyte GeForce GTS 450 OC 1024MB GDDR5
Reply With Quote
  #7  
Old 4th March 2009, 04:47 AM
marcrblevins's Avatar
marcrblevins Offline
Registered User
 
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168
Might want to run Shield's Up at www.grc.com, that would tell you the ports open from outside.

Can run:
Code:
host kiriyamablevins.dyndns.org
That gets my current public IP address from dyndns.org.
Then I run firefox on:
http://www.dslreports.com/whois
That gives me the public IP address, not from dyndns.org.
If both public IP address don't match, then you need to use ddclient service cause you maybe using dynamic IP, not static IP.
Search the forum for ddclient. I use that with dyndns.org.
Reply With Quote
  #8  
Old 6th March 2009, 08:21 AM
johno12345's Avatar
johno12345 Offline
Registered User
 
Join Date: Jun 2004
Location: Lancashire, UK
Posts: 332
Have you had any joy?

can you see the page internally? ie. on other PC's inside your network?
__________________
Running Fedora since FC1, running Redhat since 5(not EL).
Registered Linux user number 485853
Rossendale and East Lancashire (UK) LUG http://www.rosslug.org.uk
Reply With Quote
Reply

Tags
open, port, view

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
open port 22 on tcp hm4288 Security and Privacy 4 26th March 2006 10:41 AM
how to open port 25 sukarso Servers & Networking 11 5th August 2005 12:44 PM
how to open dns port rolando Security and Privacy 2 3rd May 2005 04:32 PM
Which is better....open port or open service? backroger Security and Privacy 12 20th February 2005 12:49 PM


Current GMT-time: 02:54 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat