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 - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-06-2012, 09:14 AM   #1
cskiwi
LQ Newbie
 
Registered: Oct 2011
Posts: 15

Rep: Reputation: Disabled
People can't connect on my IP


Hi,

I recently setup an linux computer using the following tutorial: http://secure-ubuntu-server.blogspot...watha-web.html
(I skipped step 6 because I didn't use an virtual host)

everything is working great on my local host. but other people can't connect to the external IP (got Ip from Ipchicken.com)

I forwarded my ports on my router (20,21,80,443,50000-50100), and added the computer to the DMZ list (just for testing if that would made any difference, but it didn't.)
but this link keep saying they're closed (http://www.yougetsignal.com/tools/open-ports/)

tested with 2 routers having same problem for both, different setup of linux though.
now using D-link DIR-300

For next testing I did:
Code:
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
didn't have any results on external connect, but when I close them I can't connect to the server with SSH,nor can I see the site.
so the iptables does affect the server

any suggestions, what could be the problem and how to fix it?

grt kiwi

Last edited by cskiwi; 02-06-2012 at 10:03 AM. Reason: iptables add
 
Old 02-06-2012, 09:49 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Okay, so, how about dyndns instead? I suspect you're running some sort of Internet server here. Cool! The IP address is tricky as it renews/changes all the time. However, dyndns allows you to stay accessible even using an dynamic IP address. Check out their services!

Good luck

Thor
 
Old 02-06-2012, 10:00 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Check with your provider if they block ports.
Often they block ports for servers on dynamic ip's.

Kind regards
 
Old 02-06-2012, 11:40 AM   #4
cskiwi
LQ Newbie
 
Registered: Oct 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by repo View Post
Check with your provider if they block ports.
Often they block ports for servers on dynamic ip's.

Kind regards
Yep they block the following ports:

0 -> 1023, 1080, 12345, 12346, 31337 -> 31339, 31784, 27374, 1243, 31785 -> 31792, 4444, 1847, 1900, 3127

How can I make that when you connect to the IP and get the mainpage?
Gonna look for myself now to, but if you know the answer feel free to reply

EDIT: They can already can connect to IP:2000 (I've set the port for hiawatha to 2000)
so now I need to make that they auto connect to that port when they connect to it

Last edited by cskiwi; 02-06-2012 at 11:54 AM.
 
Old 02-06-2012, 12:34 PM   #5
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
If ports 80 or 8080 are not blocked, all you need to do is set up a page called "index.htm" or something like that (see the settings in the server) and your visitors will see that page first...
But, 1 to 1023 seems to be blocked, so there's no option here. So, I assume dyndns to be an option. Set up a domain, delegate that to your IP : port and (possibly) presto! Look into the wizard they have...

Last edited by ButterflyMelissa; 02-06-2012 at 12:52 PM.
 
Old 02-06-2012, 12:48 PM   #6
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 737

Rep: Reputation: 78
Quote:
Originally Posted by Thor_2.0 View Post
If ports 80 or 8080 are not blocked,...
he said "Yep they block the following ports: 0 -> 1023, ..." so its likely 80 is not getting through.

for OP, what "router" are you talking about? and what do you mean by "forwarded ports"? you also say "auto connect" for clients, the only way they will "auto connect" is if, as example, they save a url shortcut with fqdn[:]port in it.

Last edited by Linux_Kidd; 02-06-2012 at 12:49 PM.
 
Old 02-06-2012, 12:51 PM   #7
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Quote:
he said "Yep they block the following ports: 0 -> 1023, ..." so its likely 80 is not getting through.
Yep, did extract that out of the reply

@ OP - by the way, you may want to check with your provider's fine print. There is a healthy reason for these ports to be blocked: so you should not run a server...
 
Old 02-06-2012, 03:41 PM   #8
cskiwi
LQ Newbie
 
Registered: Oct 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
I know that it's for security reasons but I mailed them asking if they would open it, probably not gonna work, but it's definitely worth the shot ;P
And for an dynds, I don't want to spend any money on this one, it's just for fun. or perhaps i saw the site wrong and it's an free service.

@Linux Kidd, as I said in first post it's an D-link DIR-300, and by forwarding I mean, I got to the page port forwarding, and add the ports, is there any other way then?

Last edited by cskiwi; 02-06-2012 at 03:43 PM.
 
Old 02-06-2012, 03:44 PM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
I know that it's for security reasons but I mailed them asking if they would open it, probably not gonna work, but it's definitely worth the shot ;P
They will allow it if you take a fxed IP.

Kind regards
 
1 members found this post helpful.
Old 02-07-2012, 10:54 AM   #10
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Seconding that, repo. However, a fixed IP address (with ALL the extra's that come with it) comes with a bill. Be warmed.
 
Old 02-07-2012, 02:03 PM   #11
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by Thor_2.0 View Post
Seconding that, repo. However, a fixed IP address (with ALL the extra's that come with it) comes with a bill. Be warmed.
Depends on the ISP. TimeWarner in Texas only charges $5/mo for a static IP with their basic consumer internet package.
Comcast, on the other hand, won't give you a static IP unless you upgrade to their business class account, which is double the price...

Last edited by suicidaleggroll; 02-07-2012 at 02:19 PM.
 
Old 02-07-2012, 02:26 PM   #12
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 737

Rep: Reputation: 78
if its a real business server then buy an IP. if its occassional access for friends and what-not then just use dyn-dns with a odd port like 2022 or 8080, whatever gets through the ISP, etc.
 
  


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
How can I get people to use Linux? I'm bad at converting people over. Mr. Hill Linux - Newbie 50 07-11-2020 10:41 AM
Dovecot imap will not connect from remote machine but will connect local charlesnorman Linux - Server 4 03-28-2019 11:20 AM
how do i connect people to my network via the internet mrgreaper Linux - Newbie 6 10-12-2009 07:11 AM
Intel 4965 AGN - can't connect to wireless 802.11b router, can connect to 11g siodine Linux - Wireless Networking 3 12-01-2007 07:36 AM
Samba: can't connect to my local linux machine but can connect to windows. Royle Linux - Networking 3 01-18-2005 05:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:33 AM.

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