Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th July 2010, 03:34 AM
chronmon Offline
Registered User
 
Join Date: Jul 2010
Posts: 11
macosfirefox
Accessing a fedora server from the internet

Okay, I new here and I not exactly sure where I should post this question, but I'm posting it here causes this sounds like the right place for it.

I'm currently running a fedora 13 server, the only services right now are ssh and apache. I can access and use the services on my local network, but I cannot probably due to many problems which I don't understand... yet. Anyway I was wondering how would I go about allowing this server to be accessed from the internet. (ie I want to be able to update from the library/classroom at school)

---------- Post added at 06:34 PM CDT ---------- Previous post was at 06:24 PM CDT ----------

Um my bad just looked at the stickied post and my questions were answered
Reply With Quote
  #2  
Old 7th July 2010, 04:56 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
linuxfedorafirefox
Re: Accessing a fedora server from the internet

A local home or sosho usually uses a provare LAN address. These IP addresses usually begin with
192.168.x.x
172.16-31.x.x
10.x.x.x

But to access a system from across the internet you need to have a PUBLIC IP address.

All ISPs (afaik) give your home one single public IP address. Then either they supply a router or else the user provides a router if you have more than one home system to connect.

To determine your public IP address, goto this website http://www.whatismyip.com/ from your Fedora system's browser.
To detemine your private IP address (if any) perform this command from a teminal window;
ip addr
you'll see several ouput lines .. a set for each network interface. For example:
Quote:
4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:0e:35:45:4e:b0 brd ff:ff:ff:ff:ff:ff
inet 192.168.42.120/24 brd 192.168.42.255 scope global eth1
inet6 fe80::20e:35ff:fe45:4eb0/64 scope link
valid_lft forever preferred_lft forever
This says that my eth1 interface is assigned an IP address of 192.168.42.120 - a PRIVATE address.

===
So if your system has an interface assigned a PUBLIC IP address (unlike mine) then you can just use that IP address for a remote ssh session.

More likely your system has a PRIVATE IP like mine. In that case yo uneed to configure the router to "forward ports". THe router is going to be at the gateway address (use the ip route command looking for the "default" line. So I need to go to 192.168.42.1 and change the configuration. For ssh service (on port 22) Iwould want to forward port 22 from the router to my system as 192.168.42. 120.

After the port forward is created then you can ssh to the public IP address (the router's address really) and it knows enough to forward that traffic to the server (192.168.42.120 in my case)

==

*** Be SURE you use real system passwords (not "root123") for your server accounts. Scripot kiddies will scan port 22 and try simple passwords.

==
More advanced topics to consider:
1/ Setup ssh to use keys and not password authentication to avoid the script-kiddies.
2/ Consider forwarding a different port to port 22 - ((public 433 => Private 22 for example)). This prevents the scans from showing an ssh port.
3/ Consider using a dynamic dns service, like dyndns.com. This allows you to have a resolvable hostname rather than use IP numbers. cronmon.syndns.com for example.


How to forward ports is related to your specific router.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #3  
Old 7th July 2010, 05:22 AM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
windows_7firefox
Re: Accessing a fedora server from the internet

Also you should make sure your ISP doesn't block http if you want to use your web server. Many residential ISP's don't allow running your own web server on their connection. Also you may need to tweak your firewall in the server.

Study up on server security if you want to expose your server to the public internet. Or if it's just your private use, learn how to tunnel various services into your server over an SSH connection for greater security and less exposure to the bad guys.
__________________
======
Doug G
======
Reply With Quote
  #4  
Old 8th July 2010, 11:59 AM
Kholdstate Offline
Registered User
 
Join Date: Jul 2009
Location: Sweden
Age: 29
Posts: 24
macosfirefox
Re: Accessing a fedora server from the internet

And in the event of your ISP blocking web servers (as far as I know this is done by blocking connections on port 80) you can set up your web server to run on a different port, like 8080 or similar (look for the line "listen 80" in /etc/httpd/conf/httpd.conf). Then you can access it through going to http://yourserver-ip:8080
Reply With Quote
Reply

Tags
accessing, fedora, internet, server

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
Accessing Internet after adding Fedora to a WindowsXP Novanna52 Servers & Networking 5 22nd February 2009 01:23 AM
Accessing the Internet on Fedora Collywobbles Servers & Networking 18 5th July 2007 10:17 PM
accessing fedora server from windows XP shoreyman007 Servers & Networking 3 5th December 2005 05:57 PM
Accessing fedora server from windows shoreyman007 Servers & Networking 0 5th December 2005 10:25 AM
Fedora Core 3 accessing shared Internet connection on an XP machine spiff72 Servers & Networking 9 20th June 2005 10:13 AM


Current GMT-time: 06:11 (Friday, 24-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