LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-06-2022, 12:48 PM   #1
Lakshay99
LQ Newbie
 
Registered: Dec 2022
Posts: 9

Rep: Reputation: 0
Can't host my website on my linux server with my public ip only.Can't even ssh through it.lakshay.icu


i have enabled port forwarding for port 22 and 80,disabled firewall,nginx is working properly.My website name is lakshay.icu. I have tried everything.What am i doing wrong
 
Old 12-06-2022, 02:11 PM   #2
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,151

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
Do you have a business class plan? I know here in the states the average ISP doesn't like us running servers on home connections. Most ports are blocked in their stuff, doesn't matter what ports you open on your own router.
 
Old 12-07-2022, 02:28 AM   #3
kermitdafrog8
Member
 
Registered: Dec 2018
Location: Orlando, FL
Distribution: Slackware AARCH64 and X86_64
Posts: 340

Rep: Reputation: Disabled
Can't host my website on my linux server with my public ip only.Can't even ssh through it.lakshay.icu

Do you have the option for DMZ in your router's configuration? Try putting your servers IP there. Maybe your port forwarding isn't set up correctly.
 
Old 12-07-2022, 03:35 AM   #4
Lakshay99
LQ Newbie
 
Registered: Dec 2022
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kermitdafrog8 View Post
Do you have the option for DMZ in your router's configuration? Try putting your servers IP there. Maybe your port forwarding isn't set up correctly.
i got that option thanks let me try to do it, what ip should i use internal or external?

Last edited by Lakshay99; 12-07-2022 at 03:52 AM.
 
Old 12-07-2022, 03:37 AM   #5
Lakshay99
LQ Newbie
 
Registered: Dec 2022
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jmgibson1981 View Post
Do you have a business class plan? I know here in the states the average ISP doesn't like us running servers on home connections. Most ports are blocked in their stuff, doesn't matter what ports you open on your own router.
it allows every port to be accessed locally and there is not business plan
 
Old 12-07-2022, 07:16 AM   #6
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,359
Blog Entries: 3

Rep: Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767
Quote:
Originally Posted by Lakshay99 View Post
it allows every port to be accessed locally and there is not business plan
Try checking to see if the ISP has blocked port 22:

https://canyouseeme.org/

Or try using ssh or nc from any remote system you might have access to.
 
Old 12-07-2022, 08:31 AM   #7
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
As far as your website, your DNS points to your internal IP, not external. It is RFC1918 private range.
 
1 members found this post helpful.
Old 12-07-2022, 09:25 AM   #8
Lakshay99
LQ Newbie
 
Registered: Dec 2022
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by elgrandeperro View Post
As far as your website, your DNS points to your internal IP, not external. It is RFC1918 private range.
How do i change that i am using namecheap for domain and noip.com for static ip
 
Old 12-07-2022, 09:48 AM   #9
Lakshay99
LQ Newbie
 
Registered: Dec 2022
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Turbocapitalist View Post
Try checking to see if the ISP has blocked port 22:

https://canyouseeme.org/

Or try using ssh or nc from any remote system you might have access to.
Error:*I could not see your service on 103.206.100.251 on port (22)
Reason:*Connection timed out
 
Old 12-07-2022, 10:08 AM   #10
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,484

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Quote:
Originally Posted by Lakshay99 View Post
it allows every port to be accessed locally
which is meaningless, there's nothing in a generic ISP router that would block ports internally via wired connections.

Quote:
Originally Posted by Lakshay99 View Post
and there is not business plan
Ok, so you may find that all inbound "fun" ports like 22,80,443 are blocked by your ISP to stop people hosting public facing systems on their residential service (this would also be backed up by the fact that it looks like you're within a DHCP range).

Your external DNS is definitely screwed up as it's resolving from 8.8.8.8 as a 172.16.X.Y address.

The other address you mention 103.206.100.251 doesn't respond to ICMP ping, that may be intentional by you if you've disabled ICMP, although I doubt you set that up. So may be your ISP blocking at least that type of traffic.

You don't mention what your router is, if it's an ISP supplied one or your own.

One thing to be aware of is that if your IP shows up in a "residential" block then it's possible that many mail servers will reject e-mail you're trying to send. Especially if you're in a "known spam" country like India (sorry, blame the many, many spammers and 'Amazon Prime' scumbags that operate there).
 
Old 12-07-2022, 10:38 AM   #11
Lakshay99
LQ Newbie
 
Registered: Dec 2022
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TenTenths View Post
which is meaningless, there's nothing in a generic ISP router that would block ports internally via wired connections.


Ok, so you may find that all inbound "fun" ports like 22,80,443 are blocked by your ISP to stop people hosting public facing systems on their residential service (this would also be backed up by the fact that it looks like you're within a DHCP range).

Your external DNS is definitely screwed up as it's resolving from 8.8.8.8 as a 172.16.X.Y address.And also can you tell me what changes do i need to make in order to successfully host my website
The other address you mention 103.206.100.251 doesn't respond to ICMP ping, that may be intentional by you if you've disabled ICMP, although I doubt you set that up. So may be your ISP blocking at least that type of traffic.

You don't mention what your router is, if it's an ISP supplied one or your own.

One thing to be aware of is that if your IP shows up in a "residential" block then it's possible that many mail servers will reject e-mail you're trying to send. Especially if you're in a "known spam" country like India (sorry, blame the many, many spammers and 'Amazon Prime' scumbags that operate there).
my router is default one my isp supplied of tenda

Last edited by Lakshay99; 12-07-2022 at 10:39 AM.
 
Old 12-07-2022, 10:42 AM   #12
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,359
Blog Entries: 3

Rep: Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767
Quote:
Originally Posted by Lakshay99 View Post
my router is default one my isp supplied of tenda
After you've fixed the DNS entry to point to the your external address, double check that the router is forwarding port 22 to the right system on your internal network.

Then if your ISP, Tenda, is using DHCP then you might have to also look into using a dynamic DNS service, either from your registrar Namecheap or somewhere else, to point to but that would come after figuring out basic connectivity.
 
Old 12-07-2022, 10:56 AM   #13
Lakshay99
LQ Newbie
 
Registered: Dec 2022
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Turbocapitalist View Post
After you've fixed the DNS entry to point to the your external address, double check that the router is forwarding port 22 to the right system on your internal network.

Then if your ISP, Tenda, is using DHCP then you might have to also look into using a dynamic DNS service, either from your registrar Namecheap or somewhere else, to point to but that would come after figuring out basic connectivity.
I have done everything you said but i don't think it is working
 
Old 12-07-2022, 02:35 PM   #14
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,359
Blog Entries: 3

Rep: Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767
Your DNS entry seems to point to an IPv4 address in a netblock managed by NetMan Data Services:

Code:
$ dig lakshay.icu | grep -A1 'ANSWER SECTION'
;; ANSWER SECTION:
lakshay.icu.		1772	IN	A	103.206.100.251
So that step is completed.

However, is that the actual external address of your router or are you behind several layers of carrier grade NAT? Please log into the admin interface of your router from on your LAN and check what it says it has for an external address. If it does not match the above DNS entry but instead has something in either 10/8, 172.16/12, or 192.168/16 then you can't get there from here and will have to negotiate something with your ISP or else set up an Onion service.
 
  


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
LXer: Debian: 2786-1: icu: Multiple vulnerabilities LXer Syndicated Linux News 0 10-29-2013 01:01 AM
icu download for oel 32bit version 5.6 dthaler Linux - Software 0 09-14-2011 08:07 AM
[SOLVED] Question about ICU's UChar MTK358 Programming 1 07-10-2011 10:59 AM
in dire need of help with ICU and linuxcanda software... Lleb_KCir Linux - Software 16 10-17-2005 01:14 PM
problems installing gnome icu slag Linux - General 1 11-20-2001 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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